[CMake] Cmake parsing issue on Win32 platform

Andy Cedilnik andy.cedilnik at kitware.com
Tue Apr 25 07:28:22 EDT 2006


Hi Xavier,

For some reason all paths in DartTestfile.txt are windows style. What do 
your ADD_TEST commands look like?

       Andy

Xavier Delannoy wrote:
> Hi all, 
>
> I use cmake version 2.3-20060317, which seems to have some parsing pb under Win32.
>
> here is the output : 
> C:\Projects\Korcula\crossplatform>devenv Experimental.vcproj /build release
>
> Microsoft (R) Development Environment  Version 7.10.3077.
> Copyright (C) Microsoft Corp 1984-2001. All rights reserved.
> ------ Build started: Project: Experimental, Configuration: Release Win32 ------
>
>
> Performing Post-Build Event...
>    Site: XAVIERD
>    Build name: Win32-vs71
> Create new tag: 20060424-1549 - Experimental
> Start processing tests
> Configure project
>    Each . represents 1024 bytes of output
>     . Size of output: 0K
> Build project
>    Each symbol represents 1024 bytes of output.
>    '!' represents an error and '*' a warning.
>     ..**** Size of output: 5K
>    0 Compiler errors
>    9 Compiler warnings
> Test project
> CMake Error: Invalid escape sequence \P
> CMake Error: Syntax error in cmake code at
> c:/Projects/Korcula/crossplatform/lib/libnbase/Tests/DartTestfile.txt:12:
> syntax error, unexpected cal_ERROR, expecting $end (4), when parsing string "C:\
> Projects\Korcula\crossplatform\tmp\test/test_section"
>   1/  1 Testing libnbase.section_parseline       Passed
> 100% tests passed, 0 tests failed out of 1
> Performing coverage
>  Cannot find any coverage files.
> Submit files (using xmlrpc)
>    Using XML-RPC submit method
>    Submitting to: http://10.2.5.27:8081/Korcula/Command/ (Korcula)
>    Submit file: C:/Projects/Korcula/crossplatform/Testing/20060424-1549/Build.xm
> l
>    Submit file: C:/Projects/Korcula/crossplatform/Testing/20060424-1549/Configur
> e.xml
>    Submit file: C:/Projects/Korcula/crossplatform/Testing/20060424-1549/Test.xml
>
>    Submission successful
>
> Build log was saved at "file://c:\Projects\Korcula\crossplatform\Experimental.dir\Release\BuildLog.htm"
> Experimental - 0 error(s), 0 warning(s)
>
> ---------------------- Done ----------------------
>
>     Build: 1 succeeded, 0 failed, 0 skipped
>
>
> Here is my  DartTestfile.txt which is generated by Cmake: 
>
> # CMake generated Testfile for 
> # Source directory: C:/Projects/Korcula/crossplatform/lib/libnbase/Tests
> # Build directory: C:/Projects/Korcula/crossplatform/lib/libnbase/Tests
> # 
> # This file replicates the SUBDIRS() and ADD_TEST() commands from the source
> # tree CMakeLists.txt file, skipping any SUBDIRS() or ADD_TEST() commands
> # that are excluded by CMake control structures, i.e. IF() commands.
> #
> # The next line is critical for Dart to work
> # Duh :-)
>
> ADD_TEST(libnbase.section_parseline "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "1")
> ADD_TEST(libnbase.section_new "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "2")
> ADD_TEST(libnbase.sec_remove_marked_elements "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "3")
> ADD_TEST(libnbase.sec_load_from_context "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "4")
> ADD_TEST(libnbase.sec_get_names_from_context "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "5")
> ADD_TEST(libnbase.sec_add_at_pos "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "6")
> ADD_TEST(libnbase.section_deltoken "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "7")
> ADD_TEST(libnbase.section_getstr "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "8")
> ADD_TEST(libnbase.section_addstr "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "9")
> ADD_TEST(libnbase.section_clear "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "10")
> ADD_TEST(libnbase.section_write "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "11")
> ADD_TEST(libnbase.writestrtosection "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "12")
> ADD_TEST(libnbase.sec_loadall_from_context "C:\Projects\Korcula\crossplatform\tmp\test/test_section" "13")
> ADD_TEST(libnbase.test_net_ip_is_valid "C:\Projects\Korcula\crossplatform\tmp\test/test_network" "1")
> ADD_TEST(libnbase.test_net_str_ip_cmp "C:\Projects\Korcula\crossplatform\tmp\test/test_network" "2")
> ADD_TEST(libnbase.test_string_splitnext "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "1")
> ADD_TEST(libnbase.test_str_is_color "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "2")
> ADD_TEST(libnbase.test_str_is_if_ether "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "3")
> ADD_TEST(libnbase.test_token_splitnext "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "4")
> ADD_TEST(libnbase.test_strtotime "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "5")
> ADD_TEST(libnbase.test_startstr "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "6")
> ADD_TEST(libnbase.test_str_hash_get "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "7")
> ADD_TEST(libnbase.test_str_is_strict_num "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "8")
> ADD_TEST(libnbase.test_str_is_num "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "9")
> ADD_TEST(libnbase.test_str_toport "C:\Projects\Korcula\crossplatform\tmp\test/test_str" "10")
> ADD_TEST(libnbase.test_filesize "C:\Projects\Korcula\crossplatform\tmp\test/test_system" "1")
> ADD_TEST(libnbase.test_fileexist "C:\Projects\Korcula\crossplatform\tmp\test/test_system" "2")
> ADD_TEST(libnbase.test_filecopy "C:\Projects\Korcula\crossplatform\tmp\test/test_system" "3")
> ADD_TEST(libnbase.test_filecat "C:\Projects\Korcula\crossplatform\tmp\test/test_system" "4")
> ADD_TEST(libnbase.test_runcommand "C:\Projects\Korcula\crossplatform\tmp\test/test_system" "5")
>
> best regards, 
>
> Xavier 
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>   




More information about the CMake mailing list