New posts
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file under output/:
|
||||
# 01-08 from the tests on JUnit 6.1.3 (mvn test)
|
||||
# output/junit5/01-08 the same tests on JUnit 5.14.4 (mvn -Pjunit5 test)
|
||||
# 09-10 from javap/javac probes (scripts/versions.sh)
|
||||
# 11 diff of 01-08 between the two JUnit versions
|
||||
# Needs JDK 17+ (built on 25), Maven, and network access to Maven Central.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mvn -q -B test 2>&1 | grep -E "Tests run:|BUILD|FAIL|ERROR" || true
|
||||
mvn -q -B -Pjunit5 test 2>&1 | grep -E "Tests run:|BUILD|FAIL|ERROR" || true
|
||||
bash scripts/versions.sh >/dev/null
|
||||
{
|
||||
echo "diff -r output output/junit5 (files 01-08; JUnit 6.1.3 on the left, JUnit 5.14.4 on the right)"
|
||||
if diff -r -x junit5 -x '09*' -x '10*' -x '11*' -x '12*' -x '13*' output output/junit5; then
|
||||
echo "no differences: all 8 transcripts are byte-for-byte identical"
|
||||
fi
|
||||
} > output/11-junit5-diff.txt
|
||||
ls output
|
||||
Reference in New Issue
Block a user