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)
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

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/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]