File: upstream

package info (click to toggle)
foomuuri 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 764 kB
  • sloc: python: 3,389; makefile: 110; sh: 39
file content (26 lines) | stat: -rwxr-xr-x 617 bytes parent folder | download | duplicates (5)
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
#!/bin/sh

# Run the upstream test suite without the upstream Makefile, because:
# - we want to test the installed version of foomuuri
# - autopkgtests should not change the source tree, and might not have
#   write access to it
# - Linters should not be run from autopkgtests

set -ex

out=$(mktemp -d)
if [ ! -d "$out" ]; then
    echo "Unable to create temporary directory"
    exit 1
fi

for t in test/??-*; do
    /sbin/foomuuri --set=etc_dir="$t"		\
		   --set=share_dir=etc		\
		   --set=state_dir="$out"	\
		   --set=run_dir="$out"		\
		   check
    diff -u "$t"/golden.txt "$out"/next.fw
done

rm -rf "$out"