[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs
From:       Christophe Giboudeaux <cgiboudeaux () gmail ! com>
Date:       2010-09-06 21:29:13
Message-ID: 20100906212913.73C45AC884 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1172308 by cgiboudeaux:

Make sure the output directory exists. All the tests now pass (again)

 M  +5 -0      kcal/tests/CMakeLists.txt  
 M  +5 -0      kcalcore/tests/CMakeLists.txt  


--- trunk/KDE/kdepimlibs/kcal/tests/CMakeLists.txt #1172307:1172308
@@ -97,7 +97,12 @@
 
 macro(kcal_run_single_test _prefix _file _test _testarg)
   get_filename_component( _fn ${_file} NAME)
+
+  # Write the output file in the build directory.
   string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" _outFile ${_file})
+  get_filename_component( _outputPath ${_outFile} PATH)
+  file(MAKE_DIRECTORY ${_outputPath})
+
   set(_runner ${CMAKE_CURRENT_SOURCE_DIR}/runsingletestcase.pl)
   if (UNIX)
     set(_test_path ${EXECUTABLE_OUTPUT_PATH}/${_test}.shell)
--- trunk/KDE/kdepimlibs/kcalcore/tests/CMakeLists.txt #1172307:1172308
@@ -76,7 +76,12 @@
 
 macro(kcalcore_run_single_test _prefix _file _test _testarg)
   get_filename_component( _fn ${_file} NAME)
+
+  # Write the output file in the build directory.
   string(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" _outFile ${_file})
+  get_filename_component( _outputPath ${_outFile} PATH)
+  file(MAKE_DIRECTORY ${_outputPath})
+
   set(_runner ${CMAKE_CURRENT_SOURCE_DIR}/runsingletestcase.pl)
   if (UNIX)
     set(_test_path ${EXECUTABLE_OUTPUT_PATH}/${_test}.shell)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic