File: installed-tests

package info (click to toggle)
json-glib 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,684 kB
  • sloc: ansic: 13,468; xml: 348; sh: 39; python: 15; makefile: 12
file content (26 lines) | stat: -rwxr-xr-x 508 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
21
22
23
24
25
26
#!/bin/sh

set -eu

found=
prefix=json-glib-1.0/

for insttests in /usr/lib/*/installed-tests; do
    dir="${insttests%/installed-tests}"

    if [ -z "$(ginsttest-runner --dir "$dir" -l "$prefix")" ]; then
        continue
    fi

    found=yes
    ginsttest-runner \
        --dir "$dir" \
        ${AUTOPKGTEST_ARTIFACTS:+--report-directory="$AUTOPKGTEST_ARTIFACTS"} \
        --tap \
        "$prefix"
done

if [ -z "$found" ]; then
    echo "Error: no installed-tests directory found" >&2
    exit 1
fi