summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2007-01-03 01:07:55 +0100
committerKarel Zak2007-01-04 14:53:57 +0100
commitb30cd7eed5b70c5eaf08f8681eb3f717c4d11329 (patch)
tree27343c827a816540244fd213fccaa95182f79653 /tests/functions.sh
parenttests: add simple helper that returns info about system (diff)
downloadkernel-qcow2-util-linux-b30cd7eed5b70c5eaf08f8681eb3f717c4d11329.tar.gz
kernel-qcow2-util-linux-b30cd7eed5b70c5eaf08f8681eb3f717c4d11329.tar.xz
kernel-qcow2-util-linux-b30cd7eed5b70c5eaf08f8681eb3f717c4d11329.zip
ipcs: add new tests for ipcs limits
The tests check if data from kernel and from the ipcs command are same. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 2a18ef583..81168fc32 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -3,6 +3,11 @@ TS_OUTDIR="$TS_TOPDIR/output"
TS_DIFFDIR="$TS_TOPDIR/diff"
TS_EXPECTEDDIR="$TS_TOPDIR/expected"
+function ts_skip {
+ echo " IGNORE ($1)"
+ exit 0
+}
+
function ts_init {
TS_NAME=$(basename $0)
if [ ! -d $TS_OUTDIR ]; then
@@ -37,7 +42,11 @@ function ts_finalize {
exit 0
fi
if [ $res -eq 0 ]; then
- echo " OK"
+ if [ x"$1" == x"" ]; then
+ echo " OK"
+ else
+ echo " OK ($1)"
+ fi
exit 0
else
echo " FAILED ($TS_NAME)"