aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deptest.sh
Commit message (Expand)AuthorAgeFilesLines
* deptest: Also accept stamps that are broken links.Michael Büsch2010-12-081-2/+7
* deptest: Make stamps be symlinks to logs.Michael Büsch2010-12-061-6/+8
* deptest: Capitalize failure message. Makes it easier to spot in the logs.Michael Büsch2010-11-041-1/+1
* deptest: Do not clobber the base build and staging dirsMichael Büsch2010-11-031-17/+83
* deptest: --force also overrides blacklist stampsMichael Büsch2010-11-031-2/+2
* deptest: Add --force to force a testMichael Büsch2010-11-031-1/+7
* deptest: Install of host tools has to be forced for every test, because the h...Michael Büsch2010-11-031-0/+1
* deptest: Add option for lean testMichael Büsch2010-11-031-14/+40
* deptest: Add sanity check to avoid trouble with illegal package namesMichael Büsch2010-11-031-0/+2
* deptest: Support specifying certain packages to test on the commandline.Michael Büsch2010-11-031-27/+54
* deptest: Add optional blacklistingMichael Büsch2010-11-031-1/+8
* deptest: Check for .configMichael Büsch2010-11-031-0/+2
* deptest: Install the kernel at init stageMichael Büsch2010-11-031-0/+1
* deptest: Better detection of base directoryMichael Büsch2010-11-021-8/+16
* deptest: Also make sure the toolchain is built in the initialization step. Th...Michael Büsch2010-11-021-4/+8
* deptest: Also create "failed" stamps. This makes it easier to check what fail...Michael Büsch2010-11-021-7/+14
* deptest: Add shbangMichael Büsch2010-11-021-0/+2
* deptest: Fix indentMichael Büsch2010-11-021-23/+23
* deptest: use a separate build dir for host packages to prevent hardcoded path...Felix Fietkau2009-05-281-0/+2
* deptest: handle packages from feedsFelix Fietkau2009-05-261-1/+1
* add a somewhat hackish script for automatic dependency testingFelix Fietkau2009-05-261-0/+43
Atom">sub get_ts($$) { my $path = shift; my $options = shift; my $ts = 0; my $fn = ""; open FIND, "find $path -type f -and -not -path \\*.svn\\* -and -not -path \\*CVS\\* $options 2>/dev/null |"; while (<FIND>) { chomp; my $file = $_; next if -l $file; my @stat = stat $file; if ($stat[9] > $ts) { $ts = $stat[9]; $fn = $file; } } close FIND; return ($ts, $fn); } (@ARGV > 0) or push @ARGV, "."; my $ts = 0; my $n = "."; my %options; while (@ARGV > 0) { my $path = shift @ARGV; if ($path =~ /^-x/) { my $str = shift @ARGV; $options{"findopts"} .= " -and -not -path '".$str."'" } elsif ($path =~ /^-f/) { $options{"findopts"} .= " -follow"; } elsif ($path =~ /^-n/) { my $arg = $ARGV[0]; $options{$path} = $arg; } elsif ($path =~ /^-/) { $options{$path} = 1; } else { my ($tmp, $fname) = get_ts($path, $options{"findopts"}); if ($tmp > $ts) { if ($options{'-F'}) { $n = $fname; } else { $n = $path; } $ts = $tmp; } } } if ($options{"-n"}) { exit ($n eq $options{"-n"} ? 0 : 1); } elsif ($options{"-p"}) { print "$n\n"; } elsif ($options{"-t"}) { print "$ts\n"; } else { print "$n\t$ts\n"; }