]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - tests/wvtest.sh
Make tests not read the system configuration from /etc
[novaboot.git] / tests / wvtest.sh
index f3fa327ae9fcf7989d41e422ec680385cd296ae5..7a7b74be51806fe4314cb3cfb702766fb300eb53 100644 (file)
@@ -146,3 +146,22 @@ WVSTART()
 
 WV_BASE_DIR="$PWD"
 export NOVABOOT_TEST=1
+export NOVABOOT_CONFIG_DIR=/dev/null # Do not read config from /etc/novaboot.d
+
+PATH=$(dirname $PWD):$PATH # Find our version of novaboot first
+
+function create_script ()
+{
+    (echo "#!/usr/bin/env novaboot"; cat) > script
+    chmod +x script
+}
+
+function create_dummy ()
+{
+    create_script <<EOF
+load kernel
+load file
+EOF
+    touch kernel
+    touch file
+}