diff --git a/isis/src/base/apps/blend/tsts/default/Makefile b/isis/src/base/apps/blend/tsts/default/Makefile index e7ed76acf6ebffe55924b3c0258221239f58ebf4..b70706a86aca37e4d56789189fb0d9bce8853b38 100644 --- a/isis/src/base/apps/blend/tsts/default/Makefile +++ b/isis/src/base/apps/blend/tsts/default/Makefile @@ -7,10 +7,12 @@ I02609002RDR.lev2.blend.cub.TOLERANCE = 0.001 include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/fromlist.lis \ + $(LS) $(INPUT)/*.cub > fromlist.lis; + $(APPNAME) fromlist=fromlist.lis \ tolist=$(INPUT)/tolist.lis \ stop=200 \ > /dev/null; $(MV) I00824006RDR.lev2.blend.cub $(OUTPUT)/I00824006RDR.lev2.blend.cub; $(MV) I01523019RDR.lev2.blend.cub $(OUTPUT)/I01523019RDR.lev2.blend.cub; $(MV) I02609002RDR.lev2.blend.cub $(OUTPUT)/I02609002RDR.lev2.blend.cub; + $(RM) fromlist.lis; diff --git a/isis/src/base/apps/blend/tsts/themis/Makefile b/isis/src/base/apps/blend/tsts/themis/Makefile index 5961114e13aa960cf2a1df897b1549bd4b3aa7ee..19f1559cae54f03030f1bb7fc8fb4eaf32b26ad6 100644 --- a/isis/src/base/apps/blend/tsts/themis/Makefile +++ b/isis/src/base/apps/blend/tsts/themis/Makefile @@ -6,7 +6,7 @@ I23851018.blend.cub.TOLERANCE = .00001 include $(ISISROOT)/make/isismake.tsts commands: - $(LS) -r $(INPUT)/*.cub > fromlist.lis + $(LS) -r $(INPUT)/*.cub > fromlist.lis; $(APPNAME) fromlist=fromlist.lis \ tolist=$(INPUT)/tolist.lis \ stop=200 \ diff --git a/isis/src/base/apps/cubeit/tsts/badinputs/Makefile b/isis/src/base/apps/cubeit/tsts/badinputs/Makefile index 8adf12650bcd9545d9c2ab36c125f06131856e1d..d3c42d9032c672c8fa922fe148dcd00bcc62dea6 100644 --- a/isis/src/base/apps/cubeit/tsts/badinputs/Makefile +++ b/isis/src/base/apps/cubeit/tsts/badinputs/Makefile @@ -7,8 +7,10 @@ include $(ISISROOT)/make/isismake.tsts commands: # TEST A: pass in a list of cubes with different sizes echo -e "Different sized cubes:" > $(OUTPUT)/error_temp.txt; + $(LS) -r $(INPUT)/isisTruth.cub $(INPUT)/f319b18.cub >> $(OUTPUT)/tmp.lis; + $(CAT) $(OUTPUT)/tmp.lis | $(SED) 's/isisTruth.cub/isisTruth.cub+1/' > $(OUTPUT)/input.lis; if [ `$(APPNAME) \ - fromlist=$(INPUT)/input.lis \ + fromlist=$(OUTPUT)/input.lis \ to=$(OUTPUT)/error.cub \ 2>> $(OUTPUT)/error_temp.txt > /dev/null` ]; \ then true; \ @@ -40,6 +42,8 @@ commands: $(SED) 's+\[/.*/output/+\[output/+' $(OUTPUT)/error_temp3.txt > $(OUTPUT)/error.txt; # Cleanup + $(RM) $(OUTPUT)/tmp.lis; + $(RM) $(OUTPUT)/input.lis; $(RM) $(OUTPUT)/error_temp.txt; $(RM) $(OUTPUT)/error_temp2.txt; $(RM) $(OUTPUT)/error_temp3.txt; diff --git a/isis/src/base/apps/cubeit/tsts/default/Makefile b/isis/src/base/apps/cubeit/tsts/default/Makefile index 278dec53ac443889de24a3417b3e89ba8f6e671c..6d4a42ee4cf1a284e48bbc37dfd41032fed79cf1 100644 --- a/isis/src/base/apps/cubeit/tsts/default/Makefile +++ b/isis/src/base/apps/cubeit/tsts/default/Makefile @@ -3,5 +3,9 @@ APPNAME = cubeit include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/inputList.lis \ + $(ECHO) $(INPUT)/isisTruth.cub+2 > $(OUTPUT)/inputList.lis; + $(ECHO) $(INPUT)/isisTruth.cub >> $(OUTPUT)/inputList.lis; + $(ECHO) $(INPUT)/isisTruth.cub+1 >> $(OUTPUT)/inputList.lis; + $(APPNAME) fromlist=$(OUTPUT)/inputList.lis \ to=$(OUTPUT)/cubeitTruth1.cub > /dev/null; + $(RM) $(OUTPUT)/inputList.lis; diff --git a/isis/src/base/apps/equalizer/tsts/apply/Makefile b/isis/src/base/apps/equalizer/tsts/apply/Makefile index aba3d8f6a31c96b6b7e3ea11fe9873d7ce36905e..b571ac998127b87de23c4a696c44f74fbe9b28df 100644 --- a/isis/src/base/apps/equalizer/tsts/apply/Makefile +++ b/isis/src/base/apps/equalizer/tsts/apply/Makefile @@ -3,10 +3,15 @@ APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ + $(LS) -r $(INPUT)/*.cub > $(OUTPUT)/Fromlist.lst; + $(CAT) $(INPUT)/instats.pvl | $(SED) "s|FileName = .*odyssey/testData/|FileName = $(INPUT)/|" > $(OUTPUT)/instats.pvl; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ tolist=$(INPUT)/ToList.lst \ - instats=$(INPUT)/instats.pvl \ + instats=$(OUTPUT)/instats.pvl \ process=apply \ > /dev/null; $(MV) I00824006RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth1.cub; $(MV) I01523019RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth2.cub; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/instats.pvl; + diff --git a/isis/src/base/apps/equalizer/tsts/default/Makefile b/isis/src/base/apps/equalizer/tsts/default/Makefile index 7fdf7266391a0128b6d6d4c27d8e36000b0acd63..1738d764589e74412bd60fb69715e237a3786f62 100644 --- a/isis/src/base/apps/equalizer/tsts/default/Makefile +++ b/isis/src/base/apps/equalizer/tsts/default/Makefile @@ -3,11 +3,16 @@ APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(LS) $(INPUT)/*.cub > $(OUTPUT)/Fromlist.lst; + $(ECHO) $(INPUT)/I01523019RDR.lev2.cub > $(OUTPUT)/HoldList.lst; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ tolist=$(INPUT)/ToList.lst \ solvemethod=qrd \ > /dev/null; $(MV) I00824006RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth1.cub; $(MV) I01523019RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth2.cub; - $(MV) I02609002RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth3.cub; + $(MV) I02609002RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth3.cub; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/HoldList.lst; + diff --git a/isis/src/base/apps/equalizer/tsts/gain/Makefile b/isis/src/base/apps/equalizer/tsts/gain/Makefile index f55593948ffb1459a2484a1527343868e825ed59..2791a768fc6db69792d8b9dfc1e0ec248af3d1d8 100644 --- a/isis/src/base/apps/equalizer/tsts/gain/Makefile +++ b/isis/src/base/apps/equalizer/tsts/gain/Makefile @@ -6,8 +6,10 @@ APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(LS) $(INPUT)/I0*.cub > $(OUTPUT)/Fromlist.lst; + $(ECHO) $(INPUT)/I01523019RDR.lev2.cub > $(OUTPUT)/HoldList.lst; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ tolist=$(INPUT)/ToList.lst \ solvemethod=qrd adjust=gain \ > /dev/null; @@ -22,3 +24,6 @@ commands: $(APPNAME) fromlist=$(OUTPUT)/files.lis holdlist=$(OUTPUT)/hold.lis \ adjust=gain tolist=$(OUTPUT)/tolist.lis > /dev/null; $(RM) $(OUTPUT)/files.lis $(OUTPUT)/hold.lis $(OUTPUT)/tolist.lis; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/HoldList.lst; + diff --git a/isis/src/base/apps/equalizer/tsts/holdBothCalculateAndApply/Makefile b/isis/src/base/apps/equalizer/tsts/holdBothCalculateAndApply/Makefile index 3d836c718b4d589abf0c97114d6c4fd34b576cea..8ca3b37d1b6606bc4758790236820e6a898fe700 100644 --- a/isis/src/base/apps/equalizer/tsts/holdBothCalculateAndApply/Makefile +++ b/isis/src/base/apps/equalizer/tsts/holdBothCalculateAndApply/Makefile @@ -1,25 +1,32 @@ -# This test passes in a holdlist, lets process default to both (i.e. calculate -# statistics and apply them), and lets adjust default to both (contrast and +# This test passes in a holdlist, lets process default to both (i.e. calculate +# statistics and apply them), and lets adjust default to both (contrast and # brightness). -# +# # It is run once without creating the output statistics file and a second time -# creating the outstats file for test coverage. +# creating the outstats file for test coverage. APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(LS) $(INPUT)/I0*.cub > $(OUTPUT)/Fromlist.lst; + $(ECHO) $(INPUT)/I01523019RDR.lev2.cub > $(OUTPUT)/HoldList.lst; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ tolist=$(INPUT)/ToList.lst \ solvemethod=qrd \ > /dev/null; - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ tolist=$(INPUT)/ToList.lst \ - outstats=$(OUTPUT)/outstats.pvl \ + outstats=$(OUTPUT)/outstatstmp.pvl \ solvemethod=qrd \ > /dev/null; + $(CAT) $(OUTPUT)/outstatstmp.pvl | $(SED) "s|FileName = .*/I0|FileName = I0|" > $(OUTPUT)/outstats.pvl; + $(RM) $(OUTPUT)/outstatstmp.pvl; $(MV) I00824006RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth1.cub; $(MV) I01523019RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth2.cub; - $(MV) I02609002RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth3.cub; + $(MV) I02609002RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth3.cub; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/HoldList.lst; + diff --git a/isis/src/base/apps/equalizer/tsts/holdCalculateStats/Makefile b/isis/src/base/apps/equalizer/tsts/holdCalculateStats/Makefile index 28093e95c387fc41128fd776be5a0fd89ebdbf5f..0b6cf8cf3f5febfc375319066324954c8b637ba7 100644 --- a/isis/src/base/apps/equalizer/tsts/holdCalculateStats/Makefile +++ b/isis/src/base/apps/equalizer/tsts/holdCalculateStats/Makefile @@ -1,29 +1,34 @@ # This test passes in a holdlist, lets process=calculate. -# This will calculate the statistics, but not apply them. -# For this test, the program is run three times - once for each adjust option: +# This will calculate the statistics, but not apply them. +# For this test, the program is run three times - once for each adjust option: # contrast, brightness, and both. APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(LS) $(INPUT)/I0*.cub > $(OUTPUT)/Fromlist.lst; + $(ECHO) $(INPUT)/I01523019RDR.lev2.cub > $(OUTPUT)/HoldList.lst; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ outstats=$(OUTPUT)/outstats_contrast.pvl \ process=calculate \ adjust=contrast \ solvemethod=qrd \ > /dev/null; - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ outstats=$(OUTPUT)/outstats_brightness.pvl \ process=calculate \ adjust=brightness \ solvemethod=qrd \ > /dev/null; - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ - holdlist=$(INPUT)/HoldList.lst \ + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ + holdlist=$(OUTPUT)/HoldList.lst \ outstats=$(OUTPUT)/outstats_both.pvl \ process=calculate \ solvemethod=qrd \ > /dev/null; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/HoldList.lst; + diff --git a/isis/src/base/apps/equalizer/tsts/noHoldApplyInputStats/Makefile b/isis/src/base/apps/equalizer/tsts/noHoldApplyInputStats/Makefile index fb7cc071364c3fc09f6e131788030698aa82147c..c308fe35f320c8f2d8a61de23d6edcdddb56c6c9 100644 --- a/isis/src/base/apps/equalizer/tsts/noHoldApplyInputStats/Makefile +++ b/isis/src/base/apps/equalizer/tsts/noHoldApplyInputStats/Makefile @@ -1,14 +1,18 @@ # This test does not hold any images and lets process=adjust. -# This will apply the user entered input statistics. +# This will apply the user entered input statistics. APPNAME = equalizer include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/FromList.lst \ + $(LS) -r $(INPUT)/I0*.cub > $(OUTPUT)/Fromlist.lst; + $(CAT) $(INPUT)/instats.pvl | $(SED) "s|FileName = .*odyssey/testData/|FileName = $(INPUT)/|" > $(OUTPUT)/instats.pvl; + $(APPNAME) fromlist=$(OUTPUT)/FromList.lst \ tolist=$(INPUT)/ToList.lst \ - instats=$(INPUT)/instats.pvl \ + instats=$(OUTPUT)/instats.pvl \ process=apply \ > /dev/null; $(MV) I00824006RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth1.cub; $(MV) I01523019RDR.lev2.equ.cub $(OUTPUT)/equalizerTruth2.cub; + $(RM) $(OUTPUT)/FromList.lst; + $(RM) $(OUTPUT)/instats.pvl; diff --git a/isis/src/base/apps/equalizer/tsts/nonOverlapApplyFixedStats/Makefile b/isis/src/base/apps/equalizer/tsts/nonOverlapApplyFixedStats/Makefile index ea2a67420272b378c17e5f896835384f5affec5a..d296aae8cd7ae0b8d7b30ad9e37585d42595178d 100644 --- a/isis/src/base/apps/equalizer/tsts/nonOverlapApplyFixedStats/Makefile +++ b/isis/src/base/apps/equalizer/tsts/nonOverlapApplyFixedStats/Makefile @@ -1,4 +1,4 @@ -# This tests applying recaluclated statistics (that were recalculated to +# This tests applying recaluclated statistics (that were recalculated to # fix non-overlapping images by ADDING new images) APPNAME = equalizer @@ -8,9 +8,17 @@ commands: #$(LS) $(INPUT)/*cub > $(OUTPUT)/overlapping.lis; #@$(SED) -e 's#$(INPUT)\(.*\)cub#$(OUTPUT)/\1\equ\.cub#g' $(OUTPUT)/overlapping.lis \ # > $(OUTPUT)/tolist.lis; - $(APPNAME) fromlist=$(INPUT)/fixed.lis \ + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub > $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I50695002EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(CAT) $(INPUT)/recalculatedStats.pvl | $(SED) "s|FileName = .*odyssey/testData/|FileName = $(INPUT)/|" > $(OUTPUT)/recalculatedStats.pvl; + $(APPNAME) fromlist=$(OUTPUT)/fixed.lis \ tolist=$(INPUT)/toList.lis \ - instats=$(INPUT)/recalculatedStats.pvl \ + instats=$(OUTPUT)/recalculatedStats.pvl \ process=apply \ > /dev/null; $(MV) *cub $(OUTPUT); + $(RM) $(OUTPUT)/fixed.lis; + $(RM) $(OUTPUT)/recalculatedStats.pvl; diff --git a/isis/src/base/apps/equalizer/tsts/nonOverlapRecalculate/Makefile b/isis/src/base/apps/equalizer/tsts/nonOverlapRecalculate/Makefile index a0ace24516ff51fcda02623e8ceba72635d2b169..b563253d99272fe74f848bd6398ce131cd8d0b49 100644 --- a/isis/src/base/apps/equalizer/tsts/nonOverlapRecalculate/Makefile +++ b/isis/src/base/apps/equalizer/tsts/nonOverlapRecalculate/Makefile @@ -4,13 +4,13 @@ # # A) First, we simply append the new image to the end of the original list of images to fix the # non-overlapping areas. -# B) Second, we rearrange the original list of input images and add the new image in the middle, +# B) Second, we rearrange the original list of input images and add the new image in the middle, # since order should not matter. This ensures that in the input list, if an existing overlap's -# Y (second) image comes before the X (first) image, the overlap is properly added and +# Y (second) image comes before the X (first) image, the overlap is properly added and # normalizations are calculated correctly. # # The two output statistics pvl files should have identical information, just in a different order. -# +# # NOTE: An exception occurs when calculating and there are non-overlaps, # it is redirected to nonOverlapError.txt. APPNAME = equalizer @@ -19,8 +19,12 @@ include $(ISISROOT)/make/isismake.tsts commands: # Handle the exception: "There are input images that do not overlap..." + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub > $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; if [[ `$(APPNAME) \ - fromlist=$(INPUT)/nonOverlap.lis \ + fromlist=$(OUTPUT)/nonOverlap.lis \ outstats=$(OUTPUT)/nonOverlapStats.pvl \ process=CALCULATE \ 2>> $(OUTPUT)/nonOverlapError.txt \ @@ -29,14 +33,29 @@ commands: true; \ fi; # A) - $(APPNAME) fromlist=$(INPUT)/fixed.lis \ + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub > $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I50695002EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; +# $(CAT) $(INPUT)/nonOverlapStats.pvl | $(SED) "s|FileName = .*odyssey/testData/|FileName = $(INPUT)/|" > $(OUTPUT)/nonOverlapStats.pvl; + $(APPNAME) fromlist=$(OUTPUT)/fixed.lis \ instats=$(OUTPUT)/nonOverlapStats.pvl \ outstats=$(OUTPUT)/recalculatedStats.pvl \ process=RECALCULATE \ > /dev/null; # B) - $(APPNAME) fromlist=$(INPUT)/fixedDiffOrder.lis \ + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub > $(OUTPUT)/fixedDiffOrder.lis; + $(LS) $(INPUT)/I50695002EDR.proj.reduced.cub >> $(OUTPUT)/fixedDiffOrder.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/fixedDiffOrder.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixedDiffOrder.lis; + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub >> $(OUTPUT)/fixedDiffOrder.lis; + $(APPNAME) fromlist=$(OUTPUT)/fixedDiffOrder.lis \ instats=$(OUTPUT)/nonOverlapStats.pvl \ outstats=$(OUTPUT)/recalculatedStatsDiffOrder.pvl \ process=RECALCULATE \ > /dev/null; + $(RM) $(OUTPUT)/fixed.lis; + $(RM) $(OUTPUT)/nonOverlap.lis; + $(RM) $(OUTPUT)/fixedDiffOrder.lis; + diff --git a/isis/src/base/apps/equalizer/tsts/nonOverlapRetryBoth/Makefile b/isis/src/base/apps/equalizer/tsts/nonOverlapRetryBoth/Makefile index 48ded0bc4ef09fb5ed766249ea4c30913ee2a108..5864a8e2d8a7afd9fba8828bab90bb06b88810e1 100644 --- a/isis/src/base/apps/equalizer/tsts/nonOverlapRetryBoth/Makefile +++ b/isis/src/base/apps/equalizer/tsts/nonOverlapRetryBoth/Makefile @@ -13,8 +13,12 @@ include $(ISISROOT)/make/isismake.tsts commands: # Handle the exception: "There are input images that do not overlap..." + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub > $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/nonOverlap.lis; if [[ `$(APPNAME) \ - fromlist=$(INPUT)/nonOverlap.lis \ + fromlist=$(OUTPUT)/nonOverlap.lis \ outstats=$(OUTPUT)/nonOverlapStats.pvl \ process=CALCULATE \ 2>> $(OUTPUT)/nonOverlapError.txt \ @@ -22,10 +26,18 @@ commands: then \ true; \ fi - $(APPNAME) fromlist=$(INPUT)/fixed.lis \ + $(LS) $(INPUT)/I10047011EDR.proj.reduced.cub > $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I25685003EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I51718010EDR.crop.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I56969027EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(LS) $(INPUT)/I50695002EDR.proj.reduced.cub >> $(OUTPUT)/fixed.lis; + $(APPNAME) fromlist=$(OUTPUT)/fixed.lis \ tolist=$(INPUT)/toList.lis \ instats=$(OUTPUT)/nonOverlapStats.pvl \ outstats=$(OUTPUT)/recalculatedStats.pvl \ process=RETRYBOTH \ > /dev/null; $(MV) *.cub $(OUTPUT); + $(RM) $(OUTPUT)/fixed.lis; + $(RM) $(OUTPUT)/nonOverlap.lis; + diff --git a/isis/src/base/apps/fx/tsts/filelistattributes/Makefile b/isis/src/base/apps/fx/tsts/filelistattributes/Makefile index 8e6d812235f1b5502ce1ee8c0e4ddebd21c65406..099fc01aa35299ba1d99007dd5670527ed8ea0f5 100644 --- a/isis/src/base/apps/fx/tsts/filelistattributes/Makefile +++ b/isis/src/base/apps/fx/tsts/filelistattributes/Makefile @@ -3,7 +3,10 @@ APPNAME = fx include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/vims.lis \ + $(ECHO) $(INPUT)/vims1+1 > $(OUTPUT)/vims.lis; + $(ECHO) $(INPUT)/vims2+100 >> $(OUTPUT)/vims.lis; + $(APPNAME) fromlist=$(OUTPUT)/vims.lis \ mode=list \ equation=f1*f2 \ to=$(OUTPUT)/f1Multf2.cub > /dev/null; + $(RM) $(OUTPUT)/vims.lis diff --git a/isis/src/base/apps/makeflat/tsts/framing/Makefile b/isis/src/base/apps/makeflat/tsts/framing/Makefile index 1843df5fdafcbab40c3224c5b1ba217403ad444c..7f262302f98f3ba80a394f49eb43618546f8c05b 100644 --- a/isis/src/base/apps/makeflat/tsts/framing/Makefile +++ b/isis/src/base/apps/makeflat/tsts/framing/Makefile @@ -3,6 +3,9 @@ APPNAME = makeflat include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/fromList.lis \ + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.bottom.cub > $(OUTPUT)/fromList.lis; + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.top.cub >> $(OUTPUT)/fromList.lis; + $(APPNAME) fromlist=$(OUTPUT)/fromList.lis \ to=$(OUTPUT)/framingFlatTruth.cub STDEV=190 \ IMAGETYPE=FRAMING EXCLUDE=$(OUTPUT)/framingFlatTruth.txt> /dev/null; + $(RM) $(OUTPUT)/fromList.lis diff --git a/isis/src/base/apps/makeflat/tsts/linescan/Makefile b/isis/src/base/apps/makeflat/tsts/linescan/Makefile index 4a049bccaa2d5e20ed28e0106071799ab9ae1031..dfd5d139532cb019e78f699891ccbdd0872522b1 100644 --- a/isis/src/base/apps/makeflat/tsts/linescan/Makefile +++ b/isis/src/base/apps/makeflat/tsts/linescan/Makefile @@ -5,7 +5,10 @@ linescanFlatTruth.cub.TOLERANCE = 0.0000002 include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/fromList.lis \ + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.bottom.cub > $(OUTPUT)/fromList.lis; + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.top.cub >> $(OUTPUT)/fromList.lis; + $(APPNAME) fromlist=$(OUTPUT)/fromList.lis \ to=$(OUTPUT)/linescanFlatTruth.cub STDEV=190 \ IMAGETYPE=LINESCAN NUMLINES=10 \ EXCLUDE=$(OUTPUT)/linescanFlatTruth.txt > /dev/null; + $(RM) $(OUTPUT)/fromList.lis diff --git a/isis/src/base/apps/makeflat/tsts/pushframe/Makefile b/isis/src/base/apps/makeflat/tsts/pushframe/Makefile index 726462dac74a6e04fc4b48f0c6eb9f7d98db382f..2002226610f4a1050df278f0376639e633139c8b 100644 --- a/isis/src/base/apps/makeflat/tsts/pushframe/Makefile +++ b/isis/src/base/apps/makeflat/tsts/pushframe/Makefile @@ -3,7 +3,10 @@ APPNAME = makeflat include $(ISISROOT)/make/isismake.tsts commands: - $(APPNAME) fromlist=$(INPUT)/fromList.lis \ + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.bottom.cub > $(OUTPUT)/fromList.lis; + $(ECHO) $(INPUT)/ctx_pmoi_i_00003.top.cub >> $(OUTPUT)/fromList.lis; + $(APPNAME) fromlist=$(OUTPUT)/fromList.lis \ to=$(OUTPUT)/pushFrameFlatTruth.cub STDEV=150 \ - IMAGETYPE=PUSHFRAME FRAMELETHEIGHT=50 EXCLUDE=$(OUTPUT)/pushFrame.txt \ + IMAGETYPE=PUSHFRAME FRAMELETHEIGHT=50 EXCLUDE=$(OUTPUT)/pushFrame.pvl \ > /dev/null; + $(RM) $(OUTPUT)/fromList.lis diff --git a/isis/src/base/objs/RollingShutterCamera/unitTest.cpp b/isis/src/base/objs/RollingShutterCamera/unitTest.cpp index 26c82734eb0e8517d25512922e87b2ece13db325..37ccd4a5ccb44345282dfb5388706a766fc20d20 100644 --- a/isis/src/base/objs/RollingShutterCamera/unitTest.cpp +++ b/isis/src/base/objs/RollingShutterCamera/unitTest.cpp @@ -59,7 +59,7 @@ class TestRollingShutterCamera : public RollingShutterCamera { string msg = "SPK Reference ID is unique to mission-specific cameras"; throw IException(IException::Unknown, msg, _FILEINFO_); } - + // These are pure virtual within Sensor that must be overriden virtual QString instrumentNameLong() const { return QString("RollingShutting"); } virtual QString instrumentNameShort() const { return QString("RS"); } @@ -73,7 +73,7 @@ int main() { //NOTE: The following cube is not from a framing camera. The test returns //true for framing camera type since MyCamera is a child class of FramingCamera try { - Cube cube("$clipper/testData/simulated_clipper_eis_nac_rolling_shutter.cub", "r"); + Cube cube("$ISISTESTDATA/isis/src/base/unitTestData/simulated_clipper_eis_nac_rolling_shutter.cub", "r"); TestRollingShutterCamera cam(cube); // test camera type diff --git a/isis/src/clipper/objs/ClipperWacFcCamera/unitTest.cpp b/isis/src/clipper/objs/ClipperWacFcCamera/unitTest.cpp index a930291b5a9d9cd29d69f3ed20572098204eccc5..ecb542835d8ef004a406f0c62ca385ecf55ee6b0 100644 --- a/isis/src/clipper/objs/ClipperWacFcCamera/unitTest.cpp +++ b/isis/src/clipper/objs/ClipperWacFcCamera/unitTest.cpp @@ -47,9 +47,9 @@ void TestLineSamp(Camera *cam, double samp, double line); */ // IMPORTANT NOTE: This test is believed to be failing because the test data has an arbitrary date -// for the StartTime, which means that the spice probably shows the spacecraft as not being near and +// for the StartTime, which means that the spice probably shows the spacecraft as not being near and // pointed at Europa. If the spacecraft isn't near and pointed at Europa, there will be no intersection -// and SetImage will fail. +// and SetImage will fail. int main(void) { Preference::Preferences(true); @@ -62,7 +62,7 @@ int main(void) { double knownLon = 0; qDebug() << "Testing with test image..."; - Cube c("$clipper/testData/simulated_clipper_eis_wac_rolling_shutter.cub", "r"); + Cube c("$ISISTESTDATA/isis/src/clipper/unitTestData/simulated_clipper_eis_wac_rolling_shutter.cub", "r"); ClipperWacFcCamera *cam = (ClipperWacFcCamera *) CameraFactory::Create(c); qDebug() << "FileName: " << FileName(c.fileName()).name(); qDebug() << "CK Frame: " << cam->instrumentRotation()->Frame(); diff --git a/isis/src/osirisrex/objs/OsirisRexOcamsCamera/unitTest.cpp b/isis/src/osirisrex/objs/OsirisRexOcamsCamera/unitTest.cpp index 336404421fc10458e9955f31254cb9c6d250c421..04ef4a3fe918e486dc873e8f5e9fa94848e7d4c9 100644 --- a/isis/src/osirisrex/objs/OsirisRexOcamsCamera/unitTest.cpp +++ b/isis/src/osirisrex/objs/OsirisRexOcamsCamera/unitTest.cpp @@ -2,17 +2,17 @@ * @file * * Unless noted otherwise, the portions of Isis written by the USGS are public - * domain. See individual third-party library and package descriptions for + * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, expressed or implied, - * is made by the USGS as to the accuracy and functioning of such software - * and related material nor shall the fact of distribution constitute any such - * warranty, and no responsibility is assumed by the USGS in connection + * is made by the USGS as to the accuracy and functioning of such software + * and related material nor shall the fact of distribution constitute any such + * warranty, and no responsibility is assumed by the USGS in connection * therewith. * * For additional information, launch - * $ISISROOT/doc//documents/Disclaimers/Disclaimers.html in a browser or see + * $ISISROOT/doc//documents/Disclaimers/Disclaimers.html in a browser or see * the Privacy & Disclaimers page on the Isis website, * http://isis.astrogeology.usgs.gov, and the USGS privacy and disclaimers on * http://www.usgs.gov/privacy.html. @@ -36,7 +36,7 @@ void testCamera(Cube &c, double sample, double line, double knownLat, double kno void testLineSamp(Camera *cam, double sample, double line); /** - * This is the unit test for the Osiris Rex Camera model. + * This is the unit test for the Osiris Rex Camera model. * * @author 2015-11-10 Stuart C. Sides * @internal @@ -47,9 +47,9 @@ void testLineSamp(Camera *cam, double sample, double line); * PolyCamFocusPositionNaifId keyword. * @history 2017-09-18 Kristin Berry - Updated known latitudes and longitudes for the addition of * the distortion model. (For non-backwards compatibility MapCam cube - * only, since we do not yet have a PolyCam cube with a motor position - * that we have a distortion solution for.) - * + * only, since we do not yet have a PolyCam cube with a motor position + * that we have a distortion solution for.) + * */ int main(void) { @@ -59,33 +59,33 @@ int main(void) { try { cout << "\nTesting PolyCam (backwards compatibility)..." << endl; - Cube polyCamCube("$osirisrex/testData/2019-01-13T23_36_05.000_PCAM_L2b_V001.cub", "r"); + Cube polyCamCube("$ISISTESTDATA/isis/src/osirisrex/unitTestData/2019-01-13T23_36_05.000_PCAM_L2b_V001.cub", "r"); double knownLat = 13.9465663689936950; double knownLon = 349.0213035062322433; - double sample = 512.0; + double sample = 512.0; double line = 512.0; testCamera(polyCamCube, sample, line, knownLat, knownLon); cout << "\nTesting PolyCam (with PolyCamFocusPositionNaifId keyword)..." << endl; - Cube polyCamCube2("$osirisrex/testData/20190113T191852S740_pol_iofL2pan_V001.cub", "r"); + Cube polyCamCube2("$ISISTESTDATA/isis/src/osirisrex/unitTestData/20190113T191852S740_pol_iofL2pan_V001.cub", "r"); knownLat = -5.5191879351483450; knownLon = 349.6939492565607566; - sample = 512.0; + sample = 512.0; line = 512.0; testCamera(polyCamCube2, sample, line, knownLat, knownLon); cout << "============================================================================" << endl; cout << "\nTesting MapCam (backwards compatibility)..." << endl; - Cube mapCamCube("$osirisrex/testData/D19030320000.cub", "r"); + Cube mapCamCube("$ISISTESTDATA/isis/src/osirisrex/unitTestData/D19030320000.cub", "r"); knownLat = 73.9976065262802933; knownLon = 149.3814386120742768; - sample = 512.0; + sample = 512.0; line = 512.0; testCamera(mapCamCube, sample, line, knownLat, knownLon); cout << "\nTesting MapCam (with PolyCamFocusPositionNaifId keyword)..." << endl; - Cube mapCamCube2("$osirisrex/testData/20190303T100344S990_map_iofL2pan_V001.cub", "r"); + Cube mapCamCube2("$ISISTESTDATA/isis/src/osirisrex/unitTestData/20190303T100344S990_map_iofL2pan_V001.cub", "r"); knownLat = -19.2946930665326732; knownLon = 145.9510736765638512; - sample = 512.0; + sample = 512.0; line = 512.0; testCamera(mapCamCube2, sample, line, knownLat, knownLon); cout << "============================================================================" << endl; @@ -95,7 +95,7 @@ int main(void) { Cube samCamCube("$osirisrex/testData/20141111T202650_SCAM_L2_V001_SCAM.cub", "r"); knownLat = 0.0; knownLon = 0.0; - sample = 512.0; + sample = 512.0; line = 512.0; testCamera(samCamCube, sample, line, knownLat, knownLon); cout << "============================================================================" << endl; @@ -107,7 +107,7 @@ int main(void) { } } -void testCamera(Cube &cube, +void testCamera(Cube &cube, double sample, double line, double knownLat, double knownLon) { @@ -123,14 +123,14 @@ void testCamera(Cube &cube, cout << "CK Reference ID = " << cam->CkReferenceId() << endl; cout << "SPK Target ID = " << cam->SpkTargetId() << endl; cout << "SPK Reference ID = " << cam->SpkReferenceId() << endl << endl; - + // Test name methods cout << "Spacecraft Name Long: " << cam->spacecraftNameLong() << endl; cout << "Spacecraft Name Short: " << cam->spacecraftNameShort() << endl; cout << "Instrument Name Long: " << cam->instrumentNameLong() << endl; cout << "Instrument Name Short: " << cam->instrumentNameShort() << endl << endl; - // Test Shutter Open/Close + // Test Shutter Open/Close const PvlGroup &inst = cube.label()->findGroup("Instrument", Pvl::Traverse); double exposureDuration = ((double) inst["ExposureDuration"])/1000; QString stime = inst["StartTime"];