buda-base / asset-manager

Asset Manager and audit tool
The Unlicense
0 stars 0 forks source link

User designated test sets #170

Closed jimk-bdrc closed 2 years ago

jimk-bdrc commented 2 years ago

Fixes #165 by supporting individual test names. See documentation for format.

Here's what it looks like on the fly:

    ~/dev/tmp/am166  audit-tool -l . -D MaximumImageFileSize=35K -T FileSizeTests -i 15works.lst  ✔ ╱ jimk@bodhi  13:11:55 
ERROR Failed    /mnt/Archive0/35/W1NLM2535      File Size Test
ERROR Failed    /mnt/Archive0/35/W1KG24035      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC032435       File Size Test
ERROR Failed    /mnt/Archive0/35/W8LS20135      File Size Test
ERROR Failed    /mnt/Archive0/35/W1KG24735      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FPL1335      File Size Test
ERROR Failed    /mnt/Archive0/35/W4CZ354435     File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC011135       File Size Test
ERROR Failed    /mnt/Archive0/35/W1KG18535      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FPL5935      File Size Test
ERROR Failed    /mnt/Archive0/35/W1NLM3435      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC021735       File Size Test
ERROR Failed    /mnt/Archive0/35/W2CZ6035       File Size Test
ERROR Failed    /mnt/Archive0/35/W1NLM3235      File Size Test
ERROR Failed    /mnt/Archive0/35/W8LS67635      File Size Test

    ~/dev/tmp/am166  audit-tool -l . -D MaximumImageFileSize=600K -T FileSizeTests -i 15works.lst
INFO  Passed    /mnt/Archive0/35/W1NLM2535      File Size Test
INFO  Passed    /mnt/Archive0/35/W1KG24035      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC032435       File Size Test
INFO  Passed    /mnt/Archive0/35/W8LS20135      File Size Test
INFO  Passed    /mnt/Archive0/35/W1KG24735      File Size Test
INFO  Passed    /mnt/Archive0/35/W1FPL1335      File Size Test
INFO  Passed    /mnt/Archive0/35/W4CZ354435     File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC011135       File Size Test
INFO  Passed    /mnt/Archive0/35/W1KG18535      File Size Test
INFO  Passed    /mnt/Archive0/35/W1FPL5935      File Size Test
INFO  Passed    /mnt/Archive0/35/W1NLM3435      File Size Test
ERROR Failed    /mnt/Archive0/35/W1FEMC021735       File Size Test
INFO  Passed    /mnt/Archive0/35/W2CZ6035       File Size Test
INFO  Passed    /mnt/Archive0/35/W1NLM3235      File Size Test
INFO  Passed    /mnt/Archive0/35/W8LS67635      File Size Test

and you can see the multiple test result files

-rw-r--r-- 1 xxx xxx   1501 Apr 29 13:12 FAIL-W1FEMC011135-2022-04-29-13-12-01.csv
-rw-r--r-- 1 xxx xxx     5597 Apr 29 13:12 FAIL-W1FEMC011135-2022-04-29-13-12.csv
-rw-r--r-- 1 xxx xxx   168513 Apr 29 13:12 FAIL-W1FEMC021735-2022-04-29-13-12-01.csv
-rw-r--r-- 1 xxx xxx   171458 Apr 29 13:12 FAIL-W1FEMC021735-2022-04-29-13-12.csv
-rw-r--r-- 1 xxx xxx    35557 Apr 29 13:12 FAIL-W1FEMC032435-2022-04-29-13-12-01.csv
-rw-r--r-- 1 xxx xxx    41336 Apr 29 13:12 FAIL-W1FEMC032435-2022-04-29-13-12.csv