.PHONY: all unit-tests system-tests check-system help
SUBCOMPONENT_BIN ?= $(CURDIR)/../target/release/subcomponent
all: check-system unit-tests system-tests
check-system:
./check-system.sh
unit-tests:
@echo "#### Running unit tests..."
cargo test --release
system-tests:
@echo "#### Running system tests..."
cargo build --release
@if [ ! -x "$(SUBCOMPONENT_BIN)" ]; then \
echo "**** $(SUBCOMPONENT_BIN) is not executable"; \
fi
env SUBCOMPONENT_TEST_BIN="$(SUBCOMPONENT_BIN)" robot system/main.robot
help:
@echo "Available targets:"
@echo " all [default] Run all tests"
@echo " unit-tests Run unit tests only"
@echo " system-tests Run system tests only"
@echo " check-system Check your system is correctly configured"