//===================================================================================
// 
// File: do-test1.kwl
// Generated by command: ossim-batch-test -W test1.kwl
// Description: ossim-batch-test template config file.
// 
// Control flags:
// Use 1 or true, 0 or false to turn on and off sections.
// Typically preprocess and expected results only turned on for first run.
// Clean commands should erase anything created by this test.
// Command order if flag turned on:
// 1) clean, 2) pre-process, 3) expected, 4) test, 5) post-process
// 
// NOTES:
// * The following environment variables must be set before running batch test:
//     OSSIM_BATCH_TEST_DATA     Top-level dir containing all test source data
//     OSSIM_BATCH_TEST_RESULTS  Top-level dir containing all test results (exp, 
//                               out and log),
// 
// * The variables OBT_EXP_DIR and OBT_OUT_DIR are assigned during run-time to
//   the proper paths according to the config filename. It isn't required to replace
//   these nor predefine them in the environment. You can leave them as is or modify
//   the paths to your unconventional file paths.
// 
// * In order to preserve platform independence, please utilize the following 
//   variables for the common OS commands when adding new commands to the test
//   configuration KWL file. Examples are provided in this template
//       $(DIFF_CMD) Use this var for windows "fc" or linux "diff"
//       $(COPY_CMD) Use this var for windows "copy" or linux "cp"
//       $(MKDIR_CMD) Use this var for windows "mkdir" or linux "mkdir"
//       $(RM_CMD) Use this var for windows "del /Q" or linux "rm -f"
//       $(RMDIR_CMD) Use this var for windows "rmdir /S /Q" or linux "rm -rf"
//   This application will set the environment variables to the proper values at 
//   runtime, so no need to worry about defining these.
// 
// * Use forward slashes "//", at beginning of line for comments.
// 
// * You can use existing environment variables as $(YOUR_VARIABLE). They will be 
//   expanded at run time if valid.
// 
// * Clean, preprocess, run, and accept test sections can be switched on or off
//   at run time.  These override config file flags.  Optional arguments are the 
//   the following: 
//      -c or --clean-test 
//      -p or --preprocess-test
//      -r or --run-test 
//      -a or --accept-test 
//   Multiple tests can be entered by quoting string of space-separated
//   test names, e.g. "test1 test2". To do all tests use "all" or leave blank.
// 
//===================================================================================

// ---
// Begin test1:
// 
// Note: 
// 
// This assumes liboms.so and libjoms.so are in your LD_LIBRARY_PATH.
// If not you must add java arg "-Djava.library.path=/path/to/libs".
// 
// --- 

test1.name: Java org.ossim.jni.apps.DataInfoTest
test1.description: Test oms/joms DataInfoTest and associated bindings.
test1.enabled: 1

// Commands to generate expected results:
test1.expected_results_command0: java -cp $(OSSIM_DEV_HOME)/oms/lib/joms.jar org.ossim.oms.apps.DataInfoTest $(OSSIM_BATCH_TEST_DATA)/public/tif/Iowa-utm.tif > $(OBT_EXP_DIR)/info.txt

// The actual commands to test:
test1.test_command0: java -cp $(OSSIM_DEV_HOME)/oms/lib/joms.jar org.ossim.oms.apps.DataInfoTest $(OSSIM_BATCH_TEST_DATA)/public/tif/Iowa-utm.tif > $(OBT_OUT_DIR)/info.txt

// Post process commands for diffs and stuff:
test1.postprocess_command0: $(DIFF_CMD) $(OBT_EXP_DIR)/info.txt $(OBT_OUT_DIR)/info.txt

// End test1:

// Begin test2:
test2.name: Java org.ossim.jni.apps.ImageModelTest
test2.description: Test oms/joms ImageModelTest and associated bindings.
test2.enabled: 1

// Commands to generate expected results:
test2.expected_results_command0: java -cp $(OSSIM_DEV_HOME)/oms/lib/joms.jar org.ossim.oms.apps.ImageModelTest $(OSSIM_BATCH_TEST_DATA)/geoeye1/GE1_Hobart_GeoStereo_NITF-NCD/001508507_01000SP00332258/5V090205M0001912264B220000100072M_001508507/Volume1/5V090205M0001912264B220000100072M_001508507.ntf > $(OBT_EXP_DIR)/test2-info.txt

// The actual commands to test:
test2.test_command0: java -cp $(OSSIM_DEV_HOME)/oms/lib/joms.jar org.ossim.oms.apps.ImageModelTest $(OSSIM_BATCH_TEST_DATA)/geoeye1/GE1_Hobart_GeoStereo_NITF-NCD/001508507_01000SP00332258/5V090205M0001912264B220000100072M_001508507/Volume1/5V090205M0001912264B220000100072M_001508507.ntf  > $(OBT_OUT_DIR)/test2-info.txt

// Post process commands for diffs and stuff:
test2.postprocess_command0: $(DIFF_CMD) $(OBT_EXP_DIR)/info.txt $(OBT_OUT_DIR)/info.txt

// End test2:


// Begin test2:
test2.name: Java org.ossim.jni.apps.ImageModelTest
test2.description: Test oms/joms ImageModelTest and associated bindings.
test2.enabled: 1
