[CMake] comparing two files in cmake

Eric Noulard eric.noulard at gmail.com
Mon Nov 23 02:17:05 EST 2009


2009/11/23 Alex H <aditya15417 at hotmail.com>:
> Hello,
> I have the following command to compare two files:
> ADD_TEST(mytest ${CMAKE_COMMAND} -E compare_files file1.c file2.c)
>
> however when I run the test, then all it prints is :
> UpdateCTestConfiguration  from
> :/home/herlamba/ece373/src/homeworks/hw07-herlambang/DartConfiguration.tcl
> Start processing tests
> UpdateCTestConfiguration  from
> :/home/herlamba/ece373/src/homeworks/hw07-herlambang/DartConfiguration.tcl
> Test project /home/herlamba/ece373/src/homeworks/hw07-herlambang
> Constructing a list of tests
> No tests were found!!!
>
> am I doing something wrong here?
> I run the test by typing in:
>  ctest -VV -R mytest

Did you add ENABLE_TESTING() in your CMakeLists.txt?




-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list