CMC test suite, fix choice of results subdirectory
This commit is contained in:
parent
9f8320d8c1
commit
12b3cc52ec
|
|
@ -1,3 +1,11 @@
|
|||
2011-05-31 Robert Larice
|
||||
* tests/bin/check_cmc.sh ,
|
||||
* tests/bin/runQaTests.pl ,
|
||||
* tests/bin/run_cmc_check ,
|
||||
* tests/hisim/Makefile.am ,
|
||||
* tests/hisimhv/Makefile.am :
|
||||
CMC test suite, fix choice of results subdirectory
|
||||
|
||||
2011-05-31 Robert Larice
|
||||
* tests/bsim3soifd/RampVg2.out ,
|
||||
* tests/bsim3soifd/inv2.out ,
|
||||
|
|
|
|||
|
|
@ -10,13 +10,18 @@
|
|||
executable="$1"
|
||||
qaspec="$2"
|
||||
subdir="$(dirname $2)"
|
||||
kind="$(basename $subdir)"
|
||||
|
||||
echo "qaspec = $qaspec"
|
||||
echo "subdir = $subdir"
|
||||
echo "executable = $executable"
|
||||
echo "kind = $kind"
|
||||
|
||||
mkdir -p "$kind"
|
||||
|
||||
exec "$(dirname $0)/run_cmc_check" \
|
||||
--executable="${executable}" \
|
||||
--srcdir="${subdir}/" \
|
||||
--results "$kind/results" \
|
||||
-qa "${qaspec}" \
|
||||
ngspice
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ $printWarnings=1;
|
|||
$programDirectory=join("/",@prog[0..$#prog-1]);
|
||||
$prog=$prog[$#prog];
|
||||
$srcdir="";
|
||||
$resultsDirectory="results";
|
||||
|
||||
#
|
||||
# These variables are only defined once in this file,
|
||||
|
|
@ -161,6 +162,8 @@ for (;;) {
|
|||
$forceSimulation=0;
|
||||
} elsif ($ARGV[0] =~ /^-sv/i) {
|
||||
$onlyDoSimulatorVersion=1;
|
||||
} elsif ($ARGV[0] =~ /^--results=(.*)/i) {
|
||||
$resultsDirectory=$1;
|
||||
} elsif ($ARGV[0] =~ /^--executable=(.*)/i) {
|
||||
$simulatorCommand=$1;
|
||||
} elsif ($ARGV[0] =~ /^-s/) {
|
||||
|
|
@ -233,7 +236,6 @@ if (!$onlyDoComparison) {
|
|||
}
|
||||
}
|
||||
$qaSpecFile=$ARGV[0];
|
||||
$resultsDirectory="results";
|
||||
$refrnceDirectory=$main::srcdir . "reference";
|
||||
|
||||
undef(%Defined);
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ run_test() {
|
|||
-s ${simname} \
|
||||
-r -t ${test} \
|
||||
-var ${variant} \
|
||||
--results=${qaResultsDirectory} \
|
||||
${qaSpecFile}
|
||||
done
|
||||
done
|
||||
|
|
@ -90,6 +91,7 @@ run_test() {
|
|||
-s ${simname} \
|
||||
-t ${test} \
|
||||
-var ${variant} \
|
||||
--results=${qaResultsDirectory} \
|
||||
${qaSpecFile}
|
||||
done
|
||||
done
|
||||
|
|
@ -135,6 +137,10 @@ while test $# -gt 0; do
|
|||
testProgramFlags="$testProgramFlags $1"
|
||||
shift
|
||||
;;
|
||||
--results)
|
||||
qaResultsDirectory="$2"
|
||||
shift ; shift
|
||||
;;
|
||||
-qa)
|
||||
qaSpecFile="$2"
|
||||
shift ; shift
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ EXTRA_DIST = \
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
clean-local:
|
||||
rm -rf results ngspiceCkt
|
||||
rm -rf nmos/results pmos/results ngspiceCkt
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ EXTRA_DIST = \
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
clean-local:
|
||||
rm -rf results ngspiceCkt
|
||||
rm -rf nmos/results pmos/results ngspiceCkt
|
||||
|
|
|
|||
Loading…
Reference in New Issue