Commit 611bc147 authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Added errors test fixed, label parameter in csv2table

parent 45560f49
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
            file where all of the keywords and their values will be added to
            the tabel label.
          </description>
          <internalDefault>None</internalDefault>
          <filter>
            *.pvl
          </filter>
+30 −0
Original line number Diff line number Diff line
APPNAME = csv2table

include $(ISISROOT)/make/isismake.tsts

commands:
	cp $(INPUT)/isisTruth.cub $(OUTPUT)/isisTruth.cub;

	if [ `$(APPNAME) csv=$(INPUT)/not_a_file.csv \
	     tablename="TestTable" \
	     to=$(OUTPUT)/isisTruth.cub &> $(OUTPUT)/errors.txt` ]; \
	then \
	  true; \
	fi;

	if [ `$(APPNAME) csv=$(INPUT)/empty.csv \
	      tablename="TestTable" \
	      to=$(OUTPUT)/isisTruth.cub &>> $(OUTPUT)/errors.txt` ]; \
	then \
	  true; \
	fi;

	if [ `$(APPNAME) csv=$(INPUT)/test.csv \
	      label=$(INPUT)/not_a_file.pvl \
	      tablename="TestTable" \
	      to=$(OUTPUT)/isisTruth.cub &>> $(OUTPUT)/errors.txt` ]; \
	then \
	  true; \
	fi;

	rm $(OUTPUT)/isisTruth.cub;