5 PATH=$(dirname $PWD):$PATH # Find our version of novaboot first
7 function create_script ()
9 (echo "#!/usr/bin/env novaboot"; cat) > script
13 function create_dummy ()
25 WVPASS ./script --gen-only --pulsar --pulsar-root=ASDF
26 WVPASS grep "root ASDF" config-novaboot
30 WVPASS ./script --gen-only --bender --pulsar
31 WVPASS grep "bender" config-novaboot
33 WVSTART Chainloader support
35 WVPASS ./script --gen-only --chainloader=chain1 -chainloader=chain2 --pulsar
36 WVPASS grep "exec chain1" config-novaboot
37 WVPASS grep "load chain2" config-novaboot
39 WVSTART Configuration files
42 WVPASS sh -c "./script --gen-only 2> log"
43 WVPASS grep "novaboot: Read $PWD/.novaboot" log
45 WVSTART Builddir configuration variable
47 cat > .novaboot <<'EOF'
54 WVPASS ./script --gen-only
55 WVPASS test -f build/file
57 WVSTART BUILDDIR variable
63 WVPASS ./script --gen-only
64 WVPASS test -f build/file
66 WVSTART Hypervisor configuration variable
68 echo '$hypervisor="HYP";' > .novaboot
69 WVPASS ./script --gen-only --pulsar
70 WVPASS grep "exec HYP" config-novaboot
76 WVSTART ISO image generation
80 # Hi-lock: (("^.*\\(?:WVSTART\\).*$" (0 (quote hi-black-b) t)))