Add make commands for tests

This adds the make commands required to build and run tests.
This commit is contained in:
AbdealiJK
2016-12-02 00:04:33 +05:30
committed by Tianqi Chen
parent b045ccd764
commit 1f2ad36bad
6 changed files with 84 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ AMALGA_OBJ = amalgamation/xgboost-all0.o
LIB_DEP = $(DMLC_CORE)/libdmlc.a $(RABIT)/lib/$(LIB_RABIT)
ALL_DEP = $(filter-out build/cli_main.o, $(ALL_OBJ)) $(LIB_DEP)
CLI_OBJ = build/cli_main.o
include tests/cpp/xgboost_test.mk
build/%.o: src/%.cc
@mkdir -p $(@D)
@@ -145,8 +146,15 @@ lint: rcpplint
pylint:
flake8 --ignore E501 python-package
flake8 --ignore E501 tests/python
test: $(ALL_TEST)
check: test
./tests/cpp/xgboost_test
clean:
$(RM) -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o xgboost
$(RM) -rf build_tests tests/cpp/xgboost_test
clean_all: clean
cd $(DMLC_CORE); $(MAKE) clean; cd $(ROOTDIR)