Unverified Commit 039d19d0 authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Removed old spiceinit makefiles and fixed test (#4145)

* Removed old spiceinit makefiles and fixed test

* Updated spiceinit ck config to use regex for fk

* Fixed comment typo
parent 712907de
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
# run spiceinit with multiple quality types of cks allowed.
# 
# This will create a priority queue of Reconstructed and Smithed cks
# from the ck database file that match the time ranges. Based on priority, 
# spiceinit will try to load the kernels.  If this fails, the program will try
# to load the next highest priority.
APPNAME = spiceinit

include $(ISISROOT)/make/isismake.tsts

commands:
	cp $(INPUT)/lub5120p.063.lev1.cub $(OUTPUT)/spiceinitTruth.cub > /dev/null;
	$(APPNAME) from=$(OUTPUT)/spiceinitTruth.cub \
	ATTACH=NO \
	CKREC=TRUE \
	CKSMITH=true > /dev/null;
	catlab from=$(OUTPUT)/spiceinitTruth.cub to=$(OUTPUT)/labels.pvl > /dev/null;
	rm $(OUTPUT)/spiceinitTruth.cub;
+0 −15
Original line number Diff line number Diff line
# run spiceinit with multiple ck database files in a config file
# MRO CRISM - 
#   1 ordinary ck
#   1 gimble
APPNAME = spiceinit

include $(ISISROOT)/make/isismake.tsts

commands:
	$(CP) $(INPUT)/frt0001cfd8_07_if124s_trr3_b24.cub $(OUTPUT)/spiceinitTruth.cub > /dev/null;
	$(APPNAME) from=$(OUTPUT)/spiceinitTruth.cub > /dev/null;
	catlab from=$(OUTPUT)/spiceinitTruth.cub to=$(OUTPUT)/label.pvl > /dev/null;
	$(SED) 's+mro/kernels/sclk/MRO_SCLKSCET.*tsc+mro/kernels/sclk/MRO_SCLKSCET.tsc+g' $(OUTPUT)/label.pvl > $(OUTPUT)/labels.pvl;
	rm $(OUTPUT)/spiceinitTruth.cub;
	rm $(OUTPUT)/label.pvl;
+0 −12
Original line number Diff line number Diff line
# run spice init with default parameters only
APPNAME = spiceinit

include $(ISISROOT)/make/isismake.tsts

commands:
	cp $(INPUT)/spiceinitTruth.cub $(OUTPUT)/ > /dev/null;
	$(APPNAME) from=$(OUTPUT)/spiceinitTruth.cub > /dev/null;
	catlab from=$(OUTPUT)/spiceinitTruth.cub to=$(OUTPUT)/labels.pvl > /dev/null;
	$(APPNAME) from=$(OUTPUT)/spiceinitTruth.cub > /dev/null;
	catlab from=$(OUTPUT)/spiceinitTruth.cub to=$(OUTPUT)/labelsTwice.pvl > /dev/null;
	rm $(OUTPUT)/spiceinitTruth.cub;
+0 −15
Original line number Diff line number Diff line
# run spice init with default parameters only
APPNAME = spiceinit

include $(ISISROOT)/make/isismake.tsts

commands:
#    TEST A: Check that an isis2 cube fails to be read
	echo -e "Test Spiceinit with an isis2 cube:" > $(OUTPUT)/error_message_temp.txt;
	if [ `$(APPNAME) \
	  from=$(INPUT)/isis2Truth.cub \
	  2>> $(OUTPUT)/error_message_temp.txt > /dev/null` ]; \
	  then true; \
	fi;
	$(SED) 's+\[/.*/input/+\[input/+' $(OUTPUT)/error_message_temp.txt > $(OUTPUT)/error_message.txt;
	$(RM)  $(OUTPUT)/error_message_temp.txt;
 No newline at end of file
+0 −17
Original line number Diff line number Diff line
# run spiceinit with nadir ck allowed to fill in gaps
APPNAME = spiceinit

error.txt.IGNORELINES = LeapSecond

include $(ISISROOT)/make/isismake.tsts

commands:
	cp $(INPUT)/m1301260.cub $(OUTPUT)/nadirTruth.cub;
	$(APPNAME) from=$(OUTPUT)/nadirTruth.cub \
	attach=no \
	cknadir=yes \
	tspk='$$base/kernels/spk/de405.bsp' > /dev/null;
	catlab from=$(OUTPUT)/nadirTruth.cub to=$(OUTPUT)/labels.pvl > /dev/null;
	$(APPNAME) from=$(OUTPUT)/nadirTruth.cub attach=no \
	tspk='$$base/kernels/spk/de405.bsp' >& $(OUTPUT)/error.txt || true;
	rm $(OUTPUT)/nadirTruth.cub;
Loading