run.sh 522 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -eo pipefail
  3. os="unix"
  4. if [[ "$MACHINE" == "Windows" ]]; then
  5. os="win"
  6. fi
  7. # Loop through the versions v1, v2, v3, and v4
  8. for version in v1 v2 v3 v4; do
  9. bash ../scripts/compile src/"$version".cpp
  10. # Loop through the test numbers 01, 02, 03, and 04
  11. for test_num in 01 02 03 04 05 06; do
  12. bash ../scripts/test-ref "$version"-"$test_num" "$VALGRIND" ./"$version" --testOverviewLogFileName stderr < files/"$os"/input."$test_num"
  13. done
  14. rm -f "$version" "$version".exe
  15. done