diff --git a/test/control/break/break_32_1.wasm b/test/control/break/break_32_1.wasm new file mode 100644 index 0000000..ab8b2e9 Binary files /dev/null and b/test/control/break/break_32_1.wasm differ diff --git a/test/control/break/break_32_2.wasm b/test/control/break/break_32_2.wasm new file mode 100644 index 0000000..aa4dc9f Binary files /dev/null and b/test/control/break/break_32_2.wasm differ diff --git a/test/control/break/break_64_1.wasm b/test/control/break/break_64_1.wasm new file mode 100644 index 0000000..b0808a5 Binary files /dev/null and b/test/control/break/break_64_1.wasm differ diff --git a/test/control/break/break_64_2.wasm b/test/control/break/break_64_2.wasm new file mode 100644 index 0000000..daec88d Binary files /dev/null and b/test/control/break/break_64_2.wasm differ diff --git a/test/control/break/continue_32_1.wasm b/test/control/break/continue_32_1.wasm new file mode 100644 index 0000000..02b3b01 Binary files /dev/null and b/test/control/break/continue_32_1.wasm differ diff --git a/test/control/break/continue_32_2.wasm b/test/control/break/continue_32_2.wasm new file mode 100644 index 0000000..d0f229f Binary files /dev/null and b/test/control/break/continue_32_2.wasm differ diff --git a/test/control/break/continue_64_1.wasm b/test/control/break/continue_64_1.wasm new file mode 100644 index 0000000..8c74980 Binary files /dev/null and b/test/control/break/continue_64_1.wasm differ diff --git a/test/control/break/continue_64_2.wasm b/test/control/break/continue_64_2.wasm new file mode 100644 index 0000000..5eeeec0 Binary files /dev/null and b/test/control/break/continue_64_2.wasm differ diff --git a/test/control/if/if_32_1.wasm b/test/control/if/if_32_1.wasm new file mode 100644 index 0000000..2d29471 Binary files /dev/null and b/test/control/if/if_32_1.wasm differ diff --git a/test/control/if/if_32_2.wasm b/test/control/if/if_32_2.wasm new file mode 100644 index 0000000..d82b1a6 Binary files /dev/null and b/test/control/if/if_32_2.wasm differ diff --git a/test/control/if/if_32_3.wasm b/test/control/if/if_32_3.wasm new file mode 100644 index 0000000..fc54794 Binary files /dev/null and b/test/control/if/if_32_3.wasm differ diff --git a/test/control/if/if_32_4.wasm b/test/control/if/if_32_4.wasm new file mode 100644 index 0000000..8133a77 Binary files /dev/null and b/test/control/if/if_32_4.wasm differ diff --git a/test/control/if/if_32_5.wasm b/test/control/if/if_32_5.wasm new file mode 100644 index 0000000..3d946a8 Binary files /dev/null and b/test/control/if/if_32_5.wasm differ diff --git a/test/control/if/if_64_1.wasm b/test/control/if/if_64_1.wasm new file mode 100644 index 0000000..c303b92 Binary files /dev/null and b/test/control/if/if_64_1.wasm differ diff --git a/test/control/if/if_64_2.wasm b/test/control/if/if_64_2.wasm new file mode 100644 index 0000000..d82b1a6 Binary files /dev/null and b/test/control/if/if_64_2.wasm differ diff --git a/test/control/if/if_64_3.wasm b/test/control/if/if_64_3.wasm new file mode 100644 index 0000000..49f731b Binary files /dev/null and b/test/control/if/if_64_3.wasm differ diff --git a/test/control/if/if_64_4.wasm b/test/control/if/if_64_4.wasm new file mode 100644 index 0000000..0335d0d Binary files /dev/null and b/test/control/if/if_64_4.wasm differ diff --git a/test/control/if/if_64_5.wasm b/test/control/if/if_64_5.wasm new file mode 100644 index 0000000..4bb9aca Binary files /dev/null and b/test/control/if/if_64_5.wasm differ diff --git a/test/control/loop/for_32_1.wasm b/test/control/loop/for_32_1.wasm new file mode 100644 index 0000000..d181810 Binary files /dev/null and b/test/control/loop/for_32_1.wasm differ diff --git a/test/control/loop/for_32_2.wasm b/test/control/loop/for_32_2.wasm new file mode 100644 index 0000000..38001fb Binary files /dev/null and b/test/control/loop/for_32_2.wasm differ diff --git a/test/control/loop/for_32_3.wasm b/test/control/loop/for_32_3.wasm new file mode 100644 index 0000000..056f80b Binary files /dev/null and b/test/control/loop/for_32_3.wasm differ diff --git a/test/control/loop/for_32_4.wasm b/test/control/loop/for_32_4.wasm new file mode 100644 index 0000000..27c180c Binary files /dev/null and b/test/control/loop/for_32_4.wasm differ diff --git a/test/control/loop/for_32_5.wasm b/test/control/loop/for_32_5.wasm new file mode 100644 index 0000000..3655a59 Binary files /dev/null and b/test/control/loop/for_32_5.wasm differ diff --git a/test/control/loop/for_32_6.wasm b/test/control/loop/for_32_6.wasm new file mode 100644 index 0000000..570c0fe Binary files /dev/null and b/test/control/loop/for_32_6.wasm differ diff --git a/test/control/loop/for_32_7.wasm b/test/control/loop/for_32_7.wasm new file mode 100644 index 0000000..0dcf488 Binary files /dev/null and b/test/control/loop/for_32_7.wasm differ diff --git a/test/control/loop/for_64_1.wasm b/test/control/loop/for_64_1.wasm new file mode 100644 index 0000000..a9c4b55 Binary files /dev/null and b/test/control/loop/for_64_1.wasm differ diff --git a/test/control/loop/for_64_2.wasm b/test/control/loop/for_64_2.wasm new file mode 100644 index 0000000..0873733 Binary files /dev/null and b/test/control/loop/for_64_2.wasm differ diff --git a/test/control/loop/while_32_1.wasm b/test/control/loop/while_32_1.wasm new file mode 100644 index 0000000..c578b81 Binary files /dev/null and b/test/control/loop/while_32_1.wasm differ diff --git a/test/control/loop/while_64_1.wasm b/test/control/loop/while_64_1.wasm new file mode 100644 index 0000000..493ee9f Binary files /dev/null and b/test/control/loop/while_64_1.wasm differ diff --git a/test/control/switch/switch_case_32_1.wasm b/test/control/switch/switch_case_32_1.wasm new file mode 100644 index 0000000..5922d15 Binary files /dev/null and b/test/control/switch/switch_case_32_1.wasm differ diff --git a/test/control/switch/switch_case_32_2.wasm b/test/control/switch/switch_case_32_2.wasm new file mode 100644 index 0000000..9426ec1 Binary files /dev/null and b/test/control/switch/switch_case_32_2.wasm differ diff --git a/test/control/switch/switch_case_32_3.wasm b/test/control/switch/switch_case_32_3.wasm new file mode 100644 index 0000000..8e14a21 Binary files /dev/null and b/test/control/switch/switch_case_32_3.wasm differ diff --git a/test/control/switch/switch_case_64_1.wasm b/test/control/switch/switch_case_64_1.wasm new file mode 100644 index 0000000..ef6dcdc Binary files /dev/null and b/test/control/switch/switch_case_64_1.wasm differ diff --git a/test/control/switch/switch_case_64_2.wasm b/test/control/switch/switch_case_64_2.wasm new file mode 100644 index 0000000..3091b1a Binary files /dev/null and b/test/control/switch/switch_case_64_2.wasm differ diff --git a/test/control/switch/switch_case_64_3.wasm b/test/control/switch/switch_case_64_3.wasm new file mode 100644 index 0000000..63e5707 Binary files /dev/null and b/test/control/switch/switch_case_64_3.wasm differ diff --git a/test/control/switch/test (23).wasm:Zone.Identifier b/test/control/switch/test (23).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (23).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (24).wasm:Zone.Identifier b/test/control/switch/test (24).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (24).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (25).wasm:Zone.Identifier b/test/control/switch/test (25).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (25).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (26).wasm:Zone.Identifier b/test/control/switch/test (26).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (26).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (27).wasm:Zone.Identifier b/test/control/switch/test (27).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (27).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (28).wasm:Zone.Identifier b/test/control/switch/test (28).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (28).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (29).wasm:Zone.Identifier b/test/control/switch/test (29).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (29).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (30).wasm:Zone.Identifier b/test/control/switch/test (30).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (30).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (31).wasm:Zone.Identifier b/test/control/switch/test (31).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (31).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/control/switch/test (32).wasm:Zone.Identifier b/test/control/switch/test (32).wasm:Zone.Identifier new file mode 100644 index 0000000..a2f5756 --- /dev/null +++ b/test/control/switch/test (32).wasm:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=http://mbebenita.github.io/ +HostUrl=http://mbebenita.github.io/ diff --git a/test/test.py b/test/test.py index 55be69c..db1f3d1 100755 --- a/test/test.py +++ b/test/test.py @@ -122,6 +122,50 @@ def test_with_path(path, expected=None, returncode=0): test_with_path('control/tri_if_001.wasm', '30') test_with_path('control/tri_if_002.wasm', '60') +test_with_path('control/if/if_32_1.wasm', 100) +test_with_path('control/if/if_64_1.wasm', 100) +test_with_path('control/if/if_32_2.wasm', 50) +test_with_path('control/if/if_64_2.wasm', 50) +test_with_path('control/if/if_32_3.wasm', 20) +test_with_path('control/if/if_64_3.wasm', 20) +test_with_path('control/if/if_32_4.wasm', 10) +test_with_path('control/if/if_64_4.wasm', 10) +test_with_path('control/if/if_32_5.wasm', 4294967295) +test_with_path('control/if/if_64_5.wasm', 4294967295) + +test_with_path('control/loop/for_32_1.wasm', 45) +test_with_path('control/loop/for_64_1.wasm', 45) +test_with_path('control/loop/for_32_2.wasm', 450) +# test_with_path('control/loop/for_64_2.wasm', 50) +test_with_path('control/loop/for_32_3.wasm', 120) +test_with_path('control/loop/for_32_4.wasm', 240) +test_with_path('control/loop/for_32_5.wasm', 1225) +test_with_path('control/loop/for_32_6.wasm', 112) +test_with_path('control/loop/for_32_7.wasm', 323401) + +test_with_path('control/loop/while_32_1.wasm', 330) +test_with_path('control/loop/while_64_1.wasm', 330) + +test_with_path('control/break/break_32_1.wasm', 325) +test_with_path('control/break/break_64_1.wasm', 325) +test_with_path('control/break/break_32_2.wasm', 325) +test_with_path('control/break/break_64_2.wasm', 325) +test_with_path('control/break/continue_32_1.wasm', 632) +test_with_path('control/break/continue_64_1.wasm', 632) +test_with_path('control/break/continue_32_2.wasm', 632) +test_with_path('control/break/continue_64_2.wasm', 632) + +test_with_path('control/switch/switch_case_32_1.wasm', 55) +test_with_path('control/switch/switch_case_64_1.wasm', 55) +test_with_path('control/switch/switch_case_32_2.wasm', 100) +test_with_path('control/switch/switch_case_64_2.wasm', 100) +test_with_path('control/switch/switch_case_32_3.wasm', 0) +test_with_path('control/switch/switch_case_64_3.wasm', 0) + +# break continue +# switch case +# jump table + if total_failures > 0: print(f"Total {total_failures} tests failed!") exit(1)