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 ()
23 WVSTART Invoke with no script
24 WVPASS novaboot < /dev/null
26 WVSTART Invoke as script
28 WVPASS ./script --gen-only
30 WVSTART Invoke as script with absolute path
32 WVPASS $PWD/script --gen-only
36 WVPASS ./script --gen-only --pulsar --pulsar-root=ASDF
37 WVPASS grep "root ASDF" config-novaboot
41 WVPASS ./script --gen-only --bender --pulsar
42 WVPASS grep "bender" config-novaboot
44 WVSTART Chainloader support
46 WVPASS ./script --gen-only --chainloader=chain1 -chainloader=chain2 --pulsar
47 WVPASS grep "exec chain1" config-novaboot
48 WVPASS grep "load chain2" config-novaboot
50 WVSTART Configuration files
53 WVPASS sh -c "./script --gen-only 2> log"
54 WVPASS grep "novaboot: Read $PWD/.novaboot" log
56 WVSTART Builddir configuration variable
58 cat > .novaboot <<'EOF'
65 WVPASS ./script --gen-only
66 WVPASS test -f build/file
68 WVSTART BUILDDIR variable
74 WVPASS ./script --gen-only
75 WVPASS test -f build/file
77 WVSTART Hypervisor configuration variable
79 echo '$hypervisor="HYP";' > .novaboot
80 WVPASS ./script --gen-only --pulsar
81 WVPASS grep "exec HYP" config-novaboot
87 WVSTART ISO image generation
91 # Hi-lock: (("^.*\\(?:WVSTART\\).*$" (0 (quote hi-black-b) t)))