summaryrefslogtreecommitdiffstats
path: root/test/parser/data/kboot-01/expected-output
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-15 15:28:57 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-16 11:53:25 +0800
commit5d16719922866622fc0f42c570b9934f595e3c33 (patch)
tree5ab9638936aff0aec14d150cf0bef9cb244cbe82 /test/parser/data/kboot-01/expected-output
parentaed58c439015f7f7372d9ee70c767ed9dd366dd7 (diff)
downloadtalos-petitboot-5d16719922866622fc0f42c570b9934f595e3c33.tar.gz
talos-petitboot-5d16719922866622fc0f42c570b9934f595e3c33.zip
test: Replace parser tests with empty framework
This change is a major rework of the parser tests. Currently, the parser tests just run the parsers on each subdir of data/, but we don't actually check the results. Rather than just running parsers and expecting a certain fixed output, the new tests are arbitraty (short!) C programs. This allows us to set up the device configuration / discover context etc in whatever manner necessary, and check that the boot options that the parsers emit are correct. This change removes all of the old tests, and adds a new "null" test. Actual tests will be added in subsequent changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/data/kboot-01/expected-output')
-rw-r--r--test/parser/data/kboot-01/expected-output24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/parser/data/kboot-01/expected-output b/test/parser/data/kboot-01/expected-output
deleted file mode 100644
index bace9f7..0000000
--- a/test/parser/data/kboot-01/expected-output
+++ /dev/null
@@ -1,24 +0,0 @@
-[dev 0] id: /dev/ps3da1
-[dev 0] name: (null)
-[dev 0] description: (null)
-[dev 0] boot_image: /usr/share/petitboot/artwork/hdd.png
-[opt 0] name: live
-[opt 0] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
-[opt 0] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux
-[opt 0] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz
-[opt 0] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
-[opt 1] name: live_nosplash
-[opt 1] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet --
-[opt 1] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux
-[opt 1] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz
-[opt 1] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper quiet --
-[opt 2] name: driverupdates
-[opt 2] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash --
-[opt 2] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux
-[opt 2] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz
-[opt 2] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper debian-installer/driver-update=true quiet splash --
-[opt 3] name: check
-[opt 3] description: /casper/vmlinux root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash --
-[opt 3] boot_image: devices/parser-tests/001/ps3da1/casper/vmlinux
-[opt 3] initrd: devices/parser-tests/001/ps3da1/casper/initrd.gz
-[opt 3] boot_args: root=/dev/ram0 initrd=/casper/initrd.gz boot=casper integrity-check quiet splash --
OpenPOWER on IntegriCloud