File: test01ExecutableScripts

package info (click to toggle)
gnump3d 2.9.3-1sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,420 kB
  • ctags: 366
  • sloc: perl: 10,649; sh: 188; makefile: 147
file content (29 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl 
# Testing that all the test scripts are executable.

use strict;


#
# Process all files.
#
foreach my $file ( sort( glob( "test*" ) ) )
{
    # Skip autosaved files.
    next if ( $file =~ /(.*)~$/ );

    # Skip files with a data/out suffix, these are connonical
    # files to accompany tests - if needed.
    next if ( $file =~ /(.*)\.out$/i );
    next if ( $file =~ /(.*)\.data$/i );

    # Make sure file is executable.
    if (! -x $file )
    {
#	print "File not executable: $file\n";
	exit 1;
    }
}

exit 0;