aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2017-11-13 17:28:31 +0000
committerBrian Cully <bjc@kublai.com>2017-11-13 17:28:31 +0000
commitb08eb5216d86cbe384b9f5e3c476dcb41d771e85 (patch)
tree430568ed596e6789ec043c618a8ebe3d65907615 /t
parentadfa2c97a1473bedcc10d3e2e3937eec249c0dfd (diff)
downloadxmpt-b08eb5216d86cbe384b9f5e3c476dcb41d771e85.tar.gz
xmpt-b08eb5216d86cbe384b9f5e3c476dcb41d771e85.zip
Rename 'config' to 'env'.
"Environment" more accurately reflects its usage, and this opens up "config" for global configuration. * Flags -c -> -e (-config -> -env).
Diffstat (limited to 't')
-rw-r--r--t/fixtures/sample.env (renamed from t/fixtures/localhost.conf)0
-rw-r--r--t/fixtures/sample.input (renamed from t/fixtures/input)0
-rw-r--r--t/fixtures/sample.plan (renamed from t/fixtures/testplan)0
-rw-r--r--t/samplerun.t12
4 files changed, 6 insertions, 6 deletions
diff --git a/t/fixtures/localhost.conf b/t/fixtures/sample.env
index bc462d7..bc462d7 100644
--- a/t/fixtures/localhost.conf
+++ b/t/fixtures/sample.env
diff --git a/t/fixtures/input b/t/fixtures/sample.input
index 2d508fe..2d508fe 100644
--- a/t/fixtures/input
+++ b/t/fixtures/sample.input
diff --git a/t/fixtures/testplan b/t/fixtures/sample.plan
index ba7fcaa..ba7fcaa 100644
--- a/t/fixtures/testplan
+++ b/t/fixtures/sample.plan
diff --git a/t/samplerun.t b/t/samplerun.t
index 4df0d7d..d9dba31 100644
--- a/t/samplerun.t
+++ b/t/samplerun.t
@@ -7,12 +7,12 @@ use IO::File;
use strict;
use warnings;
-my $config = 't/fixtures/localhost.conf';
-my $testplan = 't/fixtures/testplan';
-my $input = 't/fixtures/input';
+my $env = 't/fixtures/sample.env';
+my $testplan = 't/fixtures/sample.plan';
+my $input = 't/fixtures/sample.input';
do {
- my $cmd = "./xmpt -c $config -p $testplan";
+ my $cmd = "./xmpt -e $env -p $testplan";
my $xmptfh = new IO::File("|$cmd") or BAIL_OUT "Can't run '$cmd': $!.\n";
my $inputfh = new IO::File($input) or
BAIL_OUT "Couldn't open $input for reading: $!.\n";
@@ -25,7 +25,7 @@ do {
};
do {
- my $cmd = "./xmpt -t 1 -c $config -p $testplan cat 2>/dev/null";
+ my $cmd = "./xmpt -t 1 -e $env -p $testplan cat 2>/dev/null";
local $SIG{ALRM} = sub { fail("Timed out running $cmd.") };
alarm 5;
system $cmd;
@@ -33,7 +33,7 @@ do {
};
do {
- my $cmd = "./xmpt -c $config -p $testplan cat $input 2>/dev/null";
+ my $cmd = "./xmpt -e $env -p $testplan cat $input 2>/dev/null";
local $SIG{ALRM} = sub { fail("Timed out running $cmd.") };
alarm 10;
ok((system($cmd) >> 8) == 0, 'I/O redirected to cat');