nasm/tools/travis/findtests.pl
H. Peter Anvin (Intel) 73abe9374b travis: run from a Makefile to parallelize testing
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>
2026-06-30 23:12:52 -07:00

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);