test007.ksh
来自「b树实现源码,linux和unix下运行,速度快,极好用」· KSH 代码 · 共 53 行
KSH
53 行
#!/bin/sh# TestCase:# check pages used(normal and merged) and chunks used for user database# for i = 1 to 100# create table t1 with two fields and index on first field# create index idx1 on t1 (f1)# drop table t1# end for# check pages used(normal and merged) and chunks used for user database#Run this test only under csql/test or on this directory.#Otherwise, it may failEXECUTABLE=${PWD}/system/Allocator/createREL_PATH=.if [ -s "$EXECUTABLE" ]then REL_PATH=${PWD}/system/Allocatorfiecho "Case 1: -d option with no table"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -d if [ $? -ne 0 ]then exit 1;fiecho "Tables and Indexes are created"echo "Case 2: -d option with 1 table"count=100while [ ${count} -gt 0 ]do count=`expr ${count} - 1` ${REL_PATH}/create if [ $? -ne 0 ] then echo "create table failed" exit 100; fi ${REL_PATH}/drop if [ $? -ne 0 ] then echo "drop table failed" exit 100; fidone$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -d if [ $? -ne 0 ]then exit 1;fiexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?