1
0

run.sh 342 B

123456789101112131415
  1. #!/bin/bash
  2. set -eo pipefail
  3. os="unix"
  4. if [[ "$MACHINE" == "Windows" ]]; then
  5. os="win"
  6. fi
  7. bash ../scripts/compile src/sval.cpp
  8. for i in files/"$os"/sval/*; do
  9. j=$(basename $i)
  10. echo "test-ref r-sval-$i ""$VALGRIND"" ./sval < files/$os/sval/input.$i"
  11. bash ../scripts/test-ref r-sval-$j "$VALGRIND" ./sval <$i
  12. done
  13. rm -f sval sval.exe