run_tests.sh 661 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Merely RUNS test images
  3. # Remove previous test results
  4. rm _results/*.txt
  5. # How long we shall wait for each test to conclude
  6. export netcon_test_wait_time=60s
  7. # Test structure, in later releases more complex multi-party scripts will be included
  8. export test_script=two_party_test.sh
  9. # Iterate over all depth=2 (relatively-speaking) directories and perform each test
  10. find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
  11. echo "*** Testing: '$testdir'..."
  12. rm _results/*.tmp
  13. # Stage scripts
  14. cp $test_script $testdir/$test_script
  15. cd $testdir
  16. # Run test
  17. ./$test_script
  18. rm $test_script
  19. cd ../../
  20. done