File: run_test_batch.sh

package info (click to toggle)
sra-sdk 3.0.3%2Bdfsg-6~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 165,852 kB
  • sloc: ansic: 374,775; cpp: 232,734; perl: 8,959; java: 6,253; sh: 6,032; python: 3,890; makefile: 1,046; yacc: 703; xml: 310; lex: 235
file content (25 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

progname=`basename $0`
suffix=$1
old=$2
[ ! -z "$suffix" ] || { echo "Empty directory suffix parameter"; exit 1; }

test_list=(`ls -d *.${suffix} 2>/dev/null`)
for test in ${test_list[*]}
do
  if [[ $old == "old" ]]; then
    ./run_test_old.sh ${test}
  else
    ./run_test.sh ${test}
  fi  
  if [ $? -eq 0 ]; then 
      echo "${test} ${old} passed"
  else
      echo "${test} ${old} failed"
  fi
  
done


exit 0