File: testsuite_quick.patch

package info (click to toggle)
elkcode 10.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,672 kB
  • sloc: f90: 52,747; perl: 964; makefile: 352; sh: 296; python: 105; ansic: 67
file content (34 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- /dev/null	2020-02-23 13:58:58.711320270 +0100
+++ ./tests/tests_quick.sh	2020-02-23 15:54:54.900396601 +0100
@@ -0,0 +1,31 @@
+#! /bin/bash
+# Test suite script for the Elk Code
+
+ELK=$1
+
+if [ -z "$1" ]; then
+  ELK=../../src/elk
+else
+  ELK=$1
+fi
+
+for i in test_001 test_002 test_003 test_005 test_007 test_009 test_010 test_011 test_013 test_014 test_018
+do
+  cd $i
+  echo
+  echo "Running test in directory $i..."
+  \rm -f *.OUT gmon.out fort.*
+  set -o pipefail
+  $ELK | tee test.log
+  NERROR=`grep -c Error test.log`
+  if test $NERROR -gt 0
+  then
+    echo " Failed! See test.log and output files"
+    exit 1
+  else
+    echo " Passed"
+    \rm -f test.log
+    \rm -f *.OUT
+  fi
+  cd ..
+done