summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-08-01 11:30:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-08-01 11:30:21 +0200
commit34dddb5db65fefc5c36e8b99b9692dbcc14d8642 (patch)
treed67260ec74027a10669ec0fa66ecb2560132d2a4
parentdc62ee73443a3259f696c059c3888cce6b06bffd (diff)
Move tests to t/, re-structure the directory while at it
-rw-r--r--Makefile2
-rwxr-xr-xt/00-compile.t (renamed from test/00-compile.t)0
-rwxr-xr-xt/10-pod-coverage.t (renamed from test/10-pod-coverage.t)0
-rw-r--r--t/50-efa.t (renamed from test/50-efa.t)24
-rw-r--r--t/in/ambiguous (renamed from test/dump_ambiguous)0
-rw-r--r--t/in/e_hbf_b_hbf.ice (renamed from test/dump_e_hbf_b_hbf.ice)0
-rw-r--r--t/in/e_hbf_du_hbf.ice (renamed from test/dump_e_hbf_du_hbf.ice)0
-rw-r--r--t/in/e_hbf_mh_hbf (renamed from test/dump_e_hbf_mh_hbf)0
-rw-r--r--t/in/e_martinstr_e_florastr (renamed from test/dump_e_martinstr_e_florastr)0
-rw-r--r--t/in/e_werden_e_hbf (renamed from test/dump_e_werden_e_hbf)0
-rw-r--r--t/in/invalid_input (renamed from test/dump_invalid_input)0
-rw-r--r--t/in/no_connections (renamed from test/dump_no_connections)0
-rw-r--r--t/out/ambiguous (renamed from test/parse_ambiguous)0
-rw-r--r--t/out/e_hbf_b_hbf.ice (renamed from test/parse_e_hbf_b_hbf.ice)0
-rw-r--r--t/out/e_hbf_b_hbf.ice.ignore_all (renamed from test/parse_e_hbf_b_hbf.ice.ignore_all)0
-rw-r--r--t/out/e_hbf_du_hbf.ice (renamed from test/parse_e_hbf_du_hbf.ice)0
-rw-r--r--t/out/e_hbf_mh_hbf (renamed from test/parse_e_hbf_mh_hbf)0
-rw-r--r--t/out/e_hbf_mh_hbf.ignore_none (renamed from test/parse_e_hbf_mh_hbf.ignore_none)0
-rw-r--r--t/out/e_martinstr_e_florastr (renamed from test/parse_e_martinstr_e_florastr)0
-rw-r--r--t/out/e_werden_e_hbf (renamed from test/parse_e_werden_e_hbf)0
-rw-r--r--t/out/invalid_input (renamed from test/parse_invalid_input)0
-rw-r--r--t/out/no_connections (renamed from test/parse_no_connections)0
22 files changed, 13 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 05a85e3..a6df06e 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ uninstall:
rm -f ${basedir}/share/man/man1/efa.1
test:
- @prove test
+ prove
clean:
rm -rf build
diff --git a/test/00-compile.t b/t/00-compile.t
index 10c1984..10c1984 100755
--- a/test/00-compile.t
+++ b/t/00-compile.t
diff --git a/test/10-pod-coverage.t b/t/10-pod-coverage.t
index 4c1d5f5..4c1d5f5 100755
--- a/test/10-pod-coverage.t
+++ b/t/10-pod-coverage.t
diff --git a/test/50-efa.t b/t/50-efa.t
index 5582e47..94529bc 100644
--- a/test/50-efa.t
+++ b/t/50-efa.t
@@ -114,49 +114,49 @@ for my $file (qw{
e_martinstr_e_florastr
})
{
- $cmd = Test::Command->new(cmd => "$efa $test_parse < test/dump_$file");
+ $cmd = Test::Command->new(cmd => "$efa $test_parse < t/in/$file");
$cmd->exit_is_num(0);
- $cmd->stdout_is_file("test/parse_$file");
+ $cmd->stdout_is_file("t/out/$file");
$cmd->stderr_is_eq($EMPTY);
}
$cmd = Test::Command->new(
- cmd => "$efa $test_parse --ignore-info '.*' < test/dump_e_hbf_b_hbf.ice"
+ cmd => "$efa $test_parse --ignore-info '.*' < t/in/e_hbf_b_hbf.ice"
);
$cmd->exit_is_num(0);
-$cmd->stdout_is_file("test/parse_e_hbf_b_hbf.ice.ignore_all");
+$cmd->stdout_is_file("t/out/e_hbf_b_hbf.ice.ignore_all");
$cmd->stderr_is_eq($EMPTY);
$cmd = Test::Command->new(
- cmd => "$efa $test_parse --ignore-info < test/dump_e_hbf_mh_hbf"
+ cmd => "$efa $test_parse --ignore-info < t/in/e_hbf_mh_hbf"
);
$cmd->exit_is_num(0);
-$cmd->stdout_is_file("test/parse_e_hbf_mh_hbf.ignore_none");
+$cmd->stdout_is_file("t/out/e_hbf_mh_hbf.ignore_none");
$cmd->stderr_is_eq($EMPTY);
$cmd = Test::Command->new(
- cmd => "$efa $test_parse < test/dump_ambiguous"
+ cmd => "$efa $test_parse < t/in/ambiguous"
);
$cmd->exit_is_num(1);
$cmd->stdout_is_eq($EMPTY);
-$cmd->stderr_is_file('test/parse_ambiguous');
+$cmd->stderr_is_file('t/out/ambiguous');
$cmd = Test::Command->new(
- cmd => "$efa $test_parse < test/dump_no_connections"
+ cmd => "$efa $test_parse < t/in/no_connections"
);
$cmd->exit_is_num(2);
$cmd->stdout_is_eq($EMPTY);
-$cmd->stderr_is_file('test/parse_no_connections');
+$cmd->stderr_is_file('t/out/no_connections');
$cmd = Test::Command->new(
- cmd => "$efa $test_parse < test/dump_invalid_input"
+ cmd => "$efa $test_parse < t/in/invalid_input"
);
$cmd->exit_is_num(3);
$cmd->stdout_is_eq($EMPTY);
-$cmd->stderr_is_file('test/parse_invalid_input');
+$cmd->stderr_is_file('t/out/invalid_input');
diff --git a/test/dump_ambiguous b/t/in/ambiguous
index 375c065..375c065 100644
--- a/test/dump_ambiguous
+++ b/t/in/ambiguous
diff --git a/test/dump_e_hbf_b_hbf.ice b/t/in/e_hbf_b_hbf.ice
index 2810a47..2810a47 100644
--- a/test/dump_e_hbf_b_hbf.ice
+++ b/t/in/e_hbf_b_hbf.ice
diff --git a/test/dump_e_hbf_du_hbf.ice b/t/in/e_hbf_du_hbf.ice
index da12784..da12784 100644
--- a/test/dump_e_hbf_du_hbf.ice
+++ b/t/in/e_hbf_du_hbf.ice
diff --git a/test/dump_e_hbf_mh_hbf b/t/in/e_hbf_mh_hbf
index 38981fb..38981fb 100644
--- a/test/dump_e_hbf_mh_hbf
+++ b/t/in/e_hbf_mh_hbf
diff --git a/test/dump_e_martinstr_e_florastr b/t/in/e_martinstr_e_florastr
index 7f9da23..7f9da23 100644
--- a/test/dump_e_martinstr_e_florastr
+++ b/t/in/e_martinstr_e_florastr
diff --git a/test/dump_e_werden_e_hbf b/t/in/e_werden_e_hbf
index 7e70c9c..7e70c9c 100644
--- a/test/dump_e_werden_e_hbf
+++ b/t/in/e_werden_e_hbf
diff --git a/test/dump_invalid_input b/t/in/invalid_input
index fbdd3a1..fbdd3a1 100644
--- a/test/dump_invalid_input
+++ b/t/in/invalid_input
diff --git a/test/dump_no_connections b/t/in/no_connections
index bc6c481..bc6c481 100644
--- a/test/dump_no_connections
+++ b/t/in/no_connections
diff --git a/test/parse_ambiguous b/t/out/ambiguous
index 0dd2043..0dd2043 100644
--- a/test/parse_ambiguous
+++ b/t/out/ambiguous
diff --git a/test/parse_e_hbf_b_hbf.ice b/t/out/e_hbf_b_hbf.ice
index d49f10b..d49f10b 100644
--- a/test/parse_e_hbf_b_hbf.ice
+++ b/t/out/e_hbf_b_hbf.ice
diff --git a/test/parse_e_hbf_b_hbf.ice.ignore_all b/t/out/e_hbf_b_hbf.ice.ignore_all
index 5c20c5d..5c20c5d 100644
--- a/test/parse_e_hbf_b_hbf.ice.ignore_all
+++ b/t/out/e_hbf_b_hbf.ice.ignore_all
diff --git a/test/parse_e_hbf_du_hbf.ice b/t/out/e_hbf_du_hbf.ice
index 7488158..7488158 100644
--- a/test/parse_e_hbf_du_hbf.ice
+++ b/t/out/e_hbf_du_hbf.ice
diff --git a/test/parse_e_hbf_mh_hbf b/t/out/e_hbf_mh_hbf
index 92be25c..92be25c 100644
--- a/test/parse_e_hbf_mh_hbf
+++ b/t/out/e_hbf_mh_hbf
diff --git a/test/parse_e_hbf_mh_hbf.ignore_none b/t/out/e_hbf_mh_hbf.ignore_none
index 5375fe3..5375fe3 100644
--- a/test/parse_e_hbf_mh_hbf.ignore_none
+++ b/t/out/e_hbf_mh_hbf.ignore_none
diff --git a/test/parse_e_martinstr_e_florastr b/t/out/e_martinstr_e_florastr
index 9808d64..9808d64 100644
--- a/test/parse_e_martinstr_e_florastr
+++ b/t/out/e_martinstr_e_florastr
diff --git a/test/parse_e_werden_e_hbf b/t/out/e_werden_e_hbf
index 1ccb8f1..1ccb8f1 100644
--- a/test/parse_e_werden_e_hbf
+++ b/t/out/e_werden_e_hbf
diff --git a/test/parse_invalid_input b/t/out/invalid_input
index 5686f5d..5686f5d 100644
--- a/test/parse_invalid_input
+++ b/t/out/invalid_input
diff --git a/test/parse_no_connections b/t/out/no_connections
index f464ad3..f464ad3 100644
--- a/test/parse_no_connections
+++ b/t/out/no_connections