| 1 | use strict; |
| 2 | use warnings; |
| 3 | |
| 4 | use Test2::V0; |
| 5 | use Test::Script; |
| 6 | |
| 7 | script_compiles('script/marcvalidate'); |
| 8 | script_runs( |
| 9 | ['script/marcvalidate', '--type', 'RAW', '--file', 't/camel.mrc']); |
| 10 | |
| 11 | script_runs(['script/marcvalidate', '--type', 'RAW', 't/camel.mrc']); |
| 12 | |
| 13 | script_runs( |
| 14 | [ |
| 15 | 'script/marcvalidate', '--type', |
| 16 | 'RAW', '--schema', |
| 17 | 'share/marc-schema.json', 't/camel.mrc' |
| 18 | ] |
| 19 | ); |
| 20 | |
| 21 | done_testing; |