test(corpus): 23 .fls files and the Swift reader's view of them
The oracle gains a corpus mode; run.sh now stops on a failed build instead of running a stale binary. Swift reads all 23 files but drops Java gateways labelled 'Heimrouter' and nodes whose bounds are written through XMLEncoder back-references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,5 +6,9 @@ set -eu
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
root="$(cd "$here/../.." && pwd)"
|
||||
[ -d "$here/Sources/FiliusCore" ] || "$here/fetch-upstream.sh"
|
||||
docker run --rm -v "$root:/work" -w /work/tools/swift-oracle swift:6.1-jammy \
|
||||
sh -c 'swift build -q 2>&1 | grep -v "Sendable\|^ *|\|^ *\`" ; .build/debug/Oracle /work/packages/core/test/scenarios'
|
||||
# A failed build must stop here: a stale binary would write stale references.
|
||||
docker run --rm -v "$root:/work" -w /work/tools/swift-oracle swift:6.1-jammy sh -c '
|
||||
set -e
|
||||
swift build -q
|
||||
.build/debug/Oracle /work/packages/core/test/scenarios
|
||||
.build/debug/Oracle --corpus /work/corpus /work/corpus/corpus.swift.json'
|
||||
|
||||
Reference in New Issue
Block a user