summaryrefslogtreecommitdiffstats
path: root/src/test/cli/crushtool/check-names.max-id.t
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/cli/crushtool/check-names.max-id.t')
-rw-r--r--src/test/cli/crushtool/check-names.max-id.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/check-names.max-id.t b/src/test/cli/crushtool/check-names.max-id.t
new file mode 100644
index 00000000..ee04fdcc
--- /dev/null
+++ b/src/test/cli/crushtool/check-names.max-id.t
@@ -0,0 +1,8 @@
+ $ crushtool -i "$TESTDIR/simple.template" --add-item 0 1.0 device0 --loc host host0 --loc cluster cluster0 -o check-names.crushmap > /dev/null
+ $ crushtool -i check-names.crushmap --add-item 1 1.0 device1 --loc host host0 --loc cluster cluster0 -o check-names.crushmap > /dev/null
+ $ crushtool -i check-names.crushmap --check 2
+ $ crushtool -i check-names.crushmap --add-item 2 1.0 device2 --loc host host0 --loc cluster cluster0 -o check-names.crushmap > /dev/null
+ $ crushtool -i check-names.crushmap --check 2
+ item id too large: item#2
+ [1]
+ $ crushtool -i check-names.crushmap --check