Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/tests/uuid-v8-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ fresh; printf 'uuid = "%s"\n\n[extras]\nTest = "%s"\n' "$V4" "$V4" > "$WORK/t/Pr
expect 1 "a v4 package uuid in a Project.toml.in mint template is rejected"
fresh; printf '[deps]\nX = "%s"\n' "$V4" > "$WORK/t/deps.toml.in"
expect 1 "a [deps] table in a non-Julia .in template is not exempt"
fresh; printf '[[deps.X]]\nuuid = "%s"\n' "$V4" > "$WORK/t/Manifest.toml.in"
expect 0 "a v4 in a Manifest.toml.in template is accepted"
fresh; printf '[deps]\nX = "%s"\n' "$V4" > "$WORK/t/Project.toml.inx"
expect 1 "a near-miss suffix (Project.toml.inx) is not exempt"

fresh; printf 'id = "%s"\n' "$V4" > "$WORK/t/CLADE.a2ml"
expect 0 "a v4 in a retired .a2ml file is ignored (D320)"
Expand All @@ -112,6 +116,11 @@ expect 1 "a v7 UUID is rejected under --strict" --strict
names "a.toml: non-v8 UUID literal ($V7_8)" "the --strict rejection names the v7 UUID"
fresh; printf 'id = "%s"\n' "$V8_C" > "$WORK/t/a.toml"
expect 1 "a bad variant is still rejected under --strict" --strict
# The rsr-template-repo julia-library archetype: registry UUIDs (v5) under
# [extras] of a Project.toml.in, with a v8 placeholder for the package's own.
fresh; printf 'name = "P"\nuuid = "%s"\n\n[extras]\nAqua = "%s"\nTest = "%s"\n' \
"$V8_8" "$V5" "$V5" > "$WORK/t/Project.toml.in"
expect 0 "registry UUIDs in a Project.toml.in [extras] pass under --strict" --strict

echo "PASS=$pass FAIL=$fail"
[ "$fail" -eq 0 ]
Loading