]> 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 a2e40a70d119c744dcf41a11876a377557e2c648..7a7b74be51806fe4314cb3cfb702766fb300eb53 100644 (file)
@@ -145,3 +145,23 @@ 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
+}