diff --git a/test/release-path.test.sh b/test/release-path.test.sh index fad884d..46181c8 100755 --- a/test/release-path.test.sh +++ b/test/release-path.test.sh @@ -97,6 +97,17 @@ path_check() { [ -z "$missing" ] && [ -z "$extra" ] } +readme_has_no_path_enumeration() { + local token found=no + for token in bin/ lib/version.sh lib/decide.sh lib/facts.sh lib/changelog.sh; do + if grep -qF "$token" "$ROOT/drills/README.md"; then + printf 'drill doctrine enumerates release path: %s\n' "$token" >&2 + found=yes + fi + done + [ "$found" = no ] +} + fixture() { local name="$1" tree tree="$TMP/$name" @@ -125,6 +136,8 @@ check "manifest prints the specified ordered release path" 0 \ bash "$PATH_SCRIPT" check "real workflow and transitive dependencies match the manifest" 0 "" \ path_check "$ROOT" +check "drill doctrine does not duplicate the executable release path" 0 "" \ + readme_has_no_path_enumeration # A door growing a dependency must name the missing path (#237 D7). tree="$(fixture missing)"