FEM: z88 unit tests, fix for installed FreeCAD

This commit is contained in:
Bernd Hahnebach
2020-07-13 22:30:32 +02:00
parent 11d2251b1d
commit 41cfe08021
2 changed files with 14 additions and 4 deletions

View File

@@ -287,7 +287,11 @@ SET(FemTestsOpen_SRCS
femtest/data/open/all_objects_de9b3fb438.FCStd
)
SET(FemTestsZ88_SRCS
SET(FemTestsZ88Main_SRCS
femtest/data/z88/__init__.py
)
SET(FemTestsZ88Ccxcantifl_SRCS
femtest/data/z88/__init__.py
femtest/data/z88/ccxcantilever_faceload/51.txt
femtest/data/z88/ccxcantilever_faceload/z88.dyn
@@ -335,7 +339,8 @@ SET(FemAllScripts
${FemTestsElmer_SRCS}
${FemTestsMesh_SRCS}
${FemTestsOpen_SRCS}
${FemTestsZ88_SRCS}
${FemTestsZ88Main_SRCS}
${FemTestsZ88Ccxcantifl_SRCS}
${FemTools_SRCS}
)
@@ -368,7 +373,8 @@ INSTALL(FILES ${FemTestsCcx_SRCS} DESTINATION Mod/Fem/femtest/data/calculix)
INSTALL(FILES ${FemTestsElmer_SRCS} DESTINATION Mod/Fem/femtest/data/elmer)
INSTALL(FILES ${FemTestsMesh_SRCS} DESTINATION Mod/Fem/femtest/data/mesh)
INSTALL(FILES ${FemTestsOpen_SRCS} DESTINATION Mod/Fem/femtest/data/open)
INSTALL(FILES ${FemTestsZ88_SRCS} DESTINATION Mod/Fem/femtest/data/z88)
INSTALL(FILES ${FemTestsZ88Main_SRCS} DESTINATION Mod/Fem/femtest/data/z88)
INSTALL(FILES ${FemTestsZ88Ccxcantifl_SRCS} DESTINATION Mod/Fem/femtest/data/z88/ccxcantilever_faceload)
INSTALL(FILES ${FemTools_SRCS} DESTINATION Mod/Fem/femtools)

View File

@@ -110,9 +110,13 @@ class TestSolverZ88(unittest.TestCase):
machine.start()
machine.join() # wait for the machine to finish
# compare input file with the given one
# compare created input files with the given input files
test_path = join(testtools.get_fem_test_home_dir(), "z88", base_name)
test_files = [f for f in listdir(test_path)]
# fcc_print(sorted(test_files))
not_files = ["__init__.py"]
test_files = [f for f in test_files if f not in not_files]
fcc_print((test_files))
for test_file in test_files:
inpfile_given = join(
test_path,