Add Xfunc to makefile

Summary: Make target for running all xfunc tests

Test Plan: make xfunc

Reviewers: igor, sdong, meyering

Reviewed By: meyering

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D36873
main
Venkatesh Radhakrishnan 10 years ago
parent e7ad14926a
commit 0a0501c8d5
  1. 11
      Makefile
  2. 8
      src.mk

@ -442,6 +442,9 @@ prioritize_long_running_tests = \
# See "man parallel" for its "-j ..." option. # See "man parallel" for its "-j ..." option.
J = 100% J = 100%
# Use this regexp to select the subset of tests whose names match.
tests-regexp = .
.PHONY: check_0 .PHONY: check_0
check_0: $(t_run) check_0: $(t_run)
$(AM_V_GEN)export TEST_TMPDIR=$(TMPD); \ $(AM_V_GEN)export TEST_TMPDIR=$(TMPD); \
@ -454,6 +457,7 @@ check_0: $(t_run)
printf '%s\n' $(t_run); \ printf '%s\n' $(t_run); \
} \ } \
| $(prioritize_long_running_tests) \ | $(prioritize_long_running_tests) \
| grep -E '$(tests-regexp)' \
| parallel -j$(J) --joblog=LOG $$eta --gnu '{} >& t/log-{/}' | parallel -j$(J) --joblog=LOG $$eta --gnu '{} >& t/log-{/}'
endif endif
@ -919,6 +923,13 @@ commit-prereq:
$(MAKE) clean && USE_CLANG=1 $(MAKE) all; $(MAKE) clean && USE_CLANG=1 $(MAKE) all;
$(MAKE) clean && OPT=-DROCKSDB_LITE $(MAKE) static_lib; $(MAKE) clean && OPT=-DROCKSDB_LITE $(MAKE) static_lib;
xfunc:
for xftest in $(XFUNC_TESTS); do \
echo "===== Running xftest $$xftest"; \
make check ROCKSDB_XFUNC_TEST="$$xftest" tests-regexp="DBTest" ;\
done
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Platform-specific compilation # Platform-specific compilation
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------

@ -256,4 +256,10 @@ JNI_NATIVE_SOURCES = \
# TODO/FIXME: fix the above. Otherwise, the current rules would fail: # TODO/FIXME: fix the above. Otherwise, the current rules would fail:
# java/rocksjni/write_batch_test.cc:13:44: fatal error: include/org_rocksdb_WriteBatch.h: No such file or directory # java/rocksjni/write_batch_test.cc:13:44: fatal error: include/org_rocksdb_WriteBatch.h: No such file or directory
# #include "include/org_rocksdb_WriteBatch.h" # #include "include/org_rocksdb_WriteBatch.h"
# ^
# These are the xfunc tests run :
XFUNC_TESTS = \
"managed_new" \
"managed_xftest_dropold" \
"managed_xftest_release" \
"inplace_lock_test"

Loading…
Cancel
Save