Test that
//src/main/java/com/google/devtools/build/lib:gen_buildencyclopedia
works in a more roundabout way.

The previous approach requires the transitive closure of
gen_buildencyclopedia to be in the generated tree, which is
problematic for BUILD refactoring, as src/main/native/ isn't shipped
into this tree.

--
MOS_MIGRATED_REVID=108804299
diff --git a/src/test/shell/bazel/BUILD b/src/test/shell/bazel/BUILD
index 9e121ce..a041d34 100644
--- a/src/test/shell/bazel/BUILD
+++ b/src/test/shell/bazel/BUILD
@@ -143,10 +143,7 @@
     name = "bazel_docgen_test",
     size = "large",
     srcs = ["bazel_docgen_test.sh"],
-    data = [
-        ":doc-srcs",
-        ":test-deps",
-    ],
+    data = ["//src/main/java/com/google/devtools/build/lib:gen_buildencyclopedia"],
 )
 
 sh_test(
diff --git a/src/test/shell/bazel/bazel_docgen_test.sh b/src/test/shell/bazel/bazel_docgen_test.sh
index c04ec5e..e17a059 100755
--- a/src/test/shell/bazel/bazel_docgen_test.sh
+++ b/src/test/shell/bazel/bazel_docgen_test.sh
@@ -17,14 +17,6 @@
 # Test the Bazel documentation generation
 #
 
-# Load test environment
-source $(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/test-setup.sh \
-  || { echo "test-setup.sh not found!" >&2; exit 1; }
+# if we get to run this script, the prerequisite is there, and we're happy.
 
-function test_docgen() {
-  unzip -q -n ${bazel_tree}
-  bazel build src/main/java/com/google/devtools/build/lib:gen_buildencyclopedia &> $TEST_log || \
-    fail "Unexpected error generating build encyclopedia"
-}
-
-run_suite "documentation generation"
+echo PASS