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'
56 WVPASS ./script --gen-only
57 WVPASS test -f build/file
59 WVSTART BUILDDIR variable
67 WVPASS ./script --gen-only
68 WVPASS test -f build/file
70 WVSTART Hypervisor configuration variable
72 echo '$hypervisor="HYP";' > .novaboot
73 WVPASS ./script --gen-only --pulsar
74 WVPASS grep "exec HYP" config-novaboot
80 WVSTART ISO image generation
84 # Hi-lock: (("^.*\\(?:WVSTART\\).*$" (0 (quote hi-black-b) t)))