⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-schema.sh

📁 samba最新软件
💻 SH
字号:
#!/bin/shLDB_URL="tdb://schema.ldb"export LDB_URLrm -f schema.ldbecho "LDB_URL: $LDB_URL"echo "Adding schema"$VALGRIND bin/ldbadd $LDBDIR/tests/schema-tests/schema.ldif || exit 1echo "Adding few test elements (no failure expected here)"$VALGRIND bin/ldbadd $LDBDIR/tests/schema-tests/schema-add-test.ldif || exit 1echo "Modifying elements (2 failures expected here)"$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-1.ldif || exit 1$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-2.ldif || exit 1$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-3.ldif || exit 1$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-4.ldifif [ "$?" == "0" ]; then	echo "test failed!"	exit 1fi$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-5.ldifif [ "$?" == "0" ]; then	echo "test failed!"	exit 1fiecho "Showing modified record"$VALGRIND bin/ldbsearch '(cn=Test)'  || exit 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -