summaryrefslogtreecommitdiff
path: root/test/utils.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-03-21 15:01:05 -0700
committerBen Smith <binji@chromium.org>2016-03-21 15:25:44 -0700
commit5954eeb27b2ee7d3e12329a4cbe37ec8fb89b5a6 (patch)
tree7620a1d3939c67b1269b7acb687b8fad094153eb /test/utils.py
parent1a09f8b2899787f1e2c4606fce4cd1379d032966 (diff)
downloadwabt-5954eeb27b2ee7d3e12329a4cbe37ec8fb89b5a6.tar.gz
wabt-5954eeb27b2ee7d3e12329a4cbe37ec8fb89b5a6.tar.bz2
wabt-5954eeb27b2ee7d3e12329a4cbe37ec8fb89b5a6.zip
nicer overriding of various executables w/ testing
* run-tests.py now takes a `--d8-executable` flag * Added a `TOOL` directive to tests to reduce boilerplate * Change all tests to use the new `TOOL` directive * Factor out executable searching with fallback to find_exe.py This fixes issue #43.
Diffstat (limited to 'test/utils.py')
-rw-r--r--test/utils.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/utils.py b/test/utils.py
new file mode 100644
index 00000000..47aa30ba
--- /dev/null
+++ b/test/utils.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+#
+# Copyright 2016 WebAssembly Community Group participants
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class Error(Exception):
+ pass