aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpovirk <cpovirk@google.com>2020-03-02 11:17:23 -0800
committerNick Glorioso <nick@nickglorioso.com>2020-03-04 10:18:22 -0500
commitc57286e418941ac2efdcf4199a4d2e4e82ad2604 (patch)
treec857a773fb8c6c76611e8632f9084b60ae21fa7c
parentecb6032d6398317da0539ce0ac7287989ea7b0e3 (diff)
downloadauto-c57286e418941ac2efdcf4199a4d2e4e82ad2604.tar.gz
Omit java7_compat_test.sh from open-source codebase.
It doesn't work there. Apparently ronshapiro@ noticed, as his in-progress Copybara config omits the file. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=298399027
-rwxr-xr-xfactory/src/it/functional/java7_compat_test.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/factory/src/it/functional/java7_compat_test.sh b/factory/src/it/functional/java7_compat_test.sh
deleted file mode 100755
index 4089cf1e..00000000
--- a/factory/src/it/functional/java7_compat_test.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-# Test that the code generated by AutoFactory is compatible with Java 7.
-# The AutoFactory processor itself runs on Java 8, but the code it
-# generates is supposed to be able to run on Java 7.
-#
-# Users can achieve that by compiling like this:
-# javac --release 7
-#
-# So this test does the same thing, using a large functional test as input.
-# If that test compiles, it is a good sign that user code will compile and run.
-
-# Exit if any command fails.
-set -e
-
-# Arguments are
-# * the path to the JDK
-# * the fully-qualified name of the test class
-# * the path to each source file.
-
-JAVABASE="$1"
-shift
-
-TEST_CLASS="$1"
-if [ -z "${TEST_CLASS}" ]; then
- echo "Usage: $0 JAVABASE TEST_NAME" >&2
- exit 1
-fi
-shift
-
-MY_DIR=$(dirname "${TEST_BINARY}")
-SOURCE_FILES=$(for f in "$@"; do echo "${MY_DIR}/${f}"; done)
-
-JAVAC="${JAVABASE}"/bin/javac
-CLASS_PATH="${MY_DIR}"/java7_compat_test_java_deps.jar
-PROCESSOR_PATH=\
-third_party/java/auto/auto_factory_ide.jar:\
-third_party/java/dagger/dagger_components_ide.jar
-
-"${JAVAC}" -d "${TEST_TMPDIR}" \
- -encoding utf8 --release 7 \
- -classpath "${CLASS_PATH}" \
- -processorpath "${PROCESSOR_PATH}" \
- ${SOURCE_FILES}