-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run similar tests in different directories to avoid conflicts
Move the test logic to a bash script to simplify the BuildFile.xml.
- Loading branch information
Showing
4 changed files
with
50 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
<test | ||
name="testHeterogeneousCoreAlpakaTestWriteRead" | ||
command="cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/writer.py; cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/reader.py" | ||
/> | ||
<test name="testHeterogeneousCoreAlpakaTestWriteRead" command="testHeterogeneousCoreAlpakaTestWriteRead.sh"/> |
24 changes: 24 additions & 0 deletions
24
HeterogeneousCore/AlpakaTest/test/testHeterogeneousCoreAlpakaTestWriteRead.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,24 @@ | ||
#! /bin/bash -e | ||
|
||
if ! [ "${LOCALTOP}" ]; then | ||
export LOCALTOP=${CMSSW_BASE} | ||
cd ${CMSSW_BASE} | ||
fi | ||
|
||
mkdir -p testHeterogeneousCoreAlpakaTestWriteRead | ||
cd testHeterogeneousCoreAlpakaTestWriteRead | ||
rm -f test.root | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/writer.py" | ||
echo | ||
cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/writer.py | ||
echo | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/reader.py" | ||
echo | ||
cmsRun ${LOCALTOP}/src/HeterogeneousCore/AlpakaTest/test/reader.py | ||
echo | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ edmDumpEventContent test.root" | ||
echo | ||
edmDumpEventContent test.root |
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
24 changes: 24 additions & 0 deletions
24
HeterogeneousCore/CUDATest/test/testHeterogeneousCoreCUDATestWriteRead.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,24 @@ | ||
#! /bin/bash -e | ||
|
||
if ! [ "${LOCALTOP}" ]; then | ||
export LOCALTOP=${CMSSW_BASE} | ||
cd ${CMSSW_BASE} | ||
fi | ||
|
||
mkdir -p testHeterogeneousCoreCUDATestWriteRead | ||
cd testHeterogeneousCoreCUDATestWriteRead | ||
rm -f test.root | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ cmsRun ${LOCALTOP}/src/HeterogeneousCore/CUDATest/test/writer.py" | ||
echo | ||
cmsRun ${LOCALTOP}/src/HeterogeneousCore/CUDATest/test/writer.py | ||
echo | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ cmsRun ${LOCALTOP}/src/HeterogeneousCore/CUDATest/test/reader.py" | ||
echo | ||
cmsRun ${LOCALTOP}/src/HeterogeneousCore/CUDATest/test/reader.py | ||
echo | ||
echo "--------------------------------------------------------------------------------" | ||
echo "$ edmDumpEventContent test.root" | ||
echo | ||
edmDumpEventContent test.root |