We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b403c47 commit b3fef24Copy full SHA for b3fef24
runExtendedTests.sh
@@ -0,0 +1,22 @@
1
+#!/bin/bash
2
+
3
+TESTS_DIR=./tests_outputs/
4
5
+# Compile as described in the project guide
6
+gradle compileJava build
7
8
+# Delete old out files
9
+rm tests_outputs/*my*out
10
11
+# Run tests with Gradle and save output to file
12
+for t in src/main/java/ist/meic/pa/GenericFunctionsExtended/examples/Test*.java; do
13
+ test_name=$(basename $t .java)
14
+ test_letter=$(echo $test_name | sed -r 's/Test//g')
15
16
+ gradle clean runExtended -PrunArgs='ist.meic.pa.GenericFunctionsExtended.examples.'$test_name -q > $TESTS_DIR$test_letter.my_extended_out
17
18
+ echo "Diff on "$test_name":"
19
+ colordiff --strip-trailing-cr $TESTS_DIR$test_letter.my_extended_out $TESTS_DIR$test_letter.out
20
21
+done
22
0 commit comments