Skip to content

Commit

Permalink
run tests from makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vixentael committed Oct 30, 2017
1 parent 5919a24 commit 38fa9fc
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion tests/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,37 @@ themispp_test: $(THEMISPP_TEST_OBJ)
@echo -n "link "
@$(BUILD_CMD)

test: soter_test themis_test
test: soter_test themis_test themispp_test

check: test
$(TEST_BIN_PATH)/soter_test
@echo "------------------------------------------------------------"
$(TEST_BIN_PATH)/themis_test
@echo "------------------------------------------------------------"
$(TEST_BIN_PATH)/themispp_test
@echo "------------------------------------------------------------"

# require all dependencies
check_all: check test_all
ifdef PHP_VERSION
@echo "------------------------------------------------------------"
@echo "If any error, check https://github.com/cossacklabs/themis/wiki/PHP-Howto"
@echo "------------------------------------------------------------"
$(TEST_BIN_PATH)/phpthemis_test.sh
@echo "------------------------------------------------------------"
endif
ifdef PYTHON_VERSION
@echo "------------------------------------------------------------"
@echo "If any error, check https://github.com/cossacklabs/themis/wiki/Python-Howto"
@echo "------------------------------------------------------------"
$(TEST_BIN_PATH)/pythemis_test.sh
@echo "------------------------------------------------------------"
endif
ifdef RUBY_GEM_VERSION
@echo "------------------------------------------------------------"
@echo "If any error, check https://github.com/cossacklabs/themis/wiki/Ruby-Howto"
@echo "------------------------------------------------------------"
$(TEST_BIN_PATH)/rubythemis_test.sh
@echo "------------------------------------------------------------"
endif
$(TEST_BIN_PATH)/node.sh

0 comments on commit 38fa9fc

Please sign in to comment.