fix: add test scripts
This commit is contained in:
parent
d3af2ff741
commit
7baf97d70b
|
@ -11,6 +11,6 @@ target_link_libraries(
|
||||||
PRIVATE os util transport qcom nodes
|
PRIVATE os util transport qcom nodes
|
||||||
)
|
)
|
||||||
|
|
||||||
# if(${BUILD_TEST})
|
if(${BUILD_TEST})
|
||||||
# ADD_SUBDIRECTORY(test)
|
ADD_SUBDIRECTORY(test)
|
||||||
# endif(${BUILD_TEST})
|
endif(${BUILD_TEST})
|
||||||
|
|
|
@ -162,7 +162,7 @@ void ctgTestInitLogFile() {
|
||||||
(void)ctgdEnableDebug("cache", true);
|
(void)ctgdEnableDebug("cache", true);
|
||||||
(void)ctgdEnableDebug("lock", true);
|
(void)ctgdEnableDebug("lock", true);
|
||||||
|
|
||||||
if (taosInitLog(defaultLogFileNamePrefix, maxLogFileNum) < 0) {
|
if (taosInitLog(defaultLogFileNamePrefix, 1, false) < 0) {
|
||||||
(void)printf("failed to open log file in directory:%s\n", tsLogDir);
|
(void)printf("failed to open log file in directory:%s\n", tsLogDir);
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
make clean
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
pgrep taosd || taosd >> /dev/null 2>&1 &
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
./dbTableRoute localhost
|
||||||
|
./batchprepare localhost
|
||||||
|
./stmt-crash localhost
|
||||||
|
./insertSameTs localhost
|
||||||
|
./passwdTest localhost
|
||||||
|
./whiteListTest localhost
|
||||||
|
./tmqViewTest
|
||||||
|
|
Loading…
Reference in New Issue