check.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #! /usr/bin/env bash
  2. # Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
  3. # Copyright © 2017 Jeremiah Orians
  4. # Copyright (C) 2019 ng0 <ng0@n0.is>
  5. #
  6. # This file is part of mescc-tools
  7. #
  8. # mescc-tools is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 3 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # mescc-tools is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with mescc-tools. If not, see <http://www.gnu.org/licenses/>.
  20. set -eux
  21. [ -e bin ] || mkdir -p bin
  22. [ -f bin/M1 ] || exit 1
  23. [ -f bin/hex2 ] || exit 2
  24. [ -f bin/blood-elf ] || exit 3
  25. #[ -f bin/kaem ] || exit 4
  26. [ -f bin/get_machine ] || exit 5
  27. [ -f bin/exec_enable ] || exit 6
  28. [ -e test/results ] || mkdir -p test/results
  29. ./test/test0/hello.sh
  30. ./test/test1/hello.sh
  31. ./test/test2/hello.sh
  32. ./test/test3/hello.sh
  33. ./test/test4/hello.sh
  34. ./test/test5/hello.sh
  35. ./test/test6/hello.sh
  36. ./test/test7/hello.sh
  37. ./test/test8/hello.sh
  38. ./test/test9/hello.sh
  39. ./test/test10/hello.sh
  40. ./test/test11/hello.sh
  41. . sha256.sh
  42. sha256_check test/test.answers