diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f4769234..03d4ab11 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -127,7 +127,7 @@ jobs: container: ghcr.io/neugates/build:x86_64-main strategy: matrix: - plugin: [core, modbus, mqtt, metrics] + plugin: [core, ekuiper, modbus, mqtt, metrics] steps: - uses: actions/checkout@v4 @@ -138,9 +138,8 @@ jobs: run: | if [ "${{ matrix.plugin }}" = "mqtt" ]; then sudo apt-get install -y mosquitto - pip install -U gmqtt fi - pip install -U pytest requests prometheus-client + pip install -U pytest requests prometheus-client gmqtt pynng - name: compile run: | @@ -153,9 +152,12 @@ jobs: run: | if [ "${{ matrix.plugin }}" = "core" ]; then pytest -s -v tests/ft \ + --ignore=tests/ft/app/test_ekuiper.py \ --ignore=tests/ft/app/test_mqtt.py \ --ignore=tests/ft/driver/test_modbus.py \ --ignore=tests/ft/metrics/test_metrics.py + elif [ "${{ matrix.plugin }}" = "ekuiper" ]; then + pytest -s -v tests/ft/app/"test_ekuiper.py" elif [ "${{ matrix.plugin }}" = "modbus" ]; then pytest -s -v tests/ft/driver/"test_modbus.py" elif [ "${{ matrix.plugin }}" = "mqtt" ]; then diff --git a/create_cov_report.sh b/create_cov_report.sh index 806d3949..dcb07e71 100755 --- a/create_cov_report.sh +++ b/create_cov_report.sh @@ -11,6 +11,10 @@ function gen_trace () { } case $1 in + (ekuiper) + lcov -c -d build/plugins/ekuiper/CMakeFiles/plugin-ekuiper.dir -o cov_report/cov-ekuiper.info + cd cov_report + gen_trace -a cov-ekuiper.info -o cov-ekuiper.info;; (modbus) lcov -c -d build/plugins/modbus/CMakeFiles/plugin-modbus-rtu.dir -o cov_report/cov-modbus-rtu.info lcov -c -d build/plugins/modbus/CMakeFiles/plugin-modbus-tcp.dir -o cov_report/cov-modbus-tcp.info