]> git.ozlabs.org Git - petitboot/commit
test: Replace parser tests with empty framework
authorJeremy Kerr <jk@ozlabs.org>
Wed, 15 May 2013 07:28:57 +0000 (15:28 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 16 May 2013 03:53:25 +0000 (11:53 +0800)
commit5d16719922866622fc0f42c570b9934f595e3c33
tree5ab9638936aff0aec14d150cf0bef9cb244cbe82
parentaed58c439015f7f7372d9ee70c767ed9dd366dd7
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>
30 files changed:
test/parser/Makefile.am
test/parser/data/grub-01/grub.cfg [deleted file]
test/parser/data/grub-02/grub.cfg [deleted file]
test/parser/data/kboot-01/etc/kboot.conf [deleted file]
test/parser/data/kboot-01/expected-output [deleted file]
test/parser/data/kboot-02/etc/kboot.conf [deleted file]
test/parser/data/kboot-02/expected-output [deleted file]
test/parser/data/kboot-03/etc/kboot.conf [deleted file]
test/parser/data/kboot-03/expected-output [deleted file]
test/parser/data/kboot-04/etc/kboot.conf [deleted file]
test/parser/data/kboot-04/expected-output [deleted file]
test/parser/data/kboot-05/etc/kboot.conf [deleted file]
test/parser/data/kboot-05/expected-output [deleted file]
test/parser/data/kboot-06/etc/kboot.conf [deleted file]
test/parser/data/kboot-06/expected-output [deleted file]
test/parser/data/kboot-07/etc/kboot.conf [deleted file]
test/parser/data/yaboot-01/etc/yaboot.conf [deleted file]
test/parser/data/yaboot-01/expected-output [deleted file]
test/parser/data/yaboot-02/etc/yaboot.conf [deleted file]
test/parser/data/yaboot-03/etc/yaboot.conf [deleted file]
test/parser/data/yaboot-04/etc/yaboot.conf [deleted file]
test/parser/data/yaboot-05/etc/yaboot.conf [deleted file]
test/parser/data/yaboot-06/etc/yaboot.conf [deleted file]
test/parser/handler.c [new file with mode: 0644]
test/parser/main.c [new file with mode: 0644]
test/parser/parser-test.c [deleted file]
test/parser/parser-test.h [new file with mode: 0644]
test/parser/run-parser-tests.in [deleted file]
test/parser/test-null.c [new file with mode: 0644]
test/parser/utils.c [new file with mode: 0644]