diff options
author | 2018-03-01 14:38:11 +0800 | |
---|---|---|
committer | 2018-03-01 14:38:11 +0800 | |
commit | 7da45d65be36d36b880cc55c5036e96c24b53f00 (patch) | |
tree | d4f944eb4f8f8de50a9a7584ffa408dc3a3185b2 /src/ceph/qa/workunits/cephtool/test_daemon.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/workunits/cephtool/test_daemon.sh')
-rwxr-xr-x | src/ceph/qa/workunits/cephtool/test_daemon.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/ceph/qa/workunits/cephtool/test_daemon.sh b/src/ceph/qa/workunits/cephtool/test_daemon.sh deleted file mode 100755 index 413f708..0000000 --- a/src/ceph/qa/workunits/cephtool/test_daemon.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -x - -set -e - -expect_false() -{ - set -x - if "$@"; then return 1; else return 0; fi -} - -echo note: assuming mon.a is on the current host - -# can set to 'sudo ./ceph' to execute tests from current dir for development -CEPH=${CEPH:-'sudo ceph'} - -${CEPH} daemon mon.a version | grep version - -# get debug_ms setting and strip it, painfully for reuse -old_ms=$(${CEPH} daemon mon.a config get debug_ms | \ - grep debug_ms | sed -e 's/.*: //' -e 's/["\}\\]//g') -${CEPH} daemon mon.a config set debug_ms 13 -new_ms=$(${CEPH} daemon mon.a config get debug_ms | \ - grep debug_ms | sed -e 's/.*: //' -e 's/["\}\\]//g') -[ "$new_ms" = "13/13" ] -${CEPH} daemon mon.a config set debug_ms $old_ms -new_ms=$(${CEPH} daemon mon.a config get debug_ms | \ - grep debug_ms | sed -e 's/.*: //' -e 's/["\}\\]//g') -[ "$new_ms" = "$old_ms" ] - -# unregistered/non-existent command -expect_false ${CEPH} daemon mon.a bogus_command_blah foo - -set +e -OUTPUT=$(${CEPH} -c /not/a/ceph.conf daemon mon.a help 2>&1) -# look for EINVAL -if [ $? != 22 ] ; then exit 1; fi -if ! echo "$OUTPUT" | grep -q '.*open.*/not/a/ceph.conf'; then - echo "didn't find expected error in bad conf search" - exit 1 -fi -set -e - -echo OK |