Changes between Version 5 and Version 6 of ossim-batch-test


Ignore:
Timestamp:
Dec 16, 2011, 7:29:08 AM (12 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ossim-batch-test

    v5 v6  
    1313From here on out commands start with $ and comments start with //.
    1414
    15 // This example was generated on linux.
    16 
    17 // Some things to note:
     15// This example was generated on linux.  Windows example coming soon...
     16
     17// Some things to note.  Test image is under OSSIM_TEST environment variable:
    1818
    1919{{{
     
    27275V090205M0001912264B220000100072M_001508507.ovr
    2828Single_Organization_license.txt
    29 
    3029}}}
    3130
     31// Generate a configuration file template.[[BR]]
     32{{{
     33$ ossim-batch-test -w orthoigen-test.kwl
     34Wrote file: orthoigen-test.kwl
     35$
     36}}}
     37
     38// Edit as required.
     39// Contents of this file:
     40
     41{{{
     42$ cat orthoigen-test.kwl
     43// ---
     44// File: orthoigen-test.kwl
     45// Generated by command: ossim-batch-test -w orthoigen-test.kwl
     46// Description: ossim-batch-test config file.
     47// ---
     48
     49// ---
     50
     51
     52// ---
     53// Control flags:
     54// Use 1 or true, 0 or false to turn on and off sections.
     55// Typically preprocess and expected results only turned on for first run.
     56// Clean commands should erase anything created by this test.
     57// Command order if flag turned on:
     58// 1) clean, 2) pre-process, 3) expected, 4) test, 5) post-process
     59// ---
     60
     61// ---
     62// NOTES:
     63// 1) Use forward slash, slash(c++ comment) at beginning of line for comments.
     64// 2) For environment variables use $(YOUR_VARIABLE).  They will be expanded at
     65//    run time if valid.
     66// 3) Clean, preprocess, run, and accept test sections can be switched on or off
     67//    at run time.  These override config file flags.  Optional arguments are:
     68//    --clean-test
     69//    --preprocess-test
     70//    --run-test
     71//    --accept-test
     72//    Multiple tests can be entered by quoting string of space separated
     73//    test, e.g. "test1 test2". To accept all tests use "all" for test.
     74// ---
     75
     76// Where you want the log files to go:
     77log_directory: $(OSSIM_TEST)/logs/osgeo
     78
     79// ---
     80// Begin test1:
     81// ---
     82test1.name: test1
     83test1.description: Test height for the center of the image for test2 and test3.
     84
     85// Controls/turns on/off whole test (all sections):
     86test1.enabled: 1
     87
     88// Individual control flags:
     89test1.run_clean_commands: 0
     90test1.run_preprocessing_commands: 0
     91test1.run_expected_results_commands: 0
     92test1.run_test_commands: 1
     93test1.run_postprocessing_commands: 1
     94
     95// Temp file to catch diff output.
     96test1.temp_file: /tmp/tmp.txt
     97
     98// Clean up commands.
     99test1.clean_command0: rm -rf $(OSSIM_TEST)/exp/orthoigen-test/test1
     100test1.clean_command1: rm -rf $(OSSIM_TEST)/out/orthoigen-test/test1
     101
     102// Pre-process commands:
     103test1.preprocess_command0: mkdir -p $(OSSIM_TEST)/exp/orthoigen-test/test1
     104test1.preprocess_command1: mkdir -p $(OSSIM_TEST)/out/orthoigen-test/test1
     105test1.preprocess_command1: mkdir -p $(OSSIM_TEST)/logs/osgeo
     106
     107// Commands to generate expected results:
     108
     109// Since test2 and test3 are dependent on elevation test the center of the image.
     110test1.expected_results_command0: ossim-info --height -42.8508 147.2537 > $(OSSIM_TEST)/exp/orthoigen-test/test1/height.txt
     111
     112// The actual commands to test:
     113
     114test1.test_command0: ossim-info --height -42.8508 147.2537 > $(OSSIM_TEST)/out/orthoigen-test/test1/height.txt
     115
     116// Post process commands for diffs and stuff:
     117
     118test1.postprocess_command0: diff -w $(OSSIM_TEST)/exp/orthoigen-test/test1/height.txt $(OSSIM_TEST)/out/orthoigen-test/test1/height.txt
     119 
     120// ---
     121// End test1:
     122// ---
     123
     124// ---
     125// Begin test2:
     126// ---
     127
     128test2.name: test2
     129test2.description: Test geometry for GeoEye NITF with RPC model.
     130
     131// Controls/turns on/off whole test (all sections):
     132test2.enabled: 1
     133
     134// Individual control flags:
     135test2.run_clean_commands: 0
     136test2.run_preprocessing_commands: 0
     137test2.run_expected_results_commands: 0
     138test2.run_test_commands: 1
     139test2.run_postprocessing_commands: 1
     140
     141// Temp file to catch diff output.
     142test2.temp_file: /tmp/tmp.txt
     143
     144// Clean up commands.
     145test2.clean_command0: rm -rf $(OSSIM_TEST)/exp/orthoigen-test/test2
     146test2.clean_command1: rm -rf $(OSSIM_TEST)/out/orthoigen-test/test2
     147
     148// Pre-process commands:
     149test2.preprocess_command0: mkdir -p $(OSSIM_TEST)/exp/orthoigen-test/test2
     150test2.preprocess_command1: mkdir -p $(OSSIM_TEST)/out/orthoigen-test/test2
     151test2.preprocess_command1: mkdir -p $(OSSIM_TEST)/logs/osgeo
     152
     153// Commands to generate expected results:
     154test2.expected_results_command0: ossim-info -d -i -p $(OSSIM_TEST)/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf > $(OSSIM_TEST)/exp/orthoigen-test/test2/info.txt
     155
     156// The actual commands to test:
     157test2.test_command0: ossim-info -d -i -p $(OSSIM_TEST)/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf > $(OSSIM_TEST)/out/orthoigen-test/test2/info.txt
     158
     159// Post process commands for diffs and stuff:
     160test2.postprocess_command0: diff -w $(OSSIM_TEST)/exp/orthoigen-test/test2/info.txt $(OSSIM_TEST)/out/orthoigen-test/test2/info.txt
     161
     162// ---
     163// End test2:
     164// ---
     165
     166// ---
     167// Begin test3:
     168// ---
     169test3.name: test3
     170test3.description: Test orthorectification of a GeoEye NITF with RPC model.
     171
     172// Controls/turns on/off whole test (all sections):
     173test3.enabled: 1
     174
     175// Individual control flags:
     176test3.run_clean_commands: 0
     177test3.run_preprocessing_commands: 0
     178test3.run_expected_results_commands: 0
     179test3.run_test_commands: 1
     180test3.run_postprocessing_commands: 1
     181
     182// Temp file to catch diff output.
     183test3.temp_file: /tmp/tmp.txt
     184
     185// Clean up commands.
     186test3.clean_command0: rm -rf $(OSSIM_TEST)/exp/orthoigen-test/test3
     187test3.clean_command1: rm -rf $(OSSIM_TEST)/out/orthoigen-test/test3
     188
     189// Pre-process commands:
     190test3.preprocess_command0: mkdir -p $(OSSIM_TEST)/exp/orthoigen-test/test3
     191test3.preprocess_command1: mkdir -p $(OSSIM_TEST)/out/orthoigen-test/test3
     192test3.preprocess_command1: mkdir -p $(OSSIM_TEST)/logs/osgeo
     193
     194// Commands to generate expected results:
     195
     196// Put the output in the "out" directory as the "exp" may be under svn for small things:
     197
     198// Ortho:
     199test3.expected_results_command0: ossim-orthoigen -t 1024 --geo-scaled -42.85 --resample-type bilinear $(OSSIM_TEST)/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf $(OSSIM_TEST)/out/orthoigen-test/test3/t1.tif
     200
     201// Histogram:
     202test3.expected_results_command1: ossim-create-histo $(OSSIM_TEST)/out/orthoigen-test/test3/t1.tif
     203
     204// Geometry:
     205test3.expected_results_command2: ossim-info -d -i -p $(OSSIM_TEST)/out/orthoigen-test/test3/t1.tif > $(OSSIM_TEST)/out/orthoigen-test/test3/t1-info.txt
     206
     207// Copy to exp directory which is under svn control:
     208test3.expected_results_command3: cp $(OSSIM_TEST)/out/orthoigen-test/test3/t1.his $(OSSIM_TEST)/exp/orthoigen-test/test3/t1.his
     209
     210test3.expected_results_command4: cp $(OSSIM_TEST)/out/orthoigen-test/test3/t1-info.txt $(OSSIM_TEST)/exp/orthoigen-test/test3/t1-info.txt
     211
     212// The actual commands to test:
     213// Ortho:
     214test3.test_command0: ossim-orthoigen -t 1024 --geo-scaled -42.85 --resample-type bilinear $(OSSIM_TEST)/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf $(OSSIM_TEST)/out/orthoigen-test/test3/t2.tif
     215
     216// Histogram:
     217test3.test_command1: ossim-create-histo $(OSSIM_TEST)/out/orthoigen-test/test3/t2.tif
     218
     219// Geometry:
     220test3.test_command2: ossim-info -d -i -p $(OSSIM_TEST)/out/orthoigen-test/test3/t2.tif > $(OSSIM_TEST)/out/orthoigen-test/test3/t2-info.txt
     221
     222// Post process commands for diffs and stuff:
     223
     224// Histogram:
     225test3.postprocess_command0: diff -w $(OSSIM_TEST)/out/orthoigen-test/test3/t1.his $(OSSIM_TEST)/out/orthoigen-test/test3/t2.his
     226
     227// Geometry:
     228test3.postprocess_command1: diff -w $(OSSIM_TEST)/out/orthoigen-test/test3/t1-info.txt $(OSSIM_TEST)/out/orthoigen-test/test3/t2-info.txt
     229
     230// ---
     231// End test3:
     232// ---
     233$
     234}}}
     235
     236
     237
     238
     239
     240