File: test.sh

package info (click to toggle)
damo 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,504 kB
  • sloc: python: 14,399; sh: 958; makefile: 30; ansic: 13
file content (15 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

bindir=$(dirname "$0")

for test_file in "$bindir"/test_*.py
do
	if python3 "$test_file" &> /dev/null
	then
		echo "PASS unit $(basename $test_file)"
	else
		echo "FAIL unit $(basename $test_file)"
		exit 1
	fi
done