spk view testsuite.sh @ rev 64

spk-archive: be busybox ash compatible
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 18 03:19:51 2012 +0200 (2012-05-18)
parents 4bf676b1d4cc
children 0cb21eb5cf20
line source
1 #!/bin/sh
2 #
3 . /lib/libtaz.sh
5 newline
6 boldify "Checking: spk bc"
7 ./spk bc
8 #boldify "Checking: spk-add bc"
9 #./spk-add bc bc --forced
10 #boldify "Checking: spk-rm bc"
11 #./spk-rm bc
13 # Check libspk.sh functions usage.
14 echo -n "$(boldify "Checking: libspk.sh functions")"
15 indent 34 "$(colorize $(grep "[a-z]() {" lib/libspk.sh | wc -l) 32)"
16 separator
17 grep "[a-z]() {" lib/libspk.sh | while read line
18 do
19 func=`echo "$line" | cut -d '(' -f 1`
20 echo -n "Checking: ${func}()"
21 indent 34 "$(grep "$func" spk* | wc -l)"
22 done
23 separator
24 echo "Run slitaz-base-files testsuite.sh to check libpkg.sh"
25 newline
26 exit 0