summaryrefslogtreecommitdiffstats
path: root/src/test/cli/crushtool/bad-mappings.t
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/cli/crushtool/bad-mappings.t')
-rw-r--r--src/test/cli/crushtool/bad-mappings.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/bad-mappings.t b/src/test/cli/crushtool/bad-mappings.t
new file mode 100644
index 000000000..dbdcd576b
--- /dev/null
+++ b/src/test/cli/crushtool/bad-mappings.t
@@ -0,0 +1,6 @@
+ $ crushtool -c "$TESTDIR/bad-mappings.crushmap.txt" -o "$TESTDIR/bad-mappings.crushmap"
+ $ crushtool -i "$TESTDIR/bad-mappings.crushmap" --test --show-bad-mappings --rule 0 --x 1 --num-rep 10
+ bad mapping rule 0 x 1 num_rep 10 result [4,0,2,3,1]
+ $ crushtool -i "$TESTDIR/bad-mappings.crushmap" --test --show-bad-mappings --rule 1 --x 1 --num-rep 10
+ bad mapping rule 1 x 1 num_rep 10 result [4,0,2,1,3,2147483647,2147483647,2147483647,2147483647,2147483647]
+ $ rm -f "$TESTDIR/bad-mappings.crushmap"