diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-14 22:16:20 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-14 23:35:06 +0200 |
commit | 173b944ef8f1dd3f971a6089a52fcd1ae07ca8f1 (patch) | |
tree | ad6f8c53b76b6975ddb8abe1cdc64d7677d58aee /qpdf/qtest/c_api_check.test | |
parent | 4b642caf1114f6a354c21444d1fdccba3cb894b9 (diff) | |
download | qpdf-173b944ef8f1dd3f971a6089a52fcd1ae07ca8f1.tar.zst |
Split qpdf.test into multiple test suites
This makes it a lot easier to run parts of the test suite.
Diffstat (limited to 'qpdf/qtest/c_api_check.test')
-rw-r--r-- | qpdf/qtest/c_api_check.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/qpdf/qtest/c_api_check.test b/qpdf/qtest/c_api_check.test new file mode 100644 index 00000000..29c8746a --- /dev/null +++ b/qpdf/qtest/c_api_check.test @@ -0,0 +1,30 @@ +#!/usr/bin/env perl +require 5.008; +use warnings; +use strict; + +unshift(@INC, '.'); +require qpdf_test_helpers; + +chdir("qpdf") or die "chdir testdir failed: $!\n"; + +require TestDriver; + +cleanup(); + +my $td = new TestDriver('c_api_check'); + +my @c_check_types = qw(warn clear); +my $n_tests = scalar(@c_check_types); + +foreach my $i (@c_check_types) +{ + $td->runtest("C check $i", + {$td->COMMAND => "qpdf-ctest 23 c-check-$i-in.pdf '' -"}, + {$td->FILE => "c-check-$i.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); +} + +cleanup(); +$td->report($n_tests); |