#!/bin/sh
# Build sources and run all JUnit tests without Maven (JDK 17+ required).
cd "$(dirname "$0")"
mkdir -p out
find src/main/java src/test/java -name '*.java' > sources.txt
javac -encoding UTF-8 -cp lib/junit-platform-console-standalone-1.10.2.jar -d out @sources.txt || { echo "COMPILE FAILED"; exit 1; }
rm -f sources.txt
java -jar lib/junit-platform-console-standalone-1.10.2.jar execute --class-path out --scan-class-path
