From 87ae341cae5d09f4a46f8d25257396ccbf716ce7 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 10 Jun 2024 18:24:11 -0400 Subject: [PATCH] [js-api] Move JS API legacy tests into test/legacy (#305) This moves legacy JS API tests, which use the old `try` instruction, into `test/legacy/js-api`. This also moves the legacy core tests from `test/legacy` to `test/legacy/core`. --- test/legacy/exceptions/{ => core}/rethrow.wast | 0 test/legacy/{ => exceptions/core}/run.py | 2 +- test/legacy/exceptions/{ => core}/throw.wast | 0 test/legacy/exceptions/{ => core}/try_catch.wast | 0 test/legacy/exceptions/{ => core}/try_delegate.wast | 0 .../exceptions/js-api}/basic.tentative.any.js | 0 .../exceptions/js-api}/identity.tentative.any.js | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename test/legacy/exceptions/{ => core}/rethrow.wast (100%) rename test/legacy/{ => exceptions/core}/run.py (98%) rename test/legacy/exceptions/{ => core}/throw.wast (100%) rename test/legacy/exceptions/{ => core}/try_catch.wast (100%) rename test/legacy/exceptions/{ => core}/try_delegate.wast (100%) rename test/{js-api/exception => legacy/exceptions/js-api}/basic.tentative.any.js (100%) rename test/{js-api/exception => legacy/exceptions/js-api}/identity.tentative.any.js (100%) diff --git a/test/legacy/exceptions/rethrow.wast b/test/legacy/exceptions/core/rethrow.wast similarity index 100% rename from test/legacy/exceptions/rethrow.wast rename to test/legacy/exceptions/core/rethrow.wast diff --git a/test/legacy/run.py b/test/legacy/exceptions/core/run.py similarity index 98% rename from test/legacy/run.py rename to test/legacy/exceptions/core/run.py index f727aeef3..b2f6c314b 100755 --- a/test/legacy/run.py +++ b/test/legacy/exceptions/core/run.py @@ -23,7 +23,7 @@ arguments = parser.parse_args() sys.argv = sys.argv[:1] -exceptions_test_files = glob.glob(os.path.join(inputDir, "exceptions", "*.wast")) +exceptions_test_files = glob.glob(os.path.join(inputDir, "*.wast")) wasmCommand = arguments.wasm jsCommand = arguments.js diff --git a/test/legacy/exceptions/throw.wast b/test/legacy/exceptions/core/throw.wast similarity index 100% rename from test/legacy/exceptions/throw.wast rename to test/legacy/exceptions/core/throw.wast diff --git a/test/legacy/exceptions/try_catch.wast b/test/legacy/exceptions/core/try_catch.wast similarity index 100% rename from test/legacy/exceptions/try_catch.wast rename to test/legacy/exceptions/core/try_catch.wast diff --git a/test/legacy/exceptions/try_delegate.wast b/test/legacy/exceptions/core/try_delegate.wast similarity index 100% rename from test/legacy/exceptions/try_delegate.wast rename to test/legacy/exceptions/core/try_delegate.wast diff --git a/test/js-api/exception/basic.tentative.any.js b/test/legacy/exceptions/js-api/basic.tentative.any.js similarity index 100% rename from test/js-api/exception/basic.tentative.any.js rename to test/legacy/exceptions/js-api/basic.tentative.any.js diff --git a/test/js-api/exception/identity.tentative.any.js b/test/legacy/exceptions/js-api/identity.tentative.any.js similarity index 100% rename from test/js-api/exception/identity.tentative.any.js rename to test/legacy/exceptions/js-api/identity.tentative.any.js