File: test.sh

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

set -e

OUTDIR=${AUTOPKGTEST_ARTIFACTS:-"/tmp"}
OUTFILE=${OUTDIR}/tstout

./debian/tests/runtest.py 2>&1 >${OUTFILE}

for result in 6 7 8 9 10 78 ; do
  grep -q "result ${result}$" ${OUTFILE}
  echo "Found result - ${result}"
done

if ! (wc -l <${OUTFILE} | grep -q ^6$ ) ; then
  echo "Wrong number of lines in ${OUTFILE}"
  exit 1
fi