]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Add test for GRUB2
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 28 Jun 2021 06:15:39 +0000 (08:15 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 28 Jun 2021 06:15:39 +0000 (08:15 +0200)
This will allow us to verify that the changes to GRUB2 config file
generation code in the subsequent commits work as intended.

tests/novaboot.wv

index 4b73577729913e66233bd8ff1225e3f86892c8ce..e2ff8c8acfa7469c233ccf440a286a5c46032280 100755 (executable)
@@ -26,6 +26,19 @@ EOF
 WVPASS ./script --gen-only --pulsar
 WVPASS grep "chld grub" config-novaboot
 
+WVSTART GRUB2
+create_script <<EOF
+load kernel
+load ramdisk
+EOF
+WVPASS ./script --gen-only --grub2
+WVPASS git diff --no-index --color - grub.cfg <<EOF
+menuentry script {
+  multiboot kernel 
+  module ramdisk ramdisk
+}
+EOF
+
 WVSTART Configuration files
 create_dummy
 echo '1;' > .novaboot