Changes between Version 14 and Version 15 of ossim-batch-test


Ignore:
Timestamp:
Dec 16, 2011, 8:11:47 AM (12 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ossim-batch-test

    v14 v15  
    377377}}}
    378378
    379 
    380 
    381 
    382 
    383 
    384 
    385 
    386 
    387 
    388 
    389 
    390 
    391 
    392 
    393 
     379'''Failure Example'''
     380
     381// The expected results were edited to produce a failure, i.e. tie point shift:[[BR]]
     382
     383// Run the test:[[BR]]
     384{{{
     385$ ossim-batch-test orthoigen-test.kwl
     386Logging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216110702.txt
     387test1[0]: PASSED
     388test2[0]: PASSED
     389100%
     390100%
     391Time elapsed : 10.525
     392MPI running with 1 processors...
     393Creating overviews for file: /data1/test/out/orthoigen-test/test3/t2.tif
     394creating r1...
     395100%
     396creating r2...
     397100%
     398creating r3...
     399100%
     400creating r4...
     401100%
     402creating r5...
     403100%
     404creating r6...
     405100%
     406creating r7...
     407100%
     408Finished...
     409Elapsed time: 1
     410test3[0]: PASSED
     411test3[1]: FAILED
     412Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216110702.txt
     413}}}
     414
     415// Contents of log file:[[BR]]
     416
     417{{{
     418// ---
     419// ossim-batch-test log:
     420// date format = yyyymmddhhmmss
     421//---
     422start_time: 20111216110702
     423config_file: /data1/test/orthoigen-test.kwl
     424
     425----------------------------------------------------------------------
     426processing_test: test1
     427description: Test height for the center of the image for test2 and test3.
     428preProcessFlag:  0
     429expectedFlag:    0
     430testFlag:        1
     431postProcessFlag: 1
     432cleanFlag:       0
     433executing command: ossim-info --height -42.8508 147.2537 > /data1/test/out/orthoigen-test/test1/height.txt
     434begin: 20111216110702
     435end: 20111216110703
     436test1[0]: elapsed time in seconds: 0.2289
     437return status: 0
     438executing command: diff -w /data1/test/exp/orthoigen-test/test1/height.txt /data1/test/out/orthoigen-test/test1/height.txt > /tmp/tmp.txt
     439return status: 0
     440test1[0]: PASSED
     441end_test: test1
     442----------------------------------------------------------------------
     443
     444----------------------------------------------------------------------
     445processing_test: test2
     446description: Test geometry for GeoEye NITF with RPC model.
     447preProcessFlag:  0
     448expectedFlag:    0
     449testFlag:        1
     450postProcessFlag: 1
     451cleanFlag:       0
     452executing command: ossim-info -d -i -p /data1/test/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf > /data1/test/out/orthoigen-test/test2/info.txt
     453begin: 20111216110703
     454end: 20111216110703
     455test2[0]: elapsed time in seconds: 0.2582
     456return status: 0
     457executing command: diff -w /data1/test/exp/orthoigen-test/test2/info.txt /data1/test/out/orthoigen-test/test2/info.txt > /tmp/tmp.txt
     458return status: 0
     459test2[0]: PASSED
     460end_test: test2
     461----------------------------------------------------------------------
     462
     463----------------------------------------------------------------------
     464processing_test: test3
     465description: Test orthorectification of a GeoEye NITF with RPC model.
     466preProcessFlag:  0
     467expectedFlag:    0
     468testFlag:        1
     469postProcessFlag: 1
     470cleanFlag:       0
     471executing command: ossim-orthoigen -t 1024 --geo-scaled -42.85 --resample-type bilinear /data1/test/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf /data1/test/out/orthoigen-test/test3/t2.tif
     472begin: 20111216110703
     473end: 20111216110713
     474test3[0]: elapsed time in seconds: 10.5560
     475return status: 0
     476executing command: ossim-img2rr -r --create-histogram /data1/test/out/orthoigen-test/test3/t2.tif
     477begin: 20111216110713
     478end: 20111216110714
     479test3[1]: elapsed time in seconds: 0.5340
     480return status: 0
     481executing command: ossim-info -d -i -p /data1/test/out/orthoigen-test/test3/t2.tif > /data1/test/out/orthoigen-test/test3/t2-info.txt
     482begin: 20111216110714
     483end: 20111216110714
     484test3[2]: elapsed time in seconds: 0.2372
     485return status: 0
     486executing command: diff -w /data1/test/out/orthoigen-test/test3/t1.his /data1/test/out/orthoigen-test/test3/t2.his > /tmp/tmp.txt
     487return status: 0
     488test3[0]: PASSED
     489executing command: diff -w /data1/test/out/orthoigen-test/test3/t1-info.txt /data1/test/out/orthoigen-test/test3/t2-info.txt > /tmp/tmp.txt
     490return status: 256
     491test3[1]: FAILED
     492diff -w /data1/test/out/orthoigen-test/test3/t1-info.txt /data1/test/out/orthoigen-test/test3/t2-info.txt > /tmp/tmp.txt
     493output follows:
     49483c83
     495< image0.projection.tie_point_xy:  (147.1657,-42.7826)
     496---
     497> image0.projection.tie_point_xy:  (147.165760750085,-42.7826084701764)
     498
     499end_test: test3
     500----------------------------------------------------------------------
     501
     502stop_time: 20111216110714
     503total elapsed time in seconds: 11.8294
     504}}}
     505
     506//  Accept the new tie point as valid:[[BR]]
     507
     508{{{
     509$ ossim-batch-test --accept-test test3 orthoigen-test.kwlLogging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111011.txt
     510test1: disabled
     511test2: disabled
     512100%
     513100%
     514Time elapsed : 12.526
     515MPI running with 1 processors...
     516Creating overviews for file: /data1/test/out/orthoigen-test/test3/t1.tif
     517creating r1...
     518100%
     519creating r2...
     520100%
     521creating r3...
     522100%
     523creating r4...
     524100%
     525creating r5...
     526100%
     527creating r6...
     528100%
     529creating r7...
     530100%
     531Finished...
     532Elapsed time: 0
     533Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111011.txt
     534}}}
     535
     536// Re-run test3:[[BR]]
     537{{{
     538$ ossim-batch-test --run-test test3 orthoigen-test.kwl
     539Logging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111102.txt
     540test1: disabled
     541test2: disabled
     542100%
     543100%
     544Time elapsed : 12.504
     545MPI running with 1 processors...
     546Creating overviews for file: /data1/test/out/orthoigen-test/test3/t2.tif
     547creating r1...
     548100%
     549creating r2...
     550100%
     551creating r3...
     552100%
     553creating r4...
     554100%
     555creating r5...
     556100%
     557creating r6...
     558100%
     559creating r7...
     560100%
     561Finished...
     562Elapsed time: 1
     563test3[0]: PASSED
     564test3[1]: PASSED
     565Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111102.txt
     566}}}
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
     585
     586
     587
     588