2015-11-20 10:41:27 +00:00
|
|
|
#./build.sh
|
2015-11-20 09:08:38 +00:00
|
|
|
|
2015-12-03 15:11:33 +00:00
|
|
|
# Remove previous test results
|
|
|
|
rm _results/*.txt
|
|
|
|
|
|
|
|
# How long we shall wait for each test to conclude
|
2015-12-04 02:50:20 +00:00
|
|
|
export netcon_test_wait_time=60s
|
2015-12-03 15:11:33 +00:00
|
|
|
|
|
|
|
# Test structure, in later releases more complex multi-party scripts will be included
|
|
|
|
export testscript=two_party_test.sh
|
|
|
|
|
|
|
|
# Iterate over all depth=2 (relatively-speaking) directories and perform each test
|
|
|
|
find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
|
|
|
|
echo "*** Testing: '$testdir'..."
|
|
|
|
rm _results/*.tmp
|
|
|
|
cp $testscript $testdir/$testscript
|
|
|
|
cd $testdir
|
|
|
|
./$testscript
|
|
|
|
rm $testscript
|
|
|
|
cd ../../
|
|
|
|
done
|