test:
	@echo "building and testing megatest...."
	cd megatest ; make test OPTS='$(OPTS)'
	@echo "building and testing pingpong...."
	cd pingpong ; make test OPTS='$(OPTS)'
	@echo "building and testing ck...."
	cd ck ; make test OPTS='$(OPTS)'
	@echo "building and testing simplearrayhello...."
	cd simplearrayhello ; make test OPTS='$(OPTS)'
	@echo "building and testing 3darrayhello...."
	cd 3darrayhello ; make test OPTS='$(OPTS)'
	@echo "building and testing fancyarrayhello...."
	cd fancyarrayhello ; make test OPTS='$(OPTS)'
	@echo "building and testing overhead...."
	cd overhead ; make test OPTS='$(OPTS)'
	@echo "building and testing queens...."
	cd queens ; make test OPTS='$(OPTS)'
	@echo "building and testing reductiontest...."
	cd reductiontest ; make test OPTS='$(OPTS)'
	@echo "building and testing schedtest...."
	cd schedtest ; make test OPTS='$(OPTS)'
	@echo "building and testing tempo...."
	cd tempo ; make tempotest OPTS='$(OPTS)'

clean:
	cd megatest ; make clean
	cd pingpong ; make clean
	cd simplearrayhello ; make clean
	cd 3darrayhello ; make clean
	cd fancyarrayhello ; make clean
	cd overhead ; make clean
	cd queens ; make clean
	cd reductiontest ; make clean
	cd ck ; make clean
	cd schedtest ; make clean
	cd tempo ; make clean
	rm -f TAGS #*#
	rm -f core *~
