tools/tests/isa-module.pl
author Jeff Walden <jwalden@mit.edu>
Thu, 26 Apr 2012 17:19:04 -0700
changeset 92565 ef7803bad0b1f468850b50f3c4c009c848d3db6b
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rwxr-xr-x
Bug 747197 - abs works on ints, fabs works on doubles, grasshopper. Smallest bugfix ever. r=terrence

#!/usr/bin/perl -w

use Cwd;

$curdir = cwd();

@path_fields = split(/\//,$curdir);

$path = join ("/",@path_fields);

print "Searching in " . $path . "\n";

open (REPORT, "find $path -name \"*.so\" -print | xargs nm -Bno | egrep NSGetModule 2>&1 |" ) || die "open: $! \n";

print "Modules:\n";
while (<REPORT>) {
    $module = $_;
    $module =~ s/:.*//;
    print $module;
}
close(REPORT);

open (REPORT, "find $path -name \"*.so\" -print | xargs nm -Bno | egrep NSGetFactory 2>&1 |" ) || die "open: $! \n";

print "\nComponents:\n";
while (<REPORT>) {
    $module = $_;
    $module =~ s/:.*//;
    print $module;
}
close(REPORT);