diff --git a/tests/roles.t b/tests/roles.t new file mode 100644 index 0000000..6a474bf --- /dev/null +++ b/tests/roles.t @@ -0,0 +1,21 @@ +#!/usr/bin/perl -w +# +# Test that each of the role scripts is executable. +# +# Steve +# -- +# $Id: roles.t,v 1.1 2006-02-05 18:14:55 steve Exp $ +# + +use strict; +use Test::More qw( no_plan ); + +foreach my $file ( glob( "etc/role.d/*" ) ) +{ + if ( ! -d $file ) + { + ok( -e $file, "$file" ); + ok( -x $file, " File is executable: $file" ); + } +} +