summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorsdong <siying.d@fb.com>2016-07-21 12:53:02 -0700
committersdong <siying.d@fb.com>2016-07-21 12:53:23 -0700
commitb50632920d6730cc12deb30ee71338b1e72c93ac (patch)
tree4698a67d7810079d7b9487ced2305e8a8cecb97f /build_tools
parentb9a97181aa1d57b21f3f0789047a2a29c44a0714 (diff)
Add unit test not on /dev/shm as part of the pre-commit tests
Summary: RocksDB behavior is slightly different between data on tmpfs and normal file systems. Add a test case to run RocksDB on normal file system. Test Plan: See the tests launched by Phabricator Reviewers: kradhakrishnan, IslamAbdelRahman, gunnarku Reviewed By: gunnarku Subscribers: leveldb, andrewkr, dhruba Differential Revision: https://reviews.facebook.net/D60963
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/rocksdb-lego-determinator23
1 files changed, 23 insertions, 0 deletions
diff --git a/build_tools/rocksdb-lego-determinator b/build_tools/rocksdb-lego-determinator
index 5fe9826ed..6fc3f0a73 100755
--- a/build_tools/rocksdb-lego-determinator
+++ b/build_tools/rocksdb-lego-determinator
@@ -147,6 +147,26 @@ UNIT_TEST_COMMANDS="[
]"
#
+# RocksDB unit test not under /dev/shm
+#
+UNIT_TEST_NON_SHM_COMMANDS="[
+ {
+ 'name':'Rocksdb Unit Test',
+ 'oncall':'$ONCALL',
+ 'steps': [
+ $CLEANUP_ENV,
+ {
+ 'name':'Build and test RocksDB debug version',
+ 'shell':'$DEBUG make J=1 check',
+ 'user':'root',
+ $PARSER
+ },
+ ],
+ $REPORT
+ }
+]"
+
+#
# RocksDB release build and unit tests
#
RELEASE_BUILD_COMMANDS="[
@@ -724,6 +744,9 @@ case $1 in
unit)
echo $UNIT_TEST_COMMANDS
;;
+ unit_non_shm)
+ echo $UNIT_TEST_NON_SHM_COMMANDS
+ ;;
release)
echo $RELEASE_BUILD_COMMANDS
;;