forked from CERN-PH-CMG/cmg-cmssw
-
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.
Fix the html_ddd unit test so that it will pass. Fix the DOMCount and…
… DDErrorReport unit tests so they will fail if there are errors. Fix unit tests test_rot, reg_ddcore, reg_ddparser so that they are run as intended. Add an attribute to the DDLSchema because it already exists in many geometry XML files and the DOMCount unit test will fail without it. We might or might not want to remove this attribute named pork in the future. Remove many schema files that have not been used for anything for years and also some unused test related files. Some other minor cleanup. All these changes should only affect the unit tests in the RegressionTest package.
- Loading branch information
W.David Dagenhart
committed
Sep 27, 2010
1 parent
00dba0f
commit 4cfc689
Showing
28 changed files
with
342 additions
and
3,989 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
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
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
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
36 changes: 36 additions & 0 deletions
36
DetectorDescription/RegressionTest/test/run_DDErrorReport.py
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,36 @@ | ||
#! /usr/bin/env python | ||
|
||
import FWCore.ParameterSet.Config as cms | ||
import sys | ||
import os | ||
|
||
if os.getenv('LOCAL_TOP_DIR') == None: | ||
print "The environment variable LOCAL_TOP_DIR must be set to run this script" | ||
print "Usually setting it equal to the value of CMSSW_BASE will do what you want" | ||
print "In the context of a unit test this variable is always set automatically" | ||
sys.exit(1) | ||
|
||
# get the list of XML files from the cfi file | ||
process = cms.Process("TEST") | ||
cfiFile = 'Geometry/CMSCommonData/cmsIdealGeometryXML_cfi' | ||
if len(sys.argv) > 1: | ||
cfiFile = sys.argv[1] | ||
process.load(cfiFile) | ||
xmlFiles = process.es_sources['XMLIdealGeometryESSource'].geomXMLFiles.value() | ||
|
||
# create an XML configuration file that contains the same list of XML files as the python cfi file | ||
configXMLFile = open('dddreportconfig.xml', 'w') | ||
configXMLFile.write('<?xml version="1.0"?>\n') | ||
configXMLFile.write('<Configuration xmlns="." xmlns:xsi="." xsi:schemaLocation= "." name="CMSConfiguration" version="0">\n') | ||
configXMLFile.write(' <Include>\n') | ||
for name in xmlFiles: | ||
configXMLFile.write(" <File name=\"" + name + "\" url=\".\"/>\n") | ||
configXMLFile.write(' </Include>\n') | ||
configXMLFile.write('<Root fileName="cms.xml" logicalPartName="OCMS"/>\n') | ||
configXMLFile.write('</Configuration>\n') | ||
configXMLFile.close() | ||
|
||
command = os.getenv('LOCAL_TOP_DIR') + "/test/" + os.getenv('SCRAM_ARCH') + "/DDErrorReport dddreportconfig.xml -p" | ||
status = os.system( command ) | ||
if (status != 0): | ||
sys.exit(1) |
22 changes: 22 additions & 0 deletions
22
DetectorDescription/RegressionTest/test/run_DDErrorReport.sh
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,22 @@ | ||
#!/bin/bash | ||
|
||
pushd ${LOCAL_TMP_DIR} | ||
|
||
cfiFiles=Geometry/CMSCommonData/cmsIdealGeometryXML_cfi | ||
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryXML_cfi" | ||
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryLiMaxXML_cfi" | ||
|
||
status=0 | ||
|
||
for cfiFile in ${cfiFiles} | ||
do | ||
echo "run_DDErrorReport.py $cfiFile" | ||
${LOCAL_TEST_DIR}/run_DDErrorReport.py $cfiFile | ||
if [ $? -ne 0 ] | ||
then | ||
status=1 | ||
fi | ||
done | ||
|
||
popd | ||
exit $status |
Oops, something went wrong.