summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/442-checker-constant-folding/build17
-rwxr-xr-xtest/etc/default-build5
2 files changed, 22 insertions, 0 deletions
diff --git a/test/442-checker-constant-folding/build b/test/442-checker-constant-folding/build
new file mode 100644
index 0000000000..1d86fa551b
--- /dev/null
+++ b/test/442-checker-constant-folding/build
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# Copyright 2017 The Android Open Source Project
+#
+# 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.
+
+./default-build "$@" --jack-option "-D jack.optimization.use-def-cst-simplifier=false"
diff --git a/test/etc/default-build b/test/etc/default-build
index e9e388646a..e646aba4ca 100755
--- a/test/etc/default-build
+++ b/test/etc/default-build
@@ -63,6 +63,7 @@ fi
DX_FLAGS=""
SKIP_DX_MERGER="false"
EXPERIMENTAL=""
+JACK_ARGS=""
# The key for default arguments if no experimental things are enabled.
DEFAULT_EXPERIMENT="no-experiment"
@@ -118,6 +119,10 @@ while true; do
DEFAULT_EXPERIMENT=""
EXPERIMENTAL="${EXPERIMENTAL} $1"
shift
+ elif [ "x$1" = "x--jack-option" ]; then
+ shift
+ JACK_ARGS="${JACK_ARGS} $1"
+ shift
elif expr "x$1" : "x--" >/dev/null 2>&1; then
echo "unknown $0 option: $1" 1>&2
exit 1