File: installed

package info (click to toggle)
autopkgtest 5.55
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: python: 15,479; sh: 2,317; makefile: 116; perl: 19
file content (20 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -eu

# avoid using Python modules in source tree
cd "${AUTOPKGTEST_TMP:-$ADT_TMP}"

mkdir -p mypkg/debian/tests
echo "mypkg (1) UNRELEASED" > mypkg/debian/changelog
touch mypkg/debian/control
cat <<EOF > mypkg/debian/tests/control
Test-Command: echo Hello
Depends:
EOF

annotate-output autopkgtest --summary-file summary -B ./mypkg -- null 2>&1
if ! grep -q '^command1[[:space:]]\+PASS$' summary; then
    echo "ERROR: Invalid summary file:" >&2
    cat summary >&2
    exit 1
fi