blob: 4d5ada1c0810a8e9d0226115d41e4f51764032b8 [file] [log] [blame]
#!/usr/bin/env bash
#
# This shell script builds SeleniumHQ project then copies
# the required jar files for test automation
# You must run this script with java_tests directory path as an argument
# For the details please refer to new_README.chromium document
#
if [ -z $1 ]
then
echo "You must pass the target path, for example,"
echo "~/chromium/src/chrome/test/chromedriver/third_party/java_tests"
else
./go //java/client/test/org/openqa/selenium/chrome:chrome
./go //java/client/src/org/openqa/selenium:client-combined-zip
java_keystore="java/client/test/org/openqa/selenium/environment/webserver"
rm -rf $1/jar/
mkdir $1/jar/
rm -rf $1/$java_keystore
mkdir -p $1/$java_keystore
cp -f $java_keystore/keystore $1/$java_keystore/
rm -rf $1/third_party
mkdir -p $1/third_party/chrome_ext
cp third_party/chrome_ext/backspace.crx $1/third_party/chrome_ext/backspace.crx
rm -rf $1/common
cp -rf common $1
cp -f Rakefile $1
cp -f buck-out/gen/java/client/test/org/openqa/selenium/testing/lib__annotations__output/annotations.jar $1/jar
cp -f third_party/java/assertj/assertj-core-3.12.2.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/testing/drivers/lib__browser__output/browser.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/build/lib__build__output/build.jar $1/jar
cp -f third_party/java/bytebuddy/byte-buddy-1.9.12.jar $1/jar
cp -f buck-out/gen/third_party/java/commons/__commons-exec__/commons-exec-1.3.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/chrome/lib__chrome#testsjar__output/chrome#testsjar.jar $1/jar
cp -f buck-out/gen/java/client/src/org/openqa/selenium/client-combined-4.0.0-alpha-2.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/testing/drivers/lib__drivers__output/drivers.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/environment/lib__environment__output/environment.jar $1/jar
cp -f third_party/java/gson/gson-2.8.5.jar $1/jar
cp -f buck-out/gen/third_party/java/guava/__guava__/guava-27.1-jre.jar $1/jar
cp -f third_party/java/hamcrest/hamcrest-core-1.3.jar $1/jar
cp -f third_party/java/hamcrest/hamcrest-library-1.3.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/lib__helpers__output/helpers.jar $1/jar/helpers-selenium.jar
cp -f buck-out/gen/third_party/java/htmlunit/__htmlunit__/htmlunit-2.34.1.jar $1/jar
cp -f buck-out/gen/third_party/java/htmlunit/__htmlunit-cssparser__/htmlunit-cssparser-1.3.0.jar $1/jar
cp -f buck-out/gen/third_party/java/selenium/__htmlunit-driver__/htmlunit-driver-2.33.4-SNAPSHOT.jar $1/jar
cp -f third_party/java/servlet/javax.servlet-api-3.1.0.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-http-do-repack/jetty-http-repacked.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-io-do-repack/jetty-io-repacked.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-security-do-repack/jetty-security-repacked.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-server-do-repack/jetty-server-repacked.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-servlet-do-repack/jetty-servlet-repacked.jar $1/jar
cp -f buck-out/gen/third_party/java/jetty/jetty-util-do-repack/jetty-util-repacked.jar $1/jar
cp -f third_party/java/junit/junit-4.12.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/lib__large-tests__output/large-tests.jar $1/jar
cp -f third_party/java/littleshoot/littleproxy-1.1.3-SNAPSHOT.jar $1/jar
cp -f third_party/java/mockito/mockito-core-2.26.0.jar $1/jar
cp -f third_party/java/netty/netty-all-4.1.25.Final.jar $1/jar
cp -f third_party/java/objenesis/objenesis-3.0.1.jar $1/jar
cp -f buck-out/gen/third_party/java/okhttp3/__okhttp__/okhttp-3.14.0.jar $1/jar
cp -f buck-out/gen/third_party/java/okio/__okio__/okio-1.17.3.jar $1/jar
cp -f third_party/java/slf4j/slf4j-api-1.7.25.jar $1/jar
cp -f third_party/java/slf4j/slf4j-jdk14-1.7.25.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/testing/lib__test-base__output/test-base.jar $1/jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/chrome/lib__tests__output/tests.jar $1/jar/options-functional-tests.jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/lib__tests__output/tests.jar $1/jar/tests-selenium.jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/support/lib__tests__output/tests.jar $1/jar/tests-support.jar
cp -f buck-out/gen/java/client/test/org/openqa/selenium/devtools/lib__devtools__output/devtools.jar $1/jar/devtools-test.jar
fi