udpate testing section to add -e parameter for unit test and two packages for centos 8 building section by charles

This commit is contained in:
Feng Chao 2025-01-10 11:46:29 +08:00
parent c7b436fb62
commit e9945c0969
3 changed files with 6 additions and 5 deletions

View File

@ -77,7 +77,7 @@ sudo apt-get install -y gcc cmake build-essential git libjansson-dev libsnappy-d
sudo yum update sudo yum update
yum install -y epel-release gcc gcc-c++ make cmake git perl dnf-plugins-core yum install -y epel-release gcc gcc-c++ make cmake git perl dnf-plugins-core
yum config-manager --set-enabled powertools yum config-manager --set-enabled powertools
yum install -y zlib-static xz-devel snappy-devel jansson-devel pkgconfig yum install -y zlib-static xz-devel snappy-devel jansson-devel pkgconfig libatomic-static libstdc++-static
``` ```
### For Fedora or Rocky Linux ### For Fedora or Rocky Linux
@ -342,7 +342,8 @@ bash setup-lcov.sh -v 1.16 && ./run_local_coverage.sh -b main -c task
# on main branch and run cases in longtimeruning_cases.task # on main branch and run cases in longtimeruning_cases.task
# for more infomation about options please refer to ./run_local_coverage.sh -h # for more infomation about options please refer to ./run_local_coverage.sh -h
``` ```
Please note that the -b and -i options will recompile TDengine with the -DCOVER=true option, which may take a amount of time. > [!NOTE]
> Please note that the -b and -i options will recompile TDengine with the -DCOVER=true option, which may take a amount of time.
# 11. Contributing # 11. Contributing

View File

@ -27,7 +27,7 @@ Unit test script is the smallest testable part and developed for some function,
the script with below command: the script with below command:
```bash ```bash
cd tests/unit-test/ cd tests/unit-test/ -e 0
bash test.sh bash test.sh
``` ```

View File

@ -7,10 +7,10 @@ function usage() {
} }
ent=1 ent=1
while getopts "eh" opt; do while getopts "e:h" opt; do
case $opt in case $opt in
e) e)
ent=1 ent="$OPTARG"
;; ;;
h) h)
usage usage