Commit 88b4c173 authored by Stuart Sides's avatar Stuart Sides Committed by Summer Stapleton
Browse files

Fixed caminfo csv test Makefile sed to remove isis version and date (#3325)

parent 6805984c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7,9 +7,11 @@ commands:
	$(APPNAME) FROM=$(OUTPUT)/input.cub \
	TO=$(OUTPUT)/temp.txt FORMAT=flat APPEND=false \
	STATISTICS=true CAMSTATS=true GEOMETRY=true spice=true > /dev/null;
	# Remove the trailing decimal place on numbers
	# Replace the caminfo,version number | date with "caminfo,version | date"
	cat $(OUTPUT)/temp.txt | \
	  sed 's/\([0-9]*\.[0-9]\{4\}\)\([0-9]*\)/\1/g' | \
	  sed 's/\([a-z]*\,\)\([0-9]\.[0-9]*\.[0-9]*\.[A-Za-z0-9]* [a-z]* | [0-9]\{4\}\-[0-9]\{2\}\-[0-9]\{2\}\)/\1/g' \
	  sed 's/\([a-z]*\,\)\([0-9]\.[0-9]*\.[0-9]*.*| [0-9]\{4\}\-[0-9]\{2\}\-[0-9]\{2\}\)/\1version | date/g' \
	  > $(OUTPUT)/truth.txt;
	$(RM) $(OUTPUT)/temp.txt;
	$(RM) $(OUTPUT)/input.cub;