File: test.sh

package info (click to toggle)
rpmlint 1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,424 kB
  • ctags: 696
  • sloc: python: 14,920; makefile: 70; sh: 23
file content (31 lines) | stat: -rwxr-xr-x 754 bytes parent folder | download
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
30
31
#!/bin/sh

export PYTHONPATH=$(pwd)/tools:$(pwd)
export TESTPATH="$(pwd)/test/"

# For Debian autopkgtest.
# If this script was called by autopkgtest, the variable $RPMLINT_BIN
# should be set to the system installed rpmlint binary.
# If not, use the default (the source tree one).
RPMLINT=${RPMLINT_BIN:-./rpmlint}

echo
echo "Please ignore the possibly occurring output like this:"
echo "    .../Patch*.patch: No such file or directory"
echo

for i in $TESTPATH/test.*.py; do
    python $i
    RET=$?
    if [ $RET -ne 0 ]; then
        exit $RET
    fi
done

echo "Check that rpmlint executes with no unexpected errors"
python $RPMLINT -C $(pwd) test/*/*.rpm test/spec/*.spec >/dev/null
rc=$?
test $rc -eq 0 -o $rc -eq 64

# SCLCheck tests
py.test -v