Revert "Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into dev"

This reverts commit 8fca63294d, reversing
changes made to b85aff9fc9.
This commit is contained in:
Elad Salomons
2018-04-09 15:03:03 +03:00
parent 8fca63294d
commit 4415d8c4a1
40 changed files with 14233 additions and 222 deletions

35
tests/test_networks.sh Executable file
View File

@@ -0,0 +1,35 @@
#! /bin/bash
test_networks()
{
returnValue=0
for d in network_tests/*/ ; do
for netfile in `ls $d*.inp`; do
officialBinFile=${netfile%.*}.enb
candidateBinFile=${netfile%.*}-candidate.enb
echo "testing $netfile with known good binary output $officialBinFile"
if ../build/CMake/buildproducts/bin/runepanet $netfile ${netfile%.*}-candidate.rpt $candidateBinFile
then
echo "epanet run for $netfile SUCCESS"
else
echo "epanet run for $netfile FAILED"
returnValue=1
fi
if python ENBinaryOutDiff.py $officialBinFile $candidateBinFile
then
echo "binary output for $netfile PASSED"
else
echo "binary output for $netfile FAILED"
returnValue=1
fi
echo "+++++"
done
done
return $returnValue
}
cp ../build/CMake/buildproducts/bin/libENBinaryOut.* ./libENBinaryOut.so
cp ../tools/outputapi/*.py ./
test_networks