test.sh 898 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. ## Copyright (C) 2016 Jeremiah Orians
  3. ## This file is part of stage0.
  4. ##
  5. ## stage0 is free software: you an 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. ## stage0 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 stage0. If not, see <http://www.gnu.org/licenses/>.
  17. # Build new
  18. ./bin/hex < hex0.hex |
  19. sponge bin/trial && ./bin/exec_enable bin/trial
  20. # Test compile
  21. ./bin/trial < hex0.hex |
  22. sponge tmp/foo
  23. # Check results
  24. sha256sum bin/trial tmp/foo