aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-11 02:24:16 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-11 03:30:32 +0200
commit9a96e233b051b31289c84f90a321583887b1400a (patch)
tree233f0f9ad9c257b80f13734698e97ba842a59799 /libtests/qtest
parent30f109e244f365111d5219903f13d64cf1a95054 (diff)
downloadqpdf-9a96e233b051b31289c84f90a321583887b1400a.tar.zst
Remove PCRE
Diffstat (limited to 'libtests/qtest')
-rw-r--r--libtests/qtest/pcre.test47
-rw-r--r--libtests/qtest/pcre/pcre-unicode-classes.out2
-rw-r--r--libtests/qtest/pcre/pcre.out68
3 files changed, 0 insertions, 117 deletions
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