TDengine/tests/develop-test/3-connectors/php/test.sh
Yurun 68f9c29f89
Add php connector (#10891)
* Add php connector

* Add submodule

* Update .gitmodules

* Add test
2022-04-06 12:51:49 +08:00

24 lines
554 B
Bash
Executable file

#!/bin/bash
function stopTaosd {
echo "Stop taosd"
sudo systemctl stop taosd || echo 'no sudo or systemctl or stop fail'
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
while [ -n "$PID" ]
do
pkill -TERM -x taosd
sleep 1
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
done
}
stopTaosd
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
nohup taosd -c /etc/taos/ > /dev/null 2>&1 &
sleep 10
cd ../../
WKC=`pwd`
git clone https://github.com/Yurunsoft/php-tdengine.git
cd php-tdengine
./make.sh
./run-tests.sh