diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-05-15 15:28:57 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-05-16 11:53:25 +0800 |
commit | 5d16719922866622fc0f42c570b9934f595e3c33 (patch) | |
tree | 5ab9638936aff0aec14d150cf0bef9cb244cbe82 /test/parser/test-null.c | |
parent | aed58c439015f7f7372d9ee70c767ed9dd366dd7 (diff) | |
download | talos-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/test-null.c')
-rw-r--r-- | test/parser/test-null.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parser/test-null.c b/test/parser/test-null.c new file mode 100644 index 0000000..954ddc3 --- /dev/null +++ b/test/parser/test-null.c @@ -0,0 +1,7 @@ + +#include "parser-test.h" + +void run_test(struct parser_test *test) +{ + (void)test; +} |