summaryrefslogtreecommitdiff
path: root/test.sh
blob: 0c0d202837dbe2255d48263c1951771a5e05da8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

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

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 >/dev/null
rc=$?
test $rc -eq 0 -o $rc -eq 64