From: <ai...@us...> - 2010-03-04 01:08:06
|
Revision: 10842 http://plplot.svn.sourceforge.net/plplot/?rev=10842&view=rev Author: airwin Date: 2010-03-04 01:08:00 +0000 (Thu, 04 Mar 2010) Log Message: ----------- Implement the interactive test_tk_standard_examples test target to run all the standard examples under plserver. This target works both for the build tree and also the installed examples tree when built using CMake. Modified Paths: -------------- trunk/examples/CMakeLists.txt trunk/examples/tk/CMakeLists.txt Added Paths: ----------- trunk/examples/tk/standard_examples.in Modified: trunk/examples/CMakeLists.txt =================================================================== --- trunk/examples/CMakeLists.txt 2010-03-04 00:48:36 UTC (rev 10841) +++ trunk/examples/CMakeLists.txt 2010-03-04 01:08:00 UTC (rev 10842) @@ -719,7 +719,6 @@ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tcl ) endif(CORE_BUILD) - add_dependencies(test_tk_plgrid plserver tcl_examples @@ -729,6 +728,27 @@ ) list(APPEND targets_examples_tk test_tk_plgrid) + if(CORE_BUILD) + add_custom_target(test_tk_standard_examples + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tk/standard_examples + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tk + ) + else(CORE_BUILD) + add_custom_target(test_tk_standard_examples + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/tk/standard_examples + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tk + ) + endif(CORE_BUILD) + add_dependencies(test_tk_standard_examples + plserver + tcl_examples + tclIndex_tcl + tclIndex_tk + tclIndex_examples_tk + xwin + ) + list(APPEND targets_examples_tk test_tk_standard_examples) + if(ENABLE_itk) add_custom_target(test_tk_02 COMMAND xtk02 -f ${CMAKE_CURRENT_BINARY_DIR}/tk/tk02 Modified: trunk/examples/tk/CMakeLists.txt =================================================================== --- trunk/examples/tk/CMakeLists.txt 2010-03-04 00:48:36 UTC (rev 10841) +++ trunk/examples/tk/CMakeLists.txt 2010-03-04 01:08:00 UTC (rev 10842) @@ -55,6 +55,7 @@ "28" "29" "30" + "31" ) set(tk_SRC_FILES @@ -166,7 +167,9 @@ # invokes plserver. # plgrid is a configured shell script that runs the plgrid.tcl example # (N.B., in the tcl directory) using plserver. -set(tk_SCRIPTS tk01.in tk03.in plgrid.in) +# standard_examples is a configured shell script that runs all the standard +# examples under plserver. +set(tk_SCRIPTS tk01.in tk03.in plgrid.in standard_examples.in) get_target_property(xtk01_LOCATION xtk01 LOCATION) get_target_property(plserver_LOCATION plserver LOCATION) @@ -185,6 +188,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/plgrid @ONLY ) +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/standard_examples.in + ${CMAKE_CURRENT_BINARY_DIR}/standard_examples + @ONLY +) # The second and fourth Tk examples depend on Itk to work. if(ENABLE_itk) list(APPEND tk_SCRIPTS tk02.in tk04.in) Copied: trunk/examples/tk/standard_examples.in (from rev 10840, trunk/examples/tk/plgrid.in) =================================================================== --- trunk/examples/tk/standard_examples.in (rev 0) +++ trunk/examples/tk/standard_examples.in 2010-03-04 01:08:00 UTC (rev 10842) @@ -0,0 +1,37 @@ +#!/bin/sh +# Run plserver example for standard examples. +# Drop examples 14 and 31 because querying for devices does not +# seem to work in this context. +# Drop example 19 because of "invalid command name "plslabelfunc" +@plserver_LOCATION@ <<EOF +source tkdemos.tcl +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +15 +16 +17 +18 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +exit +EOF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |