diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
---|---|---|
committer | Qiaowei Ren <qiaowei.ren@intel.com> | 2018-03-01 14:38:11 +0800 |
commit | 7da45d65be36d36b880cc55c5036e96c24b53f00 (patch) | |
tree | d4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/run-standalone.sh | |
parent | 691462d09d0987b47e112d6ee8740375df3c51b2 (diff) |
remove ceph code
This patch removes initial ceph code, due to license issue.
Change-Id: I092d44f601cdf34aed92300fe13214925563081c
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'src/ceph/qa/run-standalone.sh')
-rwxr-xr-x | src/ceph/qa/run-standalone.sh | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/src/ceph/qa/run-standalone.sh b/src/ceph/qa/run-standalone.sh deleted file mode 100755 index 3be6121..0000000 --- a/src/ceph/qa/run-standalone.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/env bash -set -e - -if [ ! -e Makefile -o ! -d bin ]; then - echo 'run this from the build dir' - exit 1 -fi - -if [ ! -d /tmp/ceph-disk-virtualenv -o ! -d /tmp/ceph-detect-init-virtualenv ]; then - echo '/tmp/*-virtualenv directories not built. Please run "make check" first.' - exit 1 -fi - -if [ `uname` = FreeBSD ]; then - # otherwise module prettytable will not be found - export PYTHONPATH=/usr/local/lib/python2.7/site-packages - exec_mode=+111 - KERNCORE="kern.corefile" - COREPATTERN="core.%N.%P" -else - export PYTHONPATH=/usr/lib/python2.7/dist-packages - exec_mode=/111 - KERNCORE="kernel.core_pattern" - COREPATTERN="core.%e.%p.%t" -fi - -function finish() { - if [ -n "$precore" ]; then - sudo sysctl -w ${KERNCORE}=${precore} - fi - exit 0 -} - -trap finish TERM HUP INT - -PATH=$(pwd)/bin:$PATH - -# TODO: Use getops -dryrun=false -if [[ "$1" = "--dry-run" ]]; then - dryrun=true - shift -fi - -all=false -if [ "$1" = "" ]; then - all=true -fi - -select=("$@") - -location="../qa/standalone" - -count=0 -errors=0 -userargs="" -precore="$(sysctl -n $KERNCORE)" -# If corepattern already set, avoid having to use sudo -if [ "$precore" = "$COREPATTERN" ]; then - precore="" -else - sudo sysctl -w ${KERNCORE}=${COREPATTERN} -fi -ulimit -c unlimited -for f in $(cd $location ; find . -perm $exec_mode -type f) -do - f=$(echo $f | sed 's/\.\///') - # This is tested with misc/test-ceph-helpers.sh - if [[ "$f" = "ceph-helpers.sh" ]]; then - continue - fi - if [[ "$all" = "false" ]]; then - found=false - for c in "${!select[@]}" - do - # Get command and any arguments of subset of tests ro tun - allargs="${select[$c]}" - arg1=$(echo "$allargs" | cut --delimiter " " --field 1) - # Get user args for this selection for use below - userargs="$(echo $allargs | cut -s --delimiter " " --field 2-)" - if [[ "$arg1" = $(basename $f) ]]; then - found=true - break - fi - if [[ "$arg1" = "$f" ]]; then - found=true - break - fi - done - if [[ "$found" = "false" ]]; then - continue - fi - fi - # Don't run test-failure.sh unless explicitly specified - if [ "$all" = "true" -a "$f" = "special/test-failure.sh" ]; then - continue - fi - - cmd="$location/$f $userargs" - count=$(expr $count + 1) - echo "--- $cmd ---" - if [[ "$dryrun" != "true" ]]; then - if ! PATH=$PATH:bin \ - CEPH_ROOT=.. \ - CEPH_LIB=lib \ - LOCALRUN=yes \ - $cmd ; then - echo "$f .............. FAILED" - errors=$(expr $errors + 1) - fi - fi -done -if [ -n "$precore" ]; then - sudo sysctl -w ${KERNCORE}=${precore} -fi - -if [ "$errors" != "0" ]; then - echo "$errors TESTS FAILED, $count TOTAL TESTS" - exit 1 -fi - -echo "ALL $count TESTS PASSED" -exit 0 |