blob: 75bd1a7f70d2cc66f113b102c994674c2b1dc20f [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- make a few trials dirs
2[TMP]/first
3[TMP]/second
4[TMP]/third
5- fetch trial dirs in order
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02006first
Pau Espin Pedrol5bf66c52017-05-23 17:40:23 +02007['taken']
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02008second
9third
Neels Hofmeyr3531a192017-03-28 14:30:28 +020010- no more trial dirs left
11None
12- test checksum verification
13- detect wrong checksum
Pau Espin Pedrolafa2fc32020-05-06 17:29:50 +020014ok, got RuntimeError: Checksum mismatch for '[PATH]/trial_test/invalid_checksum/file2' vs. '[PATH]/trial_test/invalid_checksum/checksums.md5' line 2
Neels Hofmeyr3531a192017-03-28 14:30:28 +020015- detect missing file
Pau Espin Pedrolafa2fc32020-05-06 17:29:50 +020016ok, got RuntimeError: File listed in checksums file but missing in trials dir: '[PATH]/trial_test/missing_file/file2' vs. '[PATH]/trial_test/missing_file/checksums.md5' line 2
Pau Espin Pedrol6e0b6fb2020-05-25 19:49:29 +020017- Verify trials based on run_label
18tst run_label: DBG: has bin_tar {bin_name='sample', matches=['sample.tar.gz'], run_label='foobar'}
19inst: [PATH]/trial_test/run_label/inst/foobar/sample
20content file2: subhello
21
22tst run_label: DBG: has bin_tar {bin_name='sample', matches=['sample.tar.gz'], run_label=''}
23inst: [PATH]/trial_test/run_label/inst/sample
24content file1: hello
25