forked from heavy-duty/ceremony
test: guard release path doctrine
This commit is contained in:
parent
6dc8bf6558
commit
17b99183ca
1 changed files with 13 additions and 0 deletions
|
|
@ -97,6 +97,17 @@ path_check() {
|
||||||
[ -z "$missing" ] && [ -z "$extra" ]
|
[ -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() {
|
fixture() {
|
||||||
local name="$1" tree
|
local name="$1" tree
|
||||||
tree="$TMP/$name"
|
tree="$TMP/$name"
|
||||||
|
|
@ -125,6 +136,8 @@ check "manifest prints the specified ordered release path" 0 \
|
||||||
bash "$PATH_SCRIPT"
|
bash "$PATH_SCRIPT"
|
||||||
check "real workflow and transitive dependencies match the manifest" 0 "" \
|
check "real workflow and transitive dependencies match the manifest" 0 "" \
|
||||||
path_check "$ROOT"
|
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).
|
# A door growing a dependency must name the missing path (#237 D7).
|
||||||
tree="$(fixture missing)"
|
tree="$(fixture missing)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue