slitaz-base-files view testsuite.sh @ rev 161
libtaz.sh: some minor change and add comments/usage
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 12 01:05:16 2012 +0200 (2012-05-12) |
parents | a9f3ad0aff28 |
children | dd17cc10cd6d |
line source
1 #!/bin/sh
2 #
3 . rootfs/lib/libtaz.sh
5 check_libtaz() {
6 echo -n "Checking libtaz.sh: status() 0"
7 status
9 echo -n "Checking libtaz.sh: status() 1"
10 touch /tmp/1/2/2/4 2>/dev/null
11 status
13 echo -n "Checking libtaz.sh: boldify() "
14 boldify "Message"
16 echo "Checking libtaz.sh: separator"
17 separator
18 }
20 check_libtaz
21 output="raw"
22 check_libtaz
24 [ "$forced" ] && echo "Checking option: forced=$forced"
25 [ "$root" ] && echo "Checking option: root=$root"
26 [ ! "$1" ] && echo "Check options: $(basename $0) --forced --root=/dev/null"
28 exit 0