test.sh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env bash
  2. # Copyright (C) 2020 fosslinux
  3. # This file is part of mescc-tools.
  4. #
  5. # mescc-tools is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # mescc-tools is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with mescc-tools. If not, see <http://www.gnu.org/licenses/>.
  17. echo "Starting kaem tests"
  18. LANG=C ../bin/kaem -f "test/test00/kaem.test" >| "test/results/test00-output"
  19. LANG=C ../bin/kaem -f "test/test01/kaem.test" >| "test/results/test01-output"
  20. LANG=C ../bin/kaem -f "test/test02/kaem.test" >| "test/results/test02-output"
  21. LANG=C ../bin/kaem -f "test/test03/kaem.test" >| "test/results/test03-output"
  22. LANG=C ../bin/kaem -f "test/test04/kaem.test" >| "test/results/test04-output" 2>&1
  23. LANG=C ../bin/kaem --non-strict -f "test/test05/kaem.test" >| "test/results/test05-output"
  24. LANG=C ../bin/kaem -f "test/test06/kaem.test" >| "test/results/test06-output" 2>&1
  25. LANG=C ../bin/kaem -f "test/test07/kaem.test" >| "test/results/test07-output"
  26. LANG=C ../bin/kaem -f "test/test08/kaem.test" >| "test/results/test08-output"
  27. LANG=C ../bin/kaem -f "test/test09/kaem.test" >| "test/results/test09-output"
  28. LANG=C ../bin/kaem -f "test/test10/kaem.test" >| "test/results/test10-output"
  29. LANG=C ../bin/kaem -f "test/test11/kaem.test" >| "test/results/test11-output"
  30. LANG=C ../bin/kaem -f "test/test12/kaem.test" >| "test/results/test12-output"
  31. LANG=C ../bin/kaem -f "test/test13/kaem.test" >| "test/results/test13-output"
  32. LANG=C ../bin/kaem -f "test/test14/kaem.test" >| "test/results/test14-output" 2>&1
  33. LANG=C ../bin/kaem -f "test/test15/kaem.test" >| "test/results/test15-output"
  34. LANG=C ../bin/kaem -f "test/test16/kaem.test" >| "test/results/test16-output"
  35. LANG=C ../bin/kaem -f "test/test17/kaem.test" >| "test/results/test17-output"
  36. . ../sha256.sh
  37. sha256_check test/test.answers
  38. echo "kaem tests complete"