ZT_NC_NWID patch + (WIP) test script modifications

This commit is contained in:
Joseph Henry
2015-12-04 12:39:54 -08:00
parent 2196d982c3
commit d9b12be697
28 changed files with 1148 additions and 57 deletions

View File

@@ -1,4 +1,8 @@
#./build.sh
#!/bin/bash
# Runs test images
echo "*** Running unit tests..."
# Remove previous test results
rm _results/*.txt
@@ -7,15 +11,22 @@ rm _results/*.txt
export netcon_test_wait_time=60s
# Test structure, in later releases more complex multi-party scripts will be included
export testscript=two_party_test.sh
export test_script=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
# Stage scripts
cp $test_script $testdir/$test_script
cd $testdir
./$testscript
rm $testscript
# Run test
./$test_script
rm $test_script
cd ../../
done
done
echo "*** Done"