Skip to content

Commit

Permalink
Merge pull request #736 from plebioda/fix-test-makefile-dependencies
Browse files Browse the repository at this point in the history
Fix parallel building tests and pcheck in packages
  • Loading branch information
krzycz committed Apr 1, 2016
2 parents aef8510 + 3bda779 commit 0bec681
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
13 changes: 5 additions & 8 deletions src/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ BLK_TESTS = \
blk_recovery\
blk_rw\
blk_rw_mt

LOG_TESTS = \
log_basic\
log_pool\
Expand Down Expand Up @@ -242,9 +241,9 @@ TESTS += $(CHRONO_TESTS)
endif

TESTS_BUILD = \
$(TESTS)\
$(TEST_DEPS)\
$(OBJ_DEPS)
$(OBJ_DEPS)\
$(TESTS)

all : TARGET = all
clean : TARGET = clean
Expand All @@ -269,11 +268,9 @@ all test cstyle: $(TESTS_BUILD)

clean clobber: $(TESTS_BUILD)

$(OBJ_DEPS) $(OBJ_TESTS) $(OBJ_CPP_TESTS) $(BLK_TESTS) $(LOG_TESTS) $(OTHER_TESTS) $(PMEM_TESTS) $(PMEMPOOL_TESTS) $(VMEM_TESTS) $(VMMALLOC_TESTS): unittest

$(TESTS): tools

$(TESTS): $(TEST_DEPS)
$(OBJ_TESTS): $(OBJ_DEPS)
$(OBJ_DEPS): $(TEST_DEPS)

$(TESTS_BUILD):
$(MAKE) -C $@ $(TARGET)
Expand Down Expand Up @@ -328,4 +325,4 @@ pcheck_vmmalloc: $(VMMALLOC_TESTS)

.PHONY: all check clean clobber cstyle pcheck pcheck_blk pcheck_log pcheck_obj\
pcheck_other pcheck_pmem pcheck_pmempool pcheck_vmem pcheck_vmmalloc\
test unittest $(TESTS_BUILD)
test unittest tools $(TESTS_BUILD)
2 changes: 1 addition & 1 deletion utils/build-dpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ override_dh_auto_test:
else\
cp src/test/testconfig.sh.example src/test/testconfig.sh;\
fi
make -s pcheck
make check
EOF

chmod +x debian/rules
Expand Down
3 changes: 2 additions & 1 deletion utils/build-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ if [ -f $TEST_CONFIG_FILE ]; then
else
cp src/test/testconfig.sh.example src/test/testconfig.sh
fi
make -s pcheck
make check
%clean
make clobber
Expand Down

0 comments on commit 0bec681

Please sign in to comment.