SHELL = /bin/csh
#################################################################################
# Test-Suite for 3Pipe Viewer
default: 
	@echo "-------------- Test-Suite for 3Pipe Viewer -------------------"
	@echo "1. > setserver (servername)"
	@echo "2. > make test(1|2|3|4)"
	@echo "3. > 3v -kill"
	@echo "4. > 3v [-full]"

clean:
	@-rm -f *.bak
	@-rm -f *.sav
	@-rm -f *.ckp
	@-rm -f core 

#################################################################################
# serv
# start the server

serv:
	@echo -- Starting Server ----
	@setenv LD_LIBRARY_PATH .
	@Serv
	@echo -- Done --


#################################################################################
# test
# this is common for all

THREE_ARGS=-wa 50 -ha 50 -sa 50

test:
	@setenv LD_LIBRARY_PATH .
#	@3v $(THREE_ARGS)


#################################################################################
# test 1 
# simply show a X29-fighter
#
# ID: 17700
#
test1:
	@echo "-------------- Generating Test 1 (X29-Fighter) -------------------"
	@rm -f inner.iv
	@ln -s inner_x29.iv inner.iv
	@make test

#################################################################################
# test 2 
# show the barcelona.iv model
#
# ID: 17701
#
test2:
	@echo "-------------- Generating Test 2 (Barcelona-Model) -------------------"
	@rm -f inner.iv
	@ln -s inner_bar.iv inner.iv
	@make test

#################################################################################
# test 3 
# show the horizons, using a web function
#
# ID: 17702
#
test3:
	@echo "-------------- Generating Test 3 (Horizons) -------------------"
	@rm -f inner.iv
	@ln -s inner_hor.iv inner.iv
	@make test

#################################################################################
# test 4 
# Test for Insert, Delete and Replace Applications
#
# ID: 17703
#
test4:
	@echo "-------------- Generating Test 4 (TopTest) -------------------"
	@rm -f inner.iv
	@ln -s inner_top.iv inner.iv
	@toptest.right &
	@make test

#################################################################################
# test 5
# simply BT
#
# ID: 17704
#
test5:
	@echo "-------------- Generating Test 5 (BT) -------------------"
	@rm -f inner.iv
	@ln -s inner_btu.iv inner.iv
	@make test

