Skip to content
Snippets Groups Projects
Commit 52c0eca5 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

improved testing harness

parent 926d8c0d
No related branches found
No related tags found
No related merge requests found
Pipeline #4610 failed
......@@ -6,10 +6,9 @@ set -x
function main()
{
cd /tmp/libehp_test
scons -j3
cd test
./test.sh
./test.sh || exit 1
exit 0
}
......
......@@ -16,16 +16,25 @@
# limitations under the License.
cleanup()
set -x
set -e
function cleanup()
{
echo "Test failed"
exit 1
}
scons || cleanup
./test.exe ./test.exe || cleanup
./test.exe /bin/ls || cleanup
./test.exe /bin/bash || cleanup
echo "test passed"
exit 0
function main()
{
scons || cleanup
./test.exe ./test.exe || cleanup
./test.exe /bin/ls || cleanup
./test.exe /bin/bash || cleanup
echo "test passed"
exit 0
}
main "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment