start replacing requirements for pkgconfig() symbols
[opensuse:spec-cleaner.git] / tests / _run
1 #!/bin/sh
2
3 pass=0
4 fail=0
5
6 echo "Running tests:"
7 echo
8
9 for i in \
10   buildrequires \
11   make-params \
12   patches \
13   pkgconfig \
14   ; do
15
16   echo -n "$i ... "
17
18   if ../spec-cleaner "$i-in.spec" | diff -u --label="$i-out.spec" -- - "$i-out.spec" > fail-$i.diff ; then
19     rm -f fail-$i.diff
20     echo "passed"
21     pass=`expr $pass + 1`
22   else
23     if [ "$1" != "-k" ]; then
24       rm -f fail-$i.diff
25     fi
26     echo "FAILED!"
27     fail=`expr $fail + 1`
28   fi
29
30 done
31
32 echo
33 echo "TOTAL:  `expr $pass + $fail`"
34 echo "Passed: $pass"
35 echo "Failed: $fail"