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

Edit docs
author Paul Issott <paul@slitaz.org>
date Sat May 12 21:08:08 2012 +0100 (2012-05-12)
parents 7dd241a1171b
children 1db99ad848a8
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 echo -n "Checking libtaz.sh: log()"
21 activity=/tmp/testsuite.log
22 log "Message from SliTaz testsuite"
23 status
24 cat $activity
25 rm -f $activity
27 check_libtaz
28 output="raw"
29 check_libtaz
31 [ "$forced" ] && echo "Checking option: forced=$forced"
32 [ "$root" ] && echo "Checking option: root=$root"
33 [ ! "$1" ] && echo "Check options: $(basename $0) --forced --root=/dev/null"
35 exit 0