File: tests_quick.sh

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 (31 lines) | stat: -rw-r--r-- 563 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
#! /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