Idris2/tests/ideMode/ideMode005/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

56 lines
1.6 KiB
Plaintext
Executable File

rm -rf build
rm -f output*
$1 --no-color --console-width 0 --ide-mode < input1 > output1
diff expected1 output1 >> output
$1 --no-color --console-width 0 --ide-mode < input2 > output2
diff expected2 output2 >> output
$1 --no-color --console-width 0 --ide-mode < input3 > output3
diff expected3 output3 >> output
$1 --no-color --console-width 0 --ide-mode < input4 > output4
diff expected4 output4 >> output
$1 --no-color --console-width 0 --ide-mode < input5 > output5
diff expected5 output5 >> output
$1 --no-color --console-width 0 --ide-mode < input6 > output6
diff expected6 output6 >> output
$1 --no-color --console-width 0 --ide-mode < input7 > output7
diff expected7 output7 >> output
$1 --no-color --console-width 0 --ide-mode < input8 > output8
diff expected8 output8 >> output
$1 --no-color --console-width 0 --ide-mode < input9 > output9
diff expected9 output9 >> output
$1 --no-color --console-width 0 --ide-mode < inputA > outputA
diff expectedA outputA >> output
$1 --no-color --console-width 0 --ide-mode < inputB > outputB
diff expectedB outputB >> output
$1 --no-color --console-width 0 --ide-mode < inputC > outputC
diff expectedC outputC >> output
$1 --no-color --console-width 0 --ide-mode < inputD > outputD
diff expectedD outputD >> output
$1 --no-color --console-width 0 --ide-mode < inputE > outputE
diff expectedE outputE >> output
$1 --no-color --console-width 0 --ide-mode < inputF > outputF
diff expectedF outputF >> output
$1 --no-color --console-width 0 --ide-mode < inputG > outputG
diff expectedG outputG >> output
$1 --no-color --console-width 0 --ide-mode < inputH > outputH
diff expectedH outputH >> output