Skip to content
Snippets Groups Projects
Commit 3ce1aec5 authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin
Browse files

Fix bug in python setup for tests

parent cb29e1b0
No related branches found
No related tags found
No related merge requests found
......@@ -99,12 +99,14 @@ config = Configuration(name=name,
setup(**config.todict())
cTestFile = open('@CMAKE_CURRENT_BINARY_DIR@/CTestTestfile.cmake','r')
cTestStr = ""
for line in cTestFile:
cTestStr += line.replace('BUILD_MAIN_PYTEST', config.get_build_temp_dir().replace('temp','lib')+'/parmepy/test/main_unit_tests.py')
cTestFile.close()
cTestFile = open('@CMAKE_CURRENT_BINARY_DIR@/CTestTestfile.cmake','w')
cTestFile.write(cTestStr)
cTestFile.close()
# In case of cmake WITH_TESTS=ON
if('@WITH_TESTS@' is "ON"):
cTestFile = open('@CMAKE_CURRENT_BINARY_DIR@/CTestTestfile.cmake','r')
cTestStr = ""
for line in cTestFile:
cTestStr += line.replace('BUILD_MAIN_PYTEST', config.get_build_temp_dir().replace('temp','lib')+'/parmepy/test/main_unit_tests.py')
cTestFile.close()
cTestFile = open('@CMAKE_CURRENT_BINARY_DIR@/CTestTestfile.cmake','w')
cTestFile.write(cTestStr)
cTestFile.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment