]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/test_subman.sh
3 source $
(dirname $0)/detect-build-env-vars.sh
6 trap "rm -fr $TMP" EXIT
10 cat > $TMP/ceph-disk
<<EOF
11 echo '[{"partition":[{"type":"data","path":"/dev/foo/bar"}]}]'
13 chmod +x
$TMP/ceph-disk
17 echo $((2 * 1024 * 1024 * 1024))
21 cat > $TMP/expected
<<EOF
23 "band.storage.usage": 2
26 export CEPH_FACTS_FILE
=$TMP/facts
27 $CEPH_ROOT/src
/script
/subman
28 diff -u $CEPH_FACTS_FILE $TMP/expected