File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,14 +17,17 @@ add_test(NAME dmdevfs_module_built
1717 COMMAND ${CMAKE_COMMAND} -E echo "Verifying dmdevfs module was built..."
1818)
1919
20- # Test 2: Check if dmf directory exists
20+ # Test 2: Check if dmf directory exists (cross-platform)
2121add_test (NAME dmdevfs_dmf_directory
22- COMMAND test -d ${CMAKE_BINARY_DIR} /dmf
22+ COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR} /dmf ${CMAKE_COMMAND} -E echo "DMF directory exists"
2323)
2424
25- # Test 3: Verify module files exist (runtime check )
25+ # Test 3: Verify module files exist (cross-platform )
2626add_test (NAME dmdevfs_dmf_file
27- COMMAND test -f ${CMAKE_BINARY_DIR} /dmf/dmdevfs.dmf
27+ COMMAND ${CMAKE_COMMAND} -E cat ${CMAKE_BINARY_DIR} /dmf/dmdevfs.dmf
28+ )
29+ set_tests_properties (dmdevfs_dmf_file PROPERTIES
30+ PASS_REGULAR_EXPRESSION "."
2831)
2932
3033# Test 4: Check source file compilation
Original file line number Diff line number Diff line change 44set -e
55
66SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
7- REPO_ROOT=" $( cd " $SCRIPT_DIR /.." && pwd) "
87
98# Colors for output
109RED=' \033[0;31m'
You can’t perform that action at this time.
0 commit comments