slitaz-base-files view testsuite.sh @ rev 158

added generic yes/no function along with indent and statys function to libtaz
author Christian Mesh <meshca@clarkson.edu>
date Fri May 11 11:13:15 2012 -0500 (2012-05-11)
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