test.sh 590 B

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