mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
The travis tool itself runs all tests it is given in series. Use make to parallelize running the tests, leaving a log in each subdirectory in addition to the global log. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
24 lines
659 B
Perl
Executable file
24 lines
659 B
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use integer;
|
|
use File::Find;
|
|
use File::Spec;
|
|
|
|
my($srcdir,$objdir,$subdir) = @ARGV;
|
|
|
|
my $base = File::Spec->catdir($srcdir, $subdir);
|
|
|
|
sub print_dir {
|
|
return if (! -d $_);
|
|
my($vol,$dirs) = File::Spec->splitpath($_, 1);
|
|
my @dirs = File::Spec->splitdir($dirs);
|
|
|
|
# $objdir really should be part of catfile, but that breaks our
|
|
# current "golden reference" files -- fix that at some point.
|
|
my $json = File::Spec->catfile(@dirs, $dirs[-1].'.json');
|
|
if ( -f $json ) {
|
|
print File::Spec->catfile($objdir, File::Spec->abs2rel($json, $srcdir)), "\n";
|
|
}
|
|
}
|
|
find({no_chdir => 1, wanted => \&print_dir}, $base);
|