
all : utt01 utt02

utt01 : 
	@echo Test utt01, basic functionality 
	../../bin/FVSut --keywordfile=utt01.key
	grep -v "\-999" utt01.sum      > utt01.tmp
	grep -v "\-999" utt01.sum.save > utt01.tmp.save
	-diff -w utt01.tmp utt01.tmp.save
	rm utt01.tmp utt01.tmp.save
	@echo Test utt01 ended

utt02 : 
	@echo Test utt02, stop/restart, output should match utt01
	../../bin/FVSut --keywordfile=utt01.key --stoppoint=2,2040,utt.stop
	../../bin/FVSut --restart=utt.stop
	grep -v "\-999" utt01.sum      > utt01.tmp
	grep -v "\-999" utt01.sum.save > utt01.tmp.save
	-diff -w utt01.tmp utt01.tmp.save
	rm utt01.tmp utt01.tmp.save
	@echo Test utt02 ended

clean:
	rm -rfv utt.stop utt01.out utt01.sng utt01.sum FVS_Data.db FVSOut.db