You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/03 14:59:42 UTC
[GitHub] [apisix] kwanhur commented on issue #5861: request help: split the full CI into two parts (running t/plugin and the other)
kwanhur commented on issue #5861:
URL: https://github.com/apache/apisix/issues/5861#issuecomment-1029076504
solution example:
```shell
# enable plugin test case or not
plugin := $ENV_PROVE_PLUGIN
# if on then all the cases into /tmp/test.t, otherwise exclude directory t/plugin/
if [[ "$plugin" == "off" ]]; then
find t/**/*.t ! -wholename '*/plugin/*' -type f | tee /tmp/test.t > /dev/null
else
find t/**/*.t -wholename '*/plugin/*' -type f | tee /tmp/test.t > /dev/null
fi
# read case from "STDIN", tests in file /tmp/test.t
FLUSH_ETCD=1 prove -Itest-nginx/lib -I./ -r - < /tmp/test.t | tee /tmp/test.result
```
enable plugin test case or not with environment variable `ENV_PROVE_PLUGIN`, default `on`.
disable it with `export ENV_PROVE_PLUGIN=off`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org