File: mkcontrol

package info (click to toggle)
regina-normal 7.4.1-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 154,244 kB
  • sloc: cpp: 295,026; xml: 9,992; sh: 1,344; python: 1,225; perl: 616; ansic: 138; makefile: 26
file content (29 lines) | stat: -rwxr-xr-x 641 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
set -e

if [ ! -d "$1/python/testsuite" ]; then
  echo "ERROR: Usage: $0 <regina_source_tree>"
  exit 1
fi

cd "$1/utils/testsuite"
for i in *.test; do
  name="${i/.test/}"
  echo "Test-Command: debian/tests/utils-test $name"
  echo "Features: test-name=utils-$name"
  echo "Depends: @, bsdextrautils"
  echo
done

cd "../../python/testsuite"
for i in *.test; do
  name="${i/.test/}"
  if ( grep 'sys.argv.1' "$i" >/dev/null ); then
    echo "Test-Command: debian/tests/python-test $name python/testsuite"
  else
    echo "Test-Command: debian/tests/python-test $name"
  fi
  echo "Features: test-name=python-$name"
  echo
done