File: integration-tests

package info (click to toggle)
autodep8 0.30
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: sh: 1,139; makefile: 31
file content (27 lines) | stat: -rwxr-xr-x 399 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
27
#!/bin/sh

set -eu

test_package_type=$(dirname $0)/test-package-type

failed=""
rc=0
while read pkgtype pkg; do
  case "${pkgtype}" in
    "#"*)
      :
      ;;
    *)
      if ! $test_package_type "${pkgtype}" "${pkg}"; then
        failed="${failed} ${pkgtype}"
        rc=1
      fi
      ;;
  esac
done < examples.in

if [ -n "${failed}" ]; then
  echo
  echo "FAILED:${failed}"
fi
exit "$rc"