From 56c5ff78310ad956e70bf1a00a64c72ee81d18bd Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Mon, 25 Mar 2019 18:11:45 -0700 Subject: More validation tests and fixes for SIMD (#1964) Moves the feature validation unit test file to a new directory, 'unit', and adds new tests for SIMD and sign-ext. Adds validation for v128 globals and v128.const. --- test/crash/test_features.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/crash/test_features.py (limited to 'test/crash/test_features.py') diff --git a/test/crash/test_features.py b/test/crash/test_features.py deleted file mode 100644 index 87521d4c0..000000000 --- a/test/crash/test_features.py +++ /dev/null @@ -1,18 +0,0 @@ -import unittest -from scripts.test.shared import WASM_OPT, run_process - - -class FeatureValidationTest(unittest.TestCase): - def test_simd_type(self): - module = """ - (module - (func $foo (param $0 v128) (result v128) - (local.get $0) - ) - ) - """ - p = run_process(WASM_OPT + ['--mvp-features', '--print'], - input=module, check=False, capture_output=True) - self.assertIn("all used types should be allowed", p.stderr) - self.assertIn("Fatal: error in validating input", p.stderr) - self.assertNotEqual(p.returncode, 0) -- cgit v1.2.3