From 9a96e233b051b31289c84f90a321583887b1400a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 10 Aug 2017 20:24:16 -0400 Subject: Remove PCRE --- libtests/qtest/pcre.test | 47 ------------------- libtests/qtest/pcre/pcre-unicode-classes.out | 2 - libtests/qtest/pcre/pcre.out | 68 ---------------------------- 3 files changed, 117 deletions(-) delete mode 100644 libtests/qtest/pcre.test delete mode 100644 libtests/qtest/pcre/pcre-unicode-classes.out delete mode 100644 libtests/qtest/pcre/pcre.out (limited to 'libtests/qtest') diff --git a/libtests/qtest/pcre.test b/libtests/qtest/pcre.test deleted file mode 100644 index 9e0ebe1a..00000000 --- a/libtests/qtest/pcre.test +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 =~ m/^1/) -{ - my $xflags = 0; - if (`pcre --unicode-classes | wc -l` == 1) - { - # On Red Hat Enterprise Linux 5, the version of pcre provided - # by default claims to support unicode character classes, but - # they don't actually work. Since qpdf doesn't use this - # functionality, we won't care if this particular test case - # fails. If someone were to make general use of this wrapper, - # this test should be re-enabled, but on the other hand, they - # could just use the C++ interface that's been added to pcre - # since this code was written. - $xflags |= $td->EXPECT_FAILURE; - } - $td->runtest("unicode character classes", - {$td->COMMAND => "pcre --unicode-classes"}, - {$td->FILE => "pcre-unicode-classes.out", - $td->EXIT_STATUS => 0}, - $td->NORMALIZE_NEWLINES | $xflags); -} -else -{ - $td->runtest("unicode classes are not supported", - {$td->STRING => "1"}, - {$td->STRING => "1"}); -} - -$td->report(2); diff --git a/libtests/qtest/pcre/pcre-unicode-classes.out b/libtests/qtest/pcre/pcre-unicode-classes.out deleted file mode 100644 index 443febc5..00000000 --- a/libtests/qtest/pcre/pcre-unicode-classes.out +++ /dev/null @@ -1,2 +0,0 @@ -no utf8: ab -utf8: abπdefq diff --git a/libtests/qtest/pcre/pcre.out b/libtests/qtest/pcre/pcre.out deleted file mode 100644 index 27e94e64..00000000 --- a/libtests/qtest/pcre/pcre.out +++ /dev/null @@ -1,68 +0,0 @@ -PCRE error: compilation of a** failed at offset 2: nothing to repeat -3 -key: value one two three -0 -25 -key -0 -3 -value one two three -5 -19 -PCRE error: no match -PCRE error: no match -2 -aaa -aaa --- -hello -PCRE error: no match -qqqcqqq: no match -ab,c: 0: ab,c -ab,c: 0: 0, 4 -ab,c: 1: ab,c -ab,c: 1: 0, 4 -ab,c: 2: ab -ab,c: 2: 0, 2 -ab,c: 3: b -ab,c: 3: 1, 1 -ab,c: 4: c -ab,c: 4: 3, 1 -ab: 0: ab -ab: 0: 0, 2 -ab: 1: ab -ab: 1: 0, 2 -ab: 2: ab -ab: 2: 0, 2 -ab: 3: b -ab: 3: 1, 1 -a: 0: a -a: 0: 0, 1 -a: 1: a -a: 1: 0, 1 -a: 2: a -a: 2: 0, 1 -a,c: 0: a,c -a,c: 0: 0, 3 -a,c: 1: a,c -a,c: 1: 0, 3 -a,c: 2: a -a,c: 2: 0, 1 -a,c: 3: no backref (getMatch) -a,c: 3: no backref (getOffsetLength) -a,c: 4: c -a,c: 4: 2, 1 -c: 0: c -c: 0: 0, 1 -c: 1: c -c: 1: 0, 1 -c: 2: no backref (getMatch) -c: 2: no backref (getOffsetLength) -c: 3: no backref (getMatch) -c: 3: no backref (getOffsetLength) -c: 4: no backref (getMatch) -c: 4: no backref (getOffsetLength) -c: 5: c -c: 5: 0, 1 -: 0: -: 0: 0, 0 -- cgit v1.2.3-54-g00ecf