File: runtests.sh

package info (click to toggle)
python-pymetar 1.2-0.2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,400 kB
  • sloc: python: 1,014; sh: 14; makefile: 2
file content (17 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

TESTS="testall.py testpixmap.py testcloud.py testskycond.py"
SETDIR="reports/"
SETS="set-2007-10-14  set-2010-01-17 set-2010-10-31 set-2017-07-29"

for TEST in $TESTS; do
	for SET in $SETS; do
		echo "Running $TEST on $SETDIR/$SET"
		python3 $TEST $SETDIR/$SET > logs/$TEST-$SET-py3.log
		if [ $? != 0 ]; then
			echo "$TEST on $SETDIR/$SET failed" >&2
			echo "See logs/$TEST-$SET.log for details"
			break
		fi
	done
done