Skip to content

Commit dc0aaa8

Browse files
committed
[install] modify and regenerate the acceptance tests to bypass the limitation in relative paths
1 parent e29e454 commit dc0aaa8

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/madgraph_launch_test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ 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-
./tests/test_manager.py -p../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests/ test_simd_cpp_eemumua_float
52+
rm 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
5355
5456
simd_cpp_heft_ggh_double:
5557
# The type of runner that the job will run on
@@ -69,7 +71,9 @@ jobs:
6971
cd MG5aMC/mg5amcnlo/
7072
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
7173
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
72-
./tests/test_manager.py -p../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests/ test_simd_cpp_heft_ggh_double
74+
rm 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
7377
7478
simd_cpp_pptt_mixed:
7579
# The type of runner that the job will run on
@@ -89,7 +93,9 @@ jobs:
8993
cd MG5aMC/mg5amcnlo/
9094
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
9195
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
92-
./tests/test_manager.py -p../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests/ test_simd_cpp_pptt_mixed
96+
rm 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
9399
94100
simd_cpp_vector_size:
95101
# The type of runner that the job will run on
@@ -109,4 +115,6 @@ jobs:
109115
cd MG5aMC/mg5amcnlo/
110116
cp input/.mg5_configuration_default.txt input/mg5_configuration.txt
111117
cp Template/LO/Source/.make_opts Template/LO/Source/make_opts
112-
./tests/test_manager.py -p../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests/ test_simd_cpp_vector_size
118+
rm 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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ 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-
./tests/test_manager.py -p../MG5aMC_PLUGIN/CUDACPP_OUTPUT/acceptance_tests/ test_%(name)s
109+
rm 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
110112
"""
111113

112114
def create_cicd():

0 commit comments

Comments
 (0)