diff options
Diffstat (limited to 't/02_clientsim_txt_parsable.t')
-rwxr-xr-x | t/02_clientsim_txt_parsable.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/02_clientsim_txt_parsable.t b/t/02_clientsim_txt_parsable.t new file mode 100755 index 0000000..4cbfd01 --- /dev/null +++ b/t/02_clientsim_txt_parsable.t @@ -0,0 +1,27 @@ +#!/usr/bin/env perl + +# Just a functional test, whether ~/etc/client-simulation.txt +# doesn't have any syntax errors + +use strict; +use Test::More; + +my $tests = 0; +my $fileout=""; +# Blacklists we use to trigger an error: +my $error_regexp1='(syntax|parse) (e|E)rror'; +my $error_regexp2='client-simulation.txt:'; + +printf "\n%s\n", "Testing whether \"~/etc/client-simulation.txt\" isn't broken ..."; +$fileout = `bash ./etc/client-simulation.txt 2>&1`; +unlike($fileout, qr/$error_regexp1/, "regex 1"); +$tests++; + +unlike($fileout, qr/$error_regexp2/, "regex 2"); +$tests++; + +printf "\n"; +done_testing($tests); + +# vim:ts=5:sw=5:expandtab + |