Skip to content

Commit b7d8282

Browse files
committed
[install] modify and regenerate the acceptance tests after some cleanup
1 parent 2c65371 commit b7d8282

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

.github/workflows/madgraph_launch_test.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ jobs:
4949
cd MG5aMC/mg5amcnlo/
5050
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
5151
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
52-
rm -f cudacpp_acceptance_tests
53-
ln -sf ../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests cudacpp_acceptance_tests # workaround for 'relative position not supported'
54-
./tests/test_manager.py -p./cudacpp_acceptance_tests/ test_simd_cpp_eemumua_float
52+
if [ -f tests/cudacpp_acceptance_tests ]; then echo 'ERROR! tests/cudacpp_acceptance_tests already exists'; exit 1; fi # should never happen
53+
ln -sf ../../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests tests/cudacpp_acceptance_tests # workaround for 'relative position not supported'
54+
./tests/test_manager.py -p./tests/cudacpp_acceptance_tests/ test_simd_cpp_eemumua_float
55+
rm -f tests/cudacpp_acceptance_tests
5556
5657
simd_cpp_heft_ggh_double:
5758
# The type of runner that the job will run on
@@ -71,9 +72,10 @@ jobs:
7172
cd MG5aMC/mg5amcnlo/
7273
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
7374
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
74-
rm -f cudacpp_acceptance_tests
75-
ln -sf ../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests cudacpp_acceptance_tests # workaround for 'relative position not supported'
76-
./tests/test_manager.py -p./cudacpp_acceptance_tests/ test_simd_cpp_heft_ggh_double
75+
if [ -f tests/cudacpp_acceptance_tests ]; then echo 'ERROR! tests/cudacpp_acceptance_tests already exists'; exit 1; fi # should never happen
76+
ln -sf ../../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests tests/cudacpp_acceptance_tests # workaround for 'relative position not supported'
77+
./tests/test_manager.py -p./tests/cudacpp_acceptance_tests/ test_simd_cpp_heft_ggh_double
78+
rm -f tests/cudacpp_acceptance_tests
7779
7880
simd_cpp_pptt_mixed:
7981
# The type of runner that the job will run on
@@ -93,9 +95,10 @@ jobs:
9395
cd MG5aMC/mg5amcnlo/
9496
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
9597
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
96-
rm -f cudacpp_acceptance_tests
97-
ln -sf ../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests cudacpp_acceptance_tests # workaround for 'relative position not supported'
98-
./tests/test_manager.py -p./cudacpp_acceptance_tests/ test_simd_cpp_pptt_mixed
98+
if [ -f tests/cudacpp_acceptance_tests ]; then echo 'ERROR! tests/cudacpp_acceptance_tests already exists'; exit 1; fi # should never happen
99+
ln -sf ../../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests tests/cudacpp_acceptance_tests # workaround for 'relative position not supported'
100+
./tests/test_manager.py -p./tests/cudacpp_acceptance_tests/ test_simd_cpp_pptt_mixed
101+
rm -f tests/cudacpp_acceptance_tests
99102
100103
simd_cpp_vector_size:
101104
# The type of runner that the job will run on
@@ -115,6 +118,7 @@ jobs:
115118
cd MG5aMC/mg5amcnlo/
116119
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
117120
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
118-
rm -f cudacpp_acceptance_tests
119-
ln -sf ../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests cudacpp_acceptance_tests # workaround for 'relative position not supported'
120-
./tests/test_manager.py -p./cudacpp_acceptance_tests/ test_simd_cpp_vector_size
121+
if [ -f tests/cudacpp_acceptance_tests ]; then echo 'ERROR! tests/cudacpp_acceptance_tests already exists'; exit 1; fi # should never happen
122+
ln -sf ../../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests tests/cudacpp_acceptance_tests # workaround for 'relative position not supported'
123+
./tests/test_manager.py -p./tests/cudacpp_acceptance_tests/ test_simd_cpp_vector_size
124+
rm -f tests/cudacpp_acceptance_tests

epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/acceptance_tests/create_acceptance_from_file.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ def create_test_simd_madevent():
106106
cd MG5aMC/mg5amcnlo/
107107
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
108108
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
109-
rm -f cudacpp_acceptance_tests
110-
ln -sf ../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests cudacpp_acceptance_tests # workaround for 'relative position not supported'
111-
./tests/test_manager.py -p./cudacpp_acceptance_tests/ test_%(name)s
109+
if [ -f tests/cudacpp_acceptance_tests ]; then echo 'ERROR! tests/cudacpp_acceptance_tests already exists'; exit 1; fi # should never happen
110+
ln -sf ../../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests tests/cudacpp_acceptance_tests # workaround for 'relative position not supported'
111+
./tests/test_manager.py -p./tests/cudacpp_acceptance_tests/ test_%(name)s
112+
rm -f tests/cudacpp_acceptance_tests
112113
"""
113114

114115
def create_cicd():

0 commit comments

Comments
 (0)