From 06206275e8480d44989b0c6112c5cf0eeaa5d4be Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 2 Jan 2008 21:39:46 +0000 Subject: added test for the output git-svn-id: svn://luxion/repos/WebCoso/trunk@320 fcb26f47-9200-0410-b104-b98ab5b095f3 --- t/whole-01.t | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 t/whole-01.t (limited to 't/whole-01.t') diff --git a/t/whole-01.t b/t/whole-01.t new file mode 100644 index 0000000..10c9204 --- /dev/null +++ b/t/whole-01.t @@ -0,0 +1,18 @@ +#!/usr/bin/perl +use strict; +use warnings; +use Test::More qw(no_plan); +use Path::Class; + +chdir file(__FILE__)->parent->parent->stringify; + +system($^X,qw(-Ilib webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/ --clean)) + and die "Problems running webcoso.pl (clean): $?\n"; + +system($^X,qw(-Ilib webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/)) + and die "Problems running webcoso.pl: $?\n"; + +is(system(qw(diff -r -x .svn t/test-site/output/ t/test-site-output/)),0,'output as expected'); + +system($^X,qw(-Ilib webcoso.pl -s t/test-site/src/ -d t/test-site/output/ -I t/test-site/common/ --clean)) + and die "Problems running webcoso.pl (clean): $?\n"; -- cgit v1.2.3