Skip to content

Commit

Permalink
Rename the test scenarios to what they are - tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Jun 3, 2020
1 parent 85b70fa commit dc29cb9
Show file tree
Hide file tree
Showing 19 changed files with 328 additions and 24 deletions.
10 changes: 5 additions & 5 deletions DetectorDescription/DDCMS/data/cms-test-ddvectors.xml
@@ -1,18 +1,18 @@
<?xml version="1.0"?>
<DDDefinition>
<debug>
<debug_shapes/>
<!--debug_includes/>
<!--debug_shapes/>
<debug_includes/>
<debug_rotations/>
<debug_includes/-->
<debug_includes/>
<debug_volumes/>
<debug_constants/>
<debug_materials/>
<debug_namespaces/>
<debug_placements/>
<debug_algorithms/>
<!--debug_visattr/-->
<debug_specpars/>
<debug_visattr/>
<debug_specpars/-->
</debug>

<open_geometry/>
Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/DDCompactView.cppunit.cc
Expand Up @@ -31,7 +31,7 @@ class testDDCompactView : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE_REGISTRATION(testDDCompactView);

void testDDCompactView::setUp() {
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml").fullPath();
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml").fullPath();
}

void testDDCompactView::checkCompactView() {
Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/DDExpandedView.cppunit.cc
Expand Up @@ -32,7 +32,7 @@ class testDDExpandedView : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE_REGISTRATION(testDDExpandedView);

void testDDExpandedView::setUp() {
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml").fullPath();
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml").fullPath();
}

void testDDExpandedView::checkExpandedView() {
Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/DDFilteredView.cppunit.cc
Expand Up @@ -35,7 +35,7 @@ class testDDFilteredView : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE_REGISTRATION(testDDFilteredView);

void testDDFilteredView::setUp() {
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-geometry-2021.xml").fullPath();
fileName_ = edm::FileInPath("DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml").fullPath();
refdattl_ = {0.000809653, 0.000713002, 0.000654918, 0.000602767, 0.000566295, 0.000541647, 0.000516174, 0.000502512,
0.000504225, 0.000506212, 0.000506275, 0.000487621, 0.000473034, 0.000454002, 0.000442383, 0.000441043,
0.000443609, 0.000433124, 0.000440188, 0.000435257, 0.000439224, 0.000431385, 0.00041707, 0.000415677,
Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/python/dump.py
Expand Up @@ -8,7 +8,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-geometry-2021.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml'),
appendToDataLabel = cms.string('CMS')
)

Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/python/testDDCompactView.py
Expand Up @@ -38,7 +38,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('MUON')
)

Expand Down
Expand Up @@ -39,7 +39,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('MUON')
)

Expand Down
Expand Up @@ -38,7 +38,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('MUON')
)

Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/python/testDDSpecPars.py
Expand Up @@ -39,7 +39,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-geometry-2021.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml'),
appendToDataLabel = cms.string('CMS')
)

Expand Down
Expand Up @@ -38,7 +38,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-geometry-2021.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml'),
appendToDataLabel = cms.string('CMS')
)

Expand Down
Expand Up @@ -39,7 +39,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('MUON')
)

Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/python/testGeometry2021.py
Expand Up @@ -8,7 +8,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-geometry-2021.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml'),
appendToDataLabel = cms.string('CMS')
)

Expand Down
Expand Up @@ -12,7 +12,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-geometry-2021.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-geometry-2021.xml'),
rootDDName = cms.string('cms:OCMS'),
label = cms.string('Extended'),
fromDB = cms.bool(True),
Expand Down
Expand Up @@ -39,7 +39,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('MUON')
)
process.DDVectorRegistryESProducer = cms.ESProducer("DDVectorRegistryESProducer",
Expand Down
2 changes: 1 addition & 1 deletion DetectorDescription/DDCMS/test/python/testTGeoIterator.py
Expand Up @@ -39,7 +39,7 @@
)

process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-2015-muon-geometry.xml'),
confGeomXMLFiles = cms.FileInPath('DetectorDescription/DDCMS/data/cms-test-muon-geometry-2015.xml'),
appendToDataLabel = cms.string('CMS')
)
process.test = cms.EDAnalyzer("DDTestDumpGeometry",
Expand Down
6 changes: 1 addition & 5 deletions DetectorDescription/DDCMS/test/runTest.sh
Expand Up @@ -5,14 +5,12 @@ function die { echo $1: status $2 ; exit $2; }
F1=${LOCAL_TEST_DIR}/python/dump.py
F2=${LOCAL_TEST_DIR}/python/dumpDDShapes.py

F4=${LOCAL_TEST_DIR}/python/dumpMuonGeometry.py
F5=${LOCAL_TEST_DIR}/python/testDDAngularAlgorithm.py
F6=${LOCAL_TEST_DIR}/python/testDDDetectorESProducer.py
F7=${LOCAL_TEST_DIR}/python/testDDPseudoTrapShapes.py
F8=${LOCAL_TEST_DIR}/python/testDDSpecPars.py
F9=${LOCAL_TEST_DIR}/python/testDDVectors.py


F12=${LOCAL_TEST_DIR}/python/testShapes.py
F13=${LOCAL_TEST_DIR}/python/testNavigateGeometry.py
F14=${LOCAL_TEST_DIR}/python/testTGeoIterator.py
Expand All @@ -30,14 +28,12 @@ echo " testing DetectorDescription/DDCMS"

export tmpdir=${LOCAL_TMP_DIR:-/tmp}
echo "===== Test \"python UnitsCheck.py cms.xml\" ===="
python ${LOCAL_TEST_DIR}/python/UnitsCheck.py ${LOCAL_TEST_DIR}/data/mf.xml
python ${LOCAL_TEST_DIR}/python/UnitsCheck.py ${LOCAL_TEST_DIR}/data/vacuum.xml
echo "===== Test \"cmsRun dump.py\" ===="
(cmsRun $F1) || die "Failure using cmsRun $F1" $?
echo "===== Test \"cmsRun dumpDDShapes.py\" ===="
(cmsRun $F2) || die "Failure using cmsRun $F2" $?

echo "===== Test \"cmsRun dumpMuonGeometry.py\" ===="
(cmsRun $F4) || die "Failure using cmsRun $F4" $?
echo "===== Test \"cmsRun testDDAngularAlgorithm.py\" ===="
(cmsRun $F5) || die "Failure using cmsRun $F5" $?
echo "===== Test \"cmsRun testDDDetectorESProducer.py\" ===="
Expand Down

0 comments on commit dc29cb9

Please sign in to comment.