[Cmake] ADD_TEST command

Miller, James V (CRD) millerjv at crd.ge.com
Wed Jun 6 07:53:41 EDT 2001


I added a command to CMake called ADD_TEST. The syntax is 

ADD_TEST(TestIdentifier ExecutableName [AnyArgsForTest])

The ExecutableName can be an executable target for the current directory or can be an external
executable like tclsh.

cmMakefile::GenerateMakefile() now calls GenerateTestfile() which creates a file called "Testfile" in
each build subdirectory.  Testfile has at most one SUBDIRS() command which is the union of any
SUBDIRS() command in the corresponding source directory CMakeLists.txt file.  If a SUBDIRS() command
is excluded by an IF() command in CMakeLists.txt, it will not appear in Testfile.  The remainder of
Testfile contains the ADD_TEST() commands from the source CMakeLists.txt file.

The ADD_TEST() command will supplant the TESTS() command.  I will be modifying the testing scripts to
process the generated Testfiles in the next couple of days.


Jim Miller
_____________________________________
Visualization & Computer Vision 
GE Corporate Research & Development
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at crd.ge.com <mailto:millerjv at crd.ge.com> 
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981


 <<Miller, James V (CRD).vcf>> 

begin 600 Miller, James V (CRD).vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DUI;&QE<CM*86UE<PT*1DXZ
M36EL;&5R+"!*86UE<R!6("A#4D0I#0I/4D<Z0U)$.T533`T*5$E43$4Z0V]M
M<'5T97(@4V-I96YT:7-T#0I414P[5T]22SM63TE#13HJ.#,S+30P,#4-"E1%
M3#M73U)+.U9/24-%.C$@-3$X(#,X-RTT,#`U#0I!1%([5T]22SH[2U<M0S(Q
M.$([4"Y/+B!";W@@.#M38VAE;F5C=&%D>3M.97<@66]R:SLQ,C,P,3M54T$-
M"DQ!0D5,.U=/4DL[14Y#3T1)3D<]455/5$5$+5!224Y404),13I+5RU#,C$X
M0CTP1#TP05`N3RX at 0F]X(#@],$0],$%38VAE;F5C=&%D>2P at 3F5W(%EO<FL@
M,3(S,#$],$0],$%54T$-"D5-04E,.U!2148[24Y415).150Z;6EL;&5R:G9`
M8W)D+F=E+F-O;0T*4D56.C(P,#$P-#(P5#$T,#,R.5H-"D5.1#I60T%21`T*
`
end




More information about the CMake mailing list