diff options
author | Jay Berkenbilt <ejb@ql.org> | 2008-04-29 14:55:25 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2008-04-29 14:55:25 +0200 |
commit | 9a0b88bf7777c153dc46ace22db74ef24d51583a (patch) | |
tree | f567ac1cf2bf5071a611eb49323a935b6ac938ff /libtests/qtest/pcre.test | |
download | qpdf-9a0b88bf7777c153dc46ace22db74ef24d51583a.tar.zst |
update release date to actual daterelease-qpdf-2.0
git-svn-id: svn+q:///qpdf/trunk@599 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libtests/qtest/pcre.test')
-rw-r--r-- | libtests/qtest/pcre.test | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libtests/qtest/pcre.test b/libtests/qtest/pcre.test new file mode 100644 index 00000000..cf0418da --- /dev/null +++ b/libtests/qtest/pcre.test @@ -0,0 +1,34 @@ +#!/usr/bin/env perl +require 5.008; +BEGIN { $^W = 1; } +use strict; + +chdir("pcre") or die "chdir testdir failed: $!\n"; + +require TestDriver; + +my $td = new TestDriver('pcre'); + +$td->runtest("PCRE", + {$td->COMMAND => "pcre"}, + {$td->FILE => "pcre.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +chop(my $supported = `pcre --unicode-classes-supported`); +if ($supported) +{ + $td->runtest("unicode character classes", + {$td->COMMAND => "pcre --unicode-classes"}, + {$td->FILE => "pcre-unicode-classes.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); +} +else +{ + $td->runtest("unicode classes are not supported", + {$td->STRING => "1"}, + {$td->STRING => "1"}); +} + +$td->report(2); |