spk view testsuite.sh @ rev 161

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 12:27:19 2019 +0100 (2019-02-26)
parents 6cc8c13c4ab4
children
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 32 $(grep "[a-z]() {" lib/libspk.sh | wc -l))
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