storage: test: split archive format/compressor

detection into separate functions so they are reusable and easier
modifiable. This patch also adds the test for archive_info.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2020-04-28 15:58:13 +02:00
committed by Fabian Grünbichler
parent 7435dc9071
commit cd554b79d1
4 changed files with 199 additions and 22 deletions

View File

@ -1,6 +1,6 @@
all: test
test: test_zfspoolplugin test_disklist test_bwlimit
test: test_zfspoolplugin test_disklist test_bwlimit test_plugin
test_zfspoolplugin: run_test_zfspoolplugin.pl
./run_test_zfspoolplugin.pl
@ -10,3 +10,6 @@ test_disklist: run_disk_tests.pl
test_bwlimit: run_bwlimit_tests.pl
./run_bwlimit_tests.pl
test_plugin: run_plugin_tests.pl
./run_plugin_tests.pl