Skip to content

Commit

Permalink
Merge pull request #669 from thelfer/667-reduce-the-size-of-files-pat…
Browse files Browse the repository at this point in the history
…hs-in-sources-to-fit-in-windowss-max_path-limit

667 reduce the size of files paths in sources to fit in windowss max path limit
  • Loading branch information
thelfer authored Dec 21, 2024
2 parents 8868ecb + e4e5e19 commit 71e1263
Show file tree
Hide file tree
Showing 308 changed files with 1,044 additions and 1,042 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ if(CMAKE_HOST_WIN32 OR CYGWIN OR MSYS)
else(MSYS)
set(TFEL_BINARY_DIR "${PROJECT_BINARY_DIR}")
endif(MSYS)
cmake_path(NATIVE_PATH TFEL_BINARY_DIR NORMALIZE TFEL_BINARY_DIR_NATIVE_PATH)
if(CMAKE_CONFIGURATION_TYPES)
foreach(conf ${CMAKE_CONFIGURATION_TYPES})
set(TFEL_CONF_DIR "/${conf}")
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/tfel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function(mfront_behaviour_check_library lib interface)
endfunction(mfront_behaviour_check_library)

function(mfront_behaviour_brick_check_library lib dir interface)
mfront_check_library_base(${lib} ${interface} "behaviours/bricks/${dir}" ON ${ARGN})
mfront_check_library_base(${lib} ${interface} "behaviours/${dir}" ON ${ARGN})
endfunction(mfront_behaviour_brick_check_library)

function(mfront_model_check_library lib interface)
Expand Down
26 changes: 13 additions & 13 deletions env-win32.bat.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
set PATH=@TFEL_BINARY_DIR@/mtest/src@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/mfront/src@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/NUMODIS@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Material@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Tests@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Math@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Utilities@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Exception@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Glossary@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/System@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/Config@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/PhysicalConstants@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR@/src/UnicodeSupport@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\mtest\src@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\mfront\src@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\NUMODIS@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Material@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Tests@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Math@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Utilities@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Exception@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Glossary@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\System@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\Config@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\PhysicalConstants@TFEL_CONF_DIR@;%PATH%
set PATH=@TFEL_BINARY_DIR_NATIVE_PATH@\src\UnicodeSupport@TFEL_CONF_DIR@;%PATH%
2 changes: 1 addition & 1 deletion mfront-query/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ endmacro(mfront_query_test)

mfront_query_test("--material-properties" "Norton.mfront"
"mfront-query-norton-material-properites.ref")
mfront_query_test("--slip-systems-by-index" "bricks/FiniteStrainSingleCrystal/FiniteStrainSingleCrystal.mfront"
mfront_query_test("--slip-systems-by-index" "FiniteStrainSingleCrystal/FiniteStrainSingleCrystal.mfront"
"mfront-query-finitestrainsinglecrystal.ref")
# mfront_query_test("--state-variables" "Norton.mfront"
# "mfront-query-norton-material-properites.ref")
8 changes: 7 additions & 1 deletion mfront/tests/behaviours/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
add_subdirectory(unit-tests)
add_subdirectory(bricks)
# bricks
add_subdirectory(StandardElasticity)
add_subdirectory(StandardElastoViscoPlasticity)
add_subdirectory(FiniteStrainSingleCrystal)
add_subdirectory(DDIF2)

# tests related to specific interfaces or algorithms
add_subdirectory(generic)
if(HAVE_CASTEM)
add_subdirectory(castem)
Expand Down
10 changes: 10 additions & 0 deletions mfront/tests/behaviours/DDIF2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
add_subdirectory(castem)
# add_subdirectory(aster)

install_mfront_data(tests/behaviours/DDIF2 DDIF2.mfront)
install_mfront_data(tests/behaviours/DDIF2 DDIF2_2.mfront)
install_mfront_data(tests/behaviours/DDIF2 DDIF2_3.mfront)
install_mfront_data(tests/behaviours/DDIF2 DDIF2_4.mfront)
install_mfront_data(tests/behaviours/DDIF2 DDIF2_5.mfront)
install_mfront_data(tests/behaviours/DDIF2 DDIF2_6.mfront)

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ macro(castemtest_ddif2brick test_arg behaviour)
endforeach(rm ${IEEE754_ROUNDING_MODES})
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/DDIF2/castem"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/DDIF2/castem"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/DDIF2/castem"
DESTINATION "share/doc/mfront/tests/behaviours/DDIF2/castem"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_CASTEM)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
add_subdirectory(castem)
add_subdirectory(aster)

install_mfront_data(tests/behaviours/FiniteStrainSingleCrystal FiniteStrainSingleCrystal.mfront)
install_mfront_data(tests/behaviours/FiniteStrainSingleCrystal FiniteStrainSingleCrystal_NumericalJacobian.mfront)
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ macro(astertest_finitestrainsinglecrystalbrick test_arg behaviour)
endif((CMAKE_HOST_WIN32) AND (NOT MSYS))
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/FiniteStrainSingleCrystal/aster/"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/FiniteStrainSingleCrystal/aster/"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/FiniteStrainSingleCrystal/aster/"
DESTINATION "share/doc/mfront/tests/behaviours/FiniteStrainSingleCrystal/aster/"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_ASTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ macro(castemtest_finitestrainsinglecrystalbrick test_arg behaviour)
endif((CMAKE_HOST_WIN32) AND (NOT MSYS))
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/FiniteStrainSingleCrystal/castem/"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/FiniteStrainSingleCrystal/castem/"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/FiniteStrainSingleCrystal/castem/"
DESTINATION "share/doc/mfront/tests/behaviours/FiniteStrainSingleCrystal/castem/"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_CASTEM)
Expand Down
22 changes: 22 additions & 0 deletions mfront/tests/behaviours/StandardElasticity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
add_subdirectory(aster)
add_subdirectory(castem)
add_subdirectory(cyrano)

install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity2.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity3.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity4.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity5.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity7.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity8.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity9.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity10.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity11.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity12.mfront)
install_mfront_data(tests/behaviours/StandardElasticity IsotropicStandardElasticity13.mfront)
install_mfront_data(tests/behaviours/StandardElasticity OrthotropicStandardElasticity.mfront)
install_mfront_data(tests/behaviours/StandardElasticity OrthotropicStandardElasticity2.mfront)
install_mfront_data(tests/behaviours/StandardElasticity OrthotropicStandardElasticity3.mfront)
install_mfront_data(tests/behaviours/StandardElasticity TestComputeElasticPrediction.mfront)
install_mfront_data(tests/behaviours/StandardElasticity TestComputeElasticPrediction2.mfront)
install_mfront_data(tests/behaviours/StandardElasticity SingleCrystal_DD_FCC.mfront)
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ macro(astertest_standardelasticitybrick test_arg behaviour)
endforeach(rm ${IEEE754_ROUNDING_MODES})
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/StandardElasticity/aster"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/StandardElasticity/aster"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/StandardElasticity/aster"
DESTINATION "share/doc/mfront/tests/behaviours/StandardElasticity/aster"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_ASTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ macro(castemtest_standardelasticitybrick test_arg behaviour)
endforeach(rm ${IEEE754_ROUNDING_MODES})
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/StandardElasticity/castem"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/StandardElasticity/castem"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/StandardElasticity/castem"
DESTINATION "share/doc/mfront/tests/behaviours/StandardElasticity/castem"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_CASTEM)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ macro(cyranotest_standardelasticitybrick test_arg behaviour)
endforeach(rm ${IEEE754_ROUNDING_MODES})
if(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/bricks/StandardElasticity/cyrano/"
DESTINATION "share/doc/mfront-${TFEL_SUFFIX}/tests/behaviours/StandardElasticity/cyrano/"
COMPONENT mtest)
else(TFEL_APPEND_SUFFIX)
install(FILES ${file}
DESTINATION "share/doc/mfront/tests/behaviours/bricks/StandardElasticity/cyrano/"
DESTINATION "share/doc/mfront/tests/behaviours/StandardElasticity/cyrano/"
COMPONENT mtest)
endif(TFEL_APPEND_SUFFIX)
endif(HAVE_CYRANO)
Expand Down
Loading

0 comments on commit 71e1263

Please sign in to comment.