Skip to content

Commit

Permalink
ngx_debug_conn: fixed test case failure (#1848)
Browse files Browse the repository at this point in the history
* ci.yml: added debug_conn/debug_timer/stat_slab test cases

* ngx_debug_conn: define ngx_pool_size macro

* ci-arm64.yml: enabled the ngx_debug_conn module for building

* ngx_debug_conn: fixed test case failure of not find resty.core library
  • Loading branch information
chobits authored Aug 8, 2023
1 parent 4cbb0cf commit 8e9a33e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
--add-module=./modules/ngx_backtrace_module \
--add-module=./modules/ngx_debug_pool \
--add-module=./modules/ngx_debug_timer \
--add-module=./modules/ngx_debug_conn \
--add-module=./modules/ngx_http_concat_module \
--add-module=./modules/ngx_http_footer_filter_module \
--add-module=./modules/ngx_http_lua_module \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
--add-module=./modules/ngx_backtrace_module \
--add-module=./modules/ngx_debug_pool \
--add-module=./modules/ngx_debug_timer \
--add-module=./modules/ngx_debug_conn \
--add-module=./modules/ngx_http_concat_module \
--add-module=./modules/ngx_http_footer_filter_module \
--add-module=./modules/ngx_http_lua_module \
Expand Down Expand Up @@ -107,6 +108,9 @@ jobs:
sudo cpanm --notest Net::DNS::Nameserver > build.log 2>&1 || (cat build.log && exit 1)
prove -v -Inginx-tests/lib tengine-tests/
prove -v -Inginx-tests/lib ../../modules/ngx_http_proxy_connect_module/t
prove -v -Inginx-tests/lib ../../modules/ngx_debug_timer/t
prove -v -Inginx-tests/lib ../../modules/ngx_debug_conn/t
prove -v -Inginx-tests/lib ../../modules/ngx_slab_stat/t
- name: tengine test cases using test-nginx lib
working-directory: tests/test-nginx
run: |
Expand Down
2 changes: 1 addition & 1 deletion modules/ngx_debug_conn/ngx_http_debug_conn_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


#if (NGX_DEBUG_POOL)
extern size_t ngx_pool_size(ngx_pool_t *);
#define ngx_pool_size(p) ((p)->size)
#else
#define ngx_pool_size(p) ((size_t) 0)
#endif
Expand Down
1 change: 1 addition & 0 deletions modules/ngx_debug_conn/t/test.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ events {
}
http {
%%TEST_GLOBALS_HTTP%%
server {
listen 127.0.0.1:8080;
Expand Down
1 change: 1 addition & 0 deletions modules/ngx_debug_pool/t/test.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ events {
}
http {
%%TEST_GLOBALS_HTTP%%
server {
listen 127.0.0.1:8080;
Expand Down
1 change: 1 addition & 0 deletions modules/ngx_debug_timer/t/test.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ events {
}
http {
%%TEST_GLOBALS_HTTP%%
server {
listen 127.0.0.1:8080;
Expand Down
1 change: 1 addition & 0 deletions modules/ngx_slab_stat/t/test.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ events {
}
http {
%%TEST_GLOBALS_HTTP%%
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
Expand Down

0 comments on commit 8e9a33e

Please sign in to comment.