CMC test suite, fix choice of results subdirectory

This commit is contained in:
rlar 2011-05-31 20:09:34 +00:00
parent 9f8320d8c1
commit 12b3cc52ec
6 changed files with 24 additions and 3 deletions

View File

@ -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 ,

View File

@ -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

View File

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

View File

@ -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

View File

@ -16,4 +16,4 @@ EXTRA_DIST = \
MAINTAINERCLEANFILES = Makefile.in
clean-local:
rm -rf results ngspiceCkt
rm -rf nmos/results pmos/results ngspiceCkt

View File

@ -14,4 +14,4 @@ EXTRA_DIST = \
MAINTAINERCLEANFILES = Makefile.in
clean-local:
rm -rf results ngspiceCkt
rm -rf nmos/results pmos/results ngspiceCkt