6 WVSTART Invoke with no script
7 WVPASS novaboot -t '' < /dev/null
9 WVSTART Invoke as script
11 WVPASS ./script --gen-only
13 WVSTART Invoke as script with absolute path
15 WVPASS $PWD/script --gen-only
19 WVPASS ./script --gen-only --pulsar --pulsar-root=ASDF
20 WVPASS grep "root ASDF" config-novaboot
24 WVPASS ./script --gen-only --bender --pulsar
25 WVPASS grep "bender" config-novaboot
27 WVSTART Chainloader support
29 WVPASS ./script --gen-only --chainloader=chain1 -chainloader=chain2 --pulsar
30 WVPASS grep "exec chain1" config-novaboot
31 WVPASS grep "load chain2" config-novaboot
33 WVSTART Configuration files
36 WVPASS sh -c "./script --gen-only 2> log"
37 WVPASS grep "novaboot: Read $PWD/.novaboot" log
39 WVSTART Configuration files in symlinked directories
41 echo '1;' > config/.novaboot
43 ( cd script; create_dummy )
44 ln -s ../script config
45 WVPASS sh -c "./config/script/script --gen-only 2> log"
46 WVPASS grep "novaboot: Read $PWD/config/.novaboot" log
48 WVSTART Builddir configuration variable
50 cat > .novaboot <<'EOF'
55 load file < echo Hello
57 WVPASS ./script --gen-only
58 WVPASS test -f build/file
60 WVSTART Fail with unknown target
62 WVFAIL sh -c "./script --gen-only -t non-existing-target"
64 WVSTART BUILDDIR variable
68 load file < echo Hello
70 WVPASS ./script --gen-only
71 WVPASS test -f build/file
73 WVSTART Hypervisor configuration variable
75 echo '$hypervisor="HYP";' > .novaboot
76 WVPASS ./script --gen-only --pulsar
77 WVPASS grep "exec HYP" config-novaboot
82 WVSTART ISO image generation
86 # Hi-lock: (("^.*\\(?:WVSTART\\).*$" (0 (quote hi-black-b) t)))