Idris2/tests/base/system_info_os001/run
Stiopa Koltsov 9f61e542b4 Move rm -rf to the beginning of the test
While the discussion about how to refactor test framework is not
finished (#1654), make this change: move `rm -rf build` in the
beginning of the test. For these reasons:

* it is useful to inspect the contents of the `build` directory
  especially after the test failure
* if build crashes mid-test (e.g. process killed), next run should
  not be affected by the `build` directory from the previous run
2021-07-13 22:54:53 +01:00

14 lines
303 B
Plaintext
Executable File

rm -rf build
case "$(uname)" in
Linux*) EXPECTED_OS=unix ;;
Darwin*) EXPECTED_OS=darwin ;;
CYGWIN*) EXPECTED_OS=windows ;;
MINGW*) EXPECTED_OS=windows ;;
*) echo "unknown uname $(uname)" >&2; exit 1; ;;
esac
export EXPECTED_OS
$1 --no-banner --no-color --console-width 0 Os.idr --exec main