aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-02-02 21:36:00 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-02-03 07:51:00 +0200
commitc3ee8d97ea8a427abd455c903157da94623e83dd (patch)
tree6048cbc108e4a76ff56d6429e60150611bee11be /tests
parent494fe491d81505a83207602d5ec129b0bf33a484 (diff)
downloadpies-c3ee8d97ea8a427abd455c903157da94623e83dd.tar.gz
pies-c3ee8d97ea8a427abd455c903157da94623e83dd.tar.bz2
External preprocessor can be selected when building the package and at runtime.
* configure.ac: Report selected preprocessor. Version 1.5.90. * doc/Makefile.am: Don't distribute gendocs.pl and gendocs_template * grecs: Upgrade. * lib/pp.c (pp_command_line): Use the grecs_preprocessor variable instead of DEFAULT_PREPROCESSOR macro. * src/cmdline.opt: New options: --preprocessor and --no-preprocessor. Report the preprocessor command and setup file when called with --help. * src/pies.c (config_init): Initialize grecs_preprocessor. * NEWS: Document changes. * doc/pies.texi: Document new options. * tests/accept.at: Invoke pies with --no-preprocessor. * tests/builtin.at: Likewise. * tests/control.at: Likewise. * tests/cyclic.at: Likewise. * tests/env.at: Likewise. * tests/envglobal.at: Likewise. * tests/expandenv.at: Likewise. * tests/inet.at: Likewise. * tests/maxinst.at: Likewise. * tests/passfd.at: Likewise. * tests/redirect.at: Likewise. * tests/respawn.at: Likewise. * tests/ret-exec.at: Likewise. * tests/ret-notify.at: Likewise. * tests/shell.at: Likewise. * tests/shutdown.at: Likewise. * tests/startup.at: Likewise.
Diffstat (limited to 'tests')
-rw-r--r--tests/accept.at2
-rw-r--r--tests/builtin.at6
-rw-r--r--tests/control.at2
-rw-r--r--tests/cyclic.at4
-rw-r--r--tests/env.at4
-rw-r--r--tests/envglobal.at2
-rw-r--r--tests/expandenv.at2
-rw-r--r--tests/inet.at2
-rw-r--r--tests/maxinst.at2
-rw-r--r--tests/passfd.at2
-rw-r--r--tests/redirect.at2
-rw-r--r--tests/respawn.at2
-rw-r--r--tests/ret-exec.at2
-rw-r--r--tests/ret-notify.at2
-rw-r--r--tests/shell.at2
-rw-r--r--tests/shutdown.at2
-rw-r--r--tests/startup.at2
17 files changed, 21 insertions, 21 deletions
diff --git a/tests/accept.at b/tests/accept.at
index ae2af92..6c43a6a 100644
--- a/tests/accept.at
+++ b/tests/accept.at
@@ -40,7 +40,7 @@ _EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat inlog
diff --git a/tests/builtin.at b/tests/builtin.at
index cfda075..d27d48c 100644
--- a/tests/builtin.at
+++ b/tests/builtin.at
@@ -46,7 +46,7 @@ component controller {
_EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat output m4_if([$1],[qotd],[| tr -d '\r'])
@@ -86,7 +86,7 @@ TZ=0
export TZ
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
if test -s in.err; then
@@ -173,7 +173,7 @@ _EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
for err in one.err two.err test.err
diff --git a/tests/control.at b/tests/control.at
index f85e735..3837986 100644
--- a/tests/control.at
+++ b/tests/control.at
@@ -20,7 +20,7 @@ AT_CHECK([
PIES_XFAIL_CHECK
PIES_CONTROL_INIT
-pies --config-file control.conf
+pies --no-preprocessor --config-file control.conf
sleep 1
PIESCTL="piesctl --no-netrc --url '$PIES_CTLSOCK'"
diff --git a/tests/cyclic.at b/tests/cyclic.at
index 2d580a0..c725fc6 100644
--- a/tests/cyclic.at
+++ b/tests/cyclic.at
@@ -92,7 +92,7 @@ component h {
}
])
-pies --config-file test.conf --dump-depmap | trimws
+pies --no-preprocessor --config-file test.conf --dump-depmap | trimws
],
[0],
[Dependency map:
@@ -130,7 +130,7 @@ component d {
prerequisites (a);
}
])
-pies --config-file test.conf --dump-depmap | trimws
+pies --no-preprocessor --config-file test.conf --dump-depmap | trimws
],
[0],
[No components defined
diff --git a/tests/env.at b/tests/env.at
index 88412fd..338f88e 100644
--- a/tests/env.at
+++ b/tests/env.at
@@ -37,7 +37,7 @@ _EOT
to 5 \
envtest -exec \
- $abs_top_builddir/src/pies --foreground --stderr \
+ $abs_top_builddir/src/pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file envtest.conf --debug 1 2>errlog
cat log
],
@@ -111,7 +111,7 @@ _EOT
to 5 \
envtest -exec \
- $abs_top_builddir/src/pies --foreground --stderr \
+ $abs_top_builddir/src/pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file envtest.conf --debug 1 2>errlog
cat log
],
diff --git a/tests/envglobal.at b/tests/envglobal.at
index 357649b..4df5727 100644
--- a/tests/envglobal.at
+++ b/tests/envglobal.at
@@ -37,7 +37,7 @@ _EOT
to 5 \
envtest -exec \
- $abs_top_builddir/src/pies --foreground --stderr \
+ $abs_top_builddir/src/pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file envtest.conf --debug 1 2>errlog
cat log
],
diff --git a/tests/expandenv.at b/tests/expandenv.at
index 70c6a26..1249d93 100644
--- a/tests/expandenv.at
+++ b/tests/expandenv.at
@@ -38,7 +38,7 @@ export statefile
set -e
to 5 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 4 2>errlog
cat state
diff --git a/tests/inet.at b/tests/inet.at
index c40ee59..ec526fa 100644
--- a/tests/inet.at
+++ b/tests/inet.at
@@ -36,7 +36,7 @@ component controller {
_EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat inlog
diff --git a/tests/maxinst.at b/tests/maxinst.at
index 23f3ea7..07360ad 100644
--- a/tests/maxinst.at
+++ b/tests/maxinst.at
@@ -66,7 +66,7 @@ _EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat con3.out
diff --git a/tests/passfd.at b/tests/passfd.at
index 3a829f1..50817fd 100644
--- a/tests/passfd.at
+++ b/tests/passfd.at
@@ -43,7 +43,7 @@ _EOT
set -e
to 10 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat inlog
diff --git a/tests/redirect.at b/tests/redirect.at
index 04bb724..61ce45c 100644
--- a/tests/redirect.at
+++ b/tests/redirect.at
@@ -29,7 +29,7 @@ component test {
}
_EOT
-pies --config-file control.conf --config-file pies.conf
+pies --no-preprocessor --config-file control.conf --config-file pies.conf
n=0
while :
diff --git a/tests/respawn.at b/tests/respawn.at
index 7698d92..ed4f189 100644
--- a/tests/respawn.at
+++ b/tests/respawn.at
@@ -33,7 +33,7 @@ component test {
_EOT
to 5 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat state
],
diff --git a/tests/ret-exec.at b/tests/ret-exec.at
index c875a36..a8aeac8 100644
--- a/tests/ret-exec.at
+++ b/tests/ret-exec.at
@@ -35,7 +35,7 @@ _EOT
>$report_file
-pies --config-file control.conf --config-file pies.conf
+pies --no-preprocessor --config-file control.conf --config-file pies.conf
n=0
while test ! -s $report_file
diff --git a/tests/ret-notify.at b/tests/ret-notify.at
index 9be2dd4..e45c738 100644
--- a/tests/ret-notify.at
+++ b/tests/ret-notify.at
@@ -36,7 +36,7 @@ _EOT
>$report_file
-pies --config-file control.conf --config-file pies.conf
+pies --no-preprocessor --config-file control.conf --config-file pies.conf
n=0
while test ! -s $report_file
diff --git a/tests/shell.at b/tests/shell.at
index 15017a6..7eda3b0 100644
--- a/tests/shell.at
+++ b/tests/shell.at
@@ -36,7 +36,7 @@ _EOT
set -e
to 5 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
echo state:
diff --git a/tests/shutdown.at b/tests/shutdown.at
index 3c79192..f34e4c9 100644
--- a/tests/shutdown.at
+++ b/tests/shutdown.at
@@ -41,7 +41,7 @@ _EOT
set -e
to 5 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat shutdown
diff --git a/tests/startup.at b/tests/startup.at
index b0a6c28..f51aab9 100644
--- a/tests/startup.at
+++ b/tests/startup.at
@@ -46,7 +46,7 @@ _EOT
set -e
to 5 \
- pies --foreground --stderr \
+ pies --no-preprocessor --foreground --stderr \
--config-file control.conf --config-file pies.conf --debug 1 2>errlog
cat log.out

Return to:

Send suggestions and report system problems to the System administrator.