TOP_DIR = ..

RUN_TEST_OPTIONS =

HOST = localhost
PORT = 5050

RM   = rm
FIND = find

all: check

check:
	@$(TOP_DIR)/test-util/bin/run-test \
			$(RUN_TEST_OPTIONS) \
			--host $(HOST) --port $(PORT) \
			--clean-command "$(TOP_DIR)/bin/setup --init-only"

clean:
	@$(FIND) . -name '*.output.xml'  -exec "$(RM)" -f \{\} \;
	@$(FIND) . -name '.failed.*.xml' -exec "$(RM)" -f \{\} \;
	@$(FIND) . -name '*.error'       -exec "$(RM)" -f \{\} \;

.PHONY: all check clean
