-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run_sanity: add sanity run and log check in run_sanity
- Loading branch information
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,44 @@ | ||
#!/usr/bin/env perl | ||
|
||
exit 0; | ||
use strict; | ||
use Getopt::Long; | ||
use Data::Dumper; | ||
use YAML qw(LoadFile); | ||
use IO::Tee; | ||
use Carp qw(croak); | ||
|
||
my $run = 1; | ||
my $debug = 1; | ||
|
||
my $tot = `tools/bin/depth -abs_tot`; | ||
|
||
my $tree_make_vm = "$tot/tools/make/tree.make.vm"; | ||
croak "$tree_make_vm does not exists" unless -e $tree_make_vm; | ||
|
||
system ("chmod +w $tot/tree.make") if $run; | ||
system ("cp $tree_make_vm $tot/tree.make") if $run; | ||
system ("$tot/tools/bin/tmake -project nv_large") if $run; | ||
|
||
my $log = "$tot/outdir/build.log"; | ||
open(L, "<${log}") or die("ERROR: Can't read log file $log\n"); | ||
|
||
my $fail = 0; | ||
while (my $line = <L>) { | ||
chomp $line; | ||
next unless $line =~ m/^checktest/; | ||
print "line=$line\n" if $debug; | ||
$line =~ s/\s//g; | ||
my (undef,$result,$testname,$desc) = split(':',$line); | ||
print "result=$result\n" if $debug; | ||
$fail ||= ($result ne "PASSED") ? 1 : 0; | ||
print "fail=$fail\n" if $debug; | ||
} | ||
close(L); | ||
|
||
if ($fail) { | ||
print "ERROR: simulation failed -> $log\n"; | ||
} | ||
|
||
print "final=$fail\n" if $debug; | ||
|
||
exit ($fail); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## ================================================================ | ||
## NVDLA Open Source Project | ||
## | ||
## Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the | ||
## NVDLA Open Hardware License; Check "LICENSE" which comes with | ||
## this distribution for more information. | ||
## ================================================================ | ||
## | ||
## set the chip you want to build | ||
PROJECTS := nv_large nv_small | ||
|
||
#================= | ||
# ENV TOOL setup | ||
#================= | ||
# c pre-processor | ||
CPP := /usr/bin/cpp | ||
|
||
# used in ordt to generate reigster, need be newer than 1.7 | ||
JAVA := /usr/bin/java | ||
|
||
# used in ordt to generate reigster, need be newer than 1.7 | ||
PERL := /usr/bin/perl | ||
|