Commit 24542fa8 authored by Stuart Sides's avatar Stuart Sides
Browse files

PROG Added tests to leisa2isis

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6092 41f8697f-d340-4b68-9986-7bafba869bb8
parent 574ca104
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
APPNAME = leisa2isis

include $(ISISROOT)/make/isismake.tsts

commands:
	# Test for existance of the MISSION keyword in the main FITS image label
	$(SED) 's+MISSION = '"'"'New Horizons+MISSIOx = '"'"'New Horizons+' \
	    $(INPUT)/lsb_0034933739_0x53c_sci_1.fit > $(OUTPUT)/temp.fit
	if [ `$(APPNAME) \
	  from=$(OUTPUT)/temp.fit \
	  to=$(OUTPUT)/junk.cub \
	  >& $(OUTPUT)/temp.txt` ]; then \
	  true; \
	fi;
	$(SED) 's/\[.*\/\(temp.fit\)\]/[\1]/' < $(OUTPUT)/temp.txt > $(OUTPUT)/error_mission-key.txt;
	$(RM) $(OUTPUT)/temp.txt $(OUTPUT)/temp.fit;
	# Test for the value of the MISSION keyword in the main FITS image label
	$(SED) 's+MISSION = '"'"'New Horizons+MISSION = '"'"'NewXHorizons+' \
	    $(INPUT)/lsb_0034933739_0x53c_sci_1.fit > $(OUTPUT)/temp.fit
	if [ `$(APPNAME) \
	  from=$(OUTPUT)/temp.fit \
	  to=$(OUTPUT)/junk.cub \
	  >& $(OUTPUT)/temp.txt` ]; then \
	  true; \
	fi;
	$(SED) 's/\[.*\/\(temp.fit\)\]/[\1]/' < $(OUTPUT)/temp.txt > $(OUTPUT)/error_mission-value.txt;
	$(RM) $(OUTPUT)/temp.txt $(OUTPUT)/temp.fit;
	# Test for the existance of the INSTR keyword in the main FITS image label
	$(SED) 's+INSTRU  = '"'"'lei+INSTRz  = '"'"'lei+' \
	    $(INPUT)/lsb_0034933739_0x53c_sci_1.fit > $(OUTPUT)/temp.fit
	if [ `$(APPNAME) \
	  from=$(OUTPUT)/temp.fit \
	  to=$(OUTPUT)/junk.cub \
	  >& $(OUTPUT)/temp.txt` ]; then \
	  true; \
	fi;
	$(SED) 's/\[.*\/\(temp.fit\)\]/[\1]/' < $(OUTPUT)/temp.txt > $(OUTPUT)/error_instru-key.txt;
	$(RM) $(OUTPUT)/temp.txt $(OUTPUT)/temp.fit;
	# Test for the value of the INSTRU keyword in the main FITS image label
	$(SED) 's+INSTRU  = '"'"'lei+INSTRU  = '"'"'leY+' \
	    $(INPUT)/lsb_0034933739_0x53c_sci_1.fit > $(OUTPUT)/temp.fit
	if [ `$(APPNAME) \
	  from=$(OUTPUT)/temp.fit \
	  to=$(OUTPUT)/junk.cub \
	  >& $(OUTPUT)/temp.txt` ]; then \
	  true; \
	fi;
	$(SED) 's/\[.*\/\(temp.fit\)\]/[\1]/' < $(OUTPUT)/temp.txt > $(OUTPUT)/error_instru-value.txt;
	$(RM) $(OUTPUT)/temp.txt $(OUTPUT)/temp.fit;


+7 −0
Original line number Diff line number Diff line
APPNAME = leisa2isis

include $(ISISROOT)/make/isismake.tsts

commands:
	$(CP) $(INPUT)/truth.txt $(OUTPUT)/truth.txt;