Skip to content

Commit

Permalink
tests(*) rename TestWasm.pm to TestWasmX.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Mar 6, 2024
1 parent ac82ea1 commit 7548bfb
Show file tree
Hide file tree
Showing 139 changed files with 173 additions and 173 deletions.
2 changes: 1 addition & 1 deletion t/01-wasm/001-wasm_block.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/002-shm_queue_sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

workers(2);
master_on();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/003-shm_kv_sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

workers(2);
master_on();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/004-runtime_blocks.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(5);
run_tests();
Expand Down
6 changes: 3 additions & 3 deletions t/01-wasm/directives/001-module_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

no_shuffle();

Expand All @@ -17,7 +17,7 @@ __DATA__
--- main_config eval
qq{
wasm {
module ngx-rust-tests $t::TestWasm::crates/ngx_rust_tests.wasm;
module ngx-rust-tests $t::TestWasmX::crates/ngx_rust_tests.wasm;
}
}
--- error_log eval
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/directives/002-compiler_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/directives/003-shm_directives.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(5);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/directives/004-resolver_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/directives/005-socket_directives.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/directives/006-backtraces_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $n = 30;
our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

plan_tests($n);
run_tests();
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/directives/007-flag_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;
our $validFlagsConf = "
wasm {
wasmtime {
Expand Down
6 changes: 3 additions & 3 deletions t/01-wasm/directives/008-flag_directive_wasmtime.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $osname = $t::TestWasm::osname;
our $nginxV = $t::TestWasmX::nginxV;
our $osname = $t::TestWasmX::osname;

add_cleanup_handler(sub {
my @jit_dumps = glob("$::pwd/jit-*.dump");
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/directives/009-flag_directive_wasmer.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

plan_tests(4);
run_tests();
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/directives/010-flag_directive_v8.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

plan_tests(4);
run_tests();
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/hfuncs/001-log.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

add_block_preprocessor(sub {
my $block = shift;
my $main_config = <<_EOC_;
wasm {
module ngx_rust_tests $t::TestWasm::crates/ngx_rust_tests.wasm;
module ngx_rust_tests $t::TestWasmX::crates/ngx_rust_tests.wasm;
}
_EOC_

Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/hfuncs/wasi/000-non_host_wasi.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

our $nginxV = $t::TestWasm::nginxV;
our $nginxV = $t::TestWasmX::nginxV;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/001-random_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/hfuncs/wasi/002-environ_sizes_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand All @@ -16,7 +16,7 @@ qq{
env NGX_WASI_ENV=1;

wasm {
module wasi_host_tests $t::TestWasm::crates/wasi_host_tests.wasm;
module wasi_host_tests $t::TestWasmX::crates/wasi_host_tests.wasm;
}
}
--- config
Expand Down
4 changes: 2 additions & 2 deletions t/01-wasm/hfuncs/wasi/003-environ_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand All @@ -16,7 +16,7 @@ qq{
env NGX_WASI_ENV=1;

wasm {
module wasi_host_tests $t::TestWasm::crates/wasi_host_tests.wasm;
module wasi_host_tests $t::TestWasmX::crates/wasi_host_tests.wasm;
}
}
--- config
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/004-clock_time_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/005-args_sizes_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/006-args_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/007-fd_write.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/008-fd_close.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/009-fd_fdstat_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/010-fd_prestat_get.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/011-fd_prestat_dir_name.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/012-fd_read.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/013-fd_seek.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/01-wasm/hfuncs/wasi/014-path_open.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(3);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/02-http/001-sanity.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/02-http/002-wasm_oob.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/02-http/003-produced_response_headers.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

add_block_preprocessor(sub {
my $block = shift;
Expand Down
2 changes: 1 addition & 1 deletion t/02-http/100-filters_coverage.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

skip_no_debug();

Expand Down
2 changes: 1 addition & 1 deletion t/02-http/directives/001-wasm_call_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
2 changes: 1 addition & 1 deletion t/02-http/directives/002-resolver_add_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib '.';
use t::TestWasm;
use t::TestWasmX;

plan_tests(4);
run_tests();
Expand Down
Loading

0 comments on commit 7548bfb

Please sign in to comment.