[Lunar-commits] r16097 - lunar-iso/trunk/scripts
Auke Kok
sofar at lunar-linux.org
Sat Aug 13 19:10:11 UTC 2005
Author: sofar
Date: 2005-08-13 19:10:10 +0000 (Sat, 13 Aug 2005)
New Revision: 16097
Modified:
lunar-iso/trunk/scripts/test
Log:
Adding / refining test script.
Modified: lunar-iso/trunk/scripts/test
===================================================================
--- lunar-iso/trunk/scripts/test 2005-08-13 16:47:16 UTC (rev 16096)
+++ lunar-iso/trunk/scripts/test 2005-08-13 19:10:10 UTC (rev 16097)
@@ -1,11 +1,14 @@
#!/bin/bash
+[ ! -f $ISO_TARGET/var/lib/lunar/moonbase.tar.bz2 ] && echo "FAIL: missing moonbase" && exit 1
+[ ! -f $ISO_TARGET/var/cache/lunar/$ISO_LUNAR_MODULE-$ISO_DATE-$ISO_BUILD.tar.bz2 ] && echo "FAIL: missing $ISO_LUNAR_MODULE" && exit 1
+grep -q "^$ISO_LUNAR_MODULE:$ISO_DATE:" $ISO_TARGET/.packages || ( echo "FAIL: missing $ISO_LUNAR_MODULE in package list" && exit 1)
+
if [ -f $ISO_TARGET/.rebuild ]; then
# first define the tests:
TESTS=(
"bash --version"
"sh --version"
- "perl --version"
"echo 1234"
"date -u +%Y%m%d-%T"
"awk -F: {print} /dev/null"
@@ -36,7 +39,6 @@
RESULT=1
fi
done
- set -x
exit ${RESULT:-0}
else
echo "Can't run tests now!"
More information about the Lunar-commits
mailing list