add file filters tests

Tests file access with all filters enabled. It does it both for local
and network access, due to regression in signature checking over network.

This includes all files in distribution to not depend on existence
of compression tools and gpg. Test preloads all required modules to
avoid having to provide signatures for them.

Still not implemented is file offset filter (is not available in grub
script, needs extra module)
This commit is contained in:
Andrei Borzenkov 2014-12-05 20:19:58 +03:00
parent 4b94e3227b
commit 272e0466da
13 changed files with 111 additions and 0 deletions

View file

@ -1150,6 +1150,12 @@ script = {
common = tests/grub_cmd_tr.in;
};
script = {
testcase;
name = file_filter_test;
common = tests/file_filter_test.in;
};
program = {
testcase;
name = example_unit_test;