aboutsummaryrefslogtreecommitdiff
path: root/Practical1/tester/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Practical1/tester/test.sh')
-rwxr-xr-xPractical1/tester/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Practical1/tester/test.sh b/Practical1/tester/test.sh
index a13fd63..068d6ea 100755
--- a/Practical1/tester/test.sh
+++ b/Practical1/tester/test.sh
@@ -4,7 +4,7 @@ java="/usr/lib/jvm/java-8-openjdk-amd64/bin/java"
failed=0
cd "$(dirname $0)/../out/production/Practical1"
-for tc in ../../../tester/samples/cas*.in
+for tc in ../../../tester/samples/*.in
do
answer=$(cat ${tc/in/out})
header=$(head -n1 "$tc" | tr -d '\n')
@@ -16,7 +16,7 @@ do
if [ $result != $answer ]
then
echo "failure ($time ms)."
- failed+=1
+ failed=$(($failed+1))
else
echo "success ($time ms)."
fi