Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 1 | - make a few trials dirs |
| 2 | [TMP]/first |
| 3 | [TMP]/second |
| 4 | [TMP]/third |
| 5 | - fetch trial dirs in order |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 6 | first |
Pau Espin Pedrol | 5bf66c5 | 2017-05-23 17:40:23 +0200 | [diff] [blame] | 7 | ['taken'] |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 8 | second |
| 9 | third |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 10 | - no more trial dirs left |
| 11 | None |
| 12 | - test checksum verification |
| 13 | - detect wrong checksum |
Pau Espin Pedrol | afa2fc3 | 2020-05-06 17:29:50 +0200 | [diff] [blame] | 14 | ok, got RuntimeError: Checksum mismatch for '[PATH]/trial_test/invalid_checksum/file2' vs. '[PATH]/trial_test/invalid_checksum/checksums.md5' line 2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 15 | - detect missing file |
Pau Espin Pedrol | afa2fc3 | 2020-05-06 17:29:50 +0200 | [diff] [blame] | 16 | ok, 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 Pedrol | 6e0b6fb | 2020-05-25 19:49:29 +0200 | [diff] [blame] | 17 | - Verify trials based on run_label |
| 18 | tst run_label: DBG: has bin_tar {bin_name='sample', matches=['sample.tar.gz'], run_label='foobar'} |
| 19 | inst: [PATH]/trial_test/run_label/inst/foobar/sample |
| 20 | content file2: subhello |
| 21 | |
| 22 | tst run_label: DBG: has bin_tar {bin_name='sample', matches=['sample.tar.gz'], run_label=''} |
| 23 | inst: [PATH]/trial_test/run_label/inst/sample |
| 24 | content file1: hello |
| 25 | |