aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-06-19 14:56:36 +0200
committerJay Berkenbilt <ejb@ql.org>2022-06-19 15:12:29 +0200
commiteae75dbe448b0395aee7e49c2a9cca9f82680782 (patch)
treeea5a9edfbd52ca5c381e5f97f79e46693d4b2beb /libtests/qtest
parentbb0ea2f8e7d8fffa575b291004e4426138c7bb1a (diff)
downloadqpdf-eae75dbe448b0395aee7e49c2a9cca9f82680782.tar.zst
Add Pl_Function -- a generic function pipeline
Diffstat (limited to 'libtests/qtest')
-rw-r--r--libtests/qtest/pl_function.test17
-rw-r--r--libtests/qtest/pl_function/exp2
2 files changed, 19 insertions, 0 deletions
diff --git a/libtests/qtest/pl_function.test b/libtests/qtest/pl_function.test
new file mode 100644
index 00000000..847aa472
--- /dev/null
+++ b/libtests/qtest/pl_function.test
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+require 5.008;
+use warnings;
+use strict;
+
+chdir("pl_function") or die "chdir testdir failed: $!\n";
+
+require TestDriver;
+
+my $td = new TestDriver('pl_function');
+
+$td->runtest("pl_function",
+ {$td->COMMAND => "pl_function"},
+ {$td->FILE => "exp", $td->EXIT_STATUS => 0},
+ $td->NORMALIZE_NEWLINES);
+
+$td->report(1);
diff --git a/libtests/qtest/pl_function/exp b/libtests/qtest/pl_function/exp
new file mode 100644
index 00000000..fd2ea1bc
--- /dev/null
+++ b/libtests/qtest/pl_function/exp
@@ -0,0 +1,2 @@
+p1: 6: potato
+p2: 5: salad