From 57b3a87731050cc3452016dc8cd2d130d1bdbbeb Mon Sep 17 00:00:00 2001 From: krad Date: Mon, 31 Aug 2015 12:37:26 -0700 Subject: [PATCH] Adding sandcastle determinator for RocksDB Summary: This fuels commands to be executed for different sandcastle jobs. This is a nice way to separate RocksDB specific commands from Sandcastle specific job definition. Test Plan: None. Will be tested when we add Sandcastle job. Reviewers: igor, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D45741 --- build_tools/rocksdb-lego-determinator | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 build_tools/rocksdb-lego-determinator diff --git a/build_tools/rocksdb-lego-determinator b/build_tools/rocksdb-lego-determinator new file mode 100755 index 000000000..28e559176 --- /dev/null +++ b/build_tools/rocksdb-lego-determinator @@ -0,0 +1,30 @@ +#!/bin/bash +# This script is executed by Sandcastle +# to determine next steps to run + +UNIT_TEST_COMMANDS="[ + { + 'name':'Rocksdb Unit Test', + 'steps': [ + { + 'name':'Build RocksDB', + 'shell':'ROCKSDB_FBCODE_BUILD_WITH_481=1 make clean all', + 'user':'root' + }, + { + 'name':'Test RocksDB', + 'shell':'make J=1 check', + 'user':'root' + } + ], + } +]" + +case $1 in + unit) + echo $UNIT_TEST_COMMANDS + ;; + *) + echo $UNIT_TEST_COMMANDS + ;; +esac