From 2b789332c8990ce8b9103e684c942a45c39c65d5 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Sat, 4 Jan 2014 14:44:12 -0500 Subject: [PATCH] Initial commit of perl test script for travis builds --- utils/travis.pl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 utils/travis.pl diff --git a/utils/travis.pl b/utils/travis.pl new file mode 100644 index 000000000..f9c74bbc6 --- /dev/null +++ b/utils/travis.pl @@ -0,0 +1,21 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +my @tests = ( + 'zmpkg.pl start', + 'zmfilter.pl -f purgewhenfull', +); + +sub run_test { + my $test = $_[0]; + print "Running test: '$test'"; + + my @args = ('sudo', $test); + system(@args) == 0 or die "'$test' failed to run!"; +} + +foreach my $test (@tests) { + run_test($test); +}