Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: build winldd on buildbots (#3917)
Andrey Lushnikovfda31dfca237
diff --git a/bin/README.md b/bin/README.mdindex d0559fc648..eb6a2c8fff 100644--- a/bin/README.md+++ b/bin/README.md@@ -1,2 +1,2 @@-See building instructions at [`//browser_patches/tools/PrintDepsWindows/README.md`](../browser_patches/tools/PrintDepsWindows/README.md)+See building instructions at [`//browser_patches/tools/PrintDepsWindows/README.md`](../browser_patches/winldd/README.md)diff --git a/browser_patches/buildbots/buildbot-windows.sh b/browser_patches/buildbots/buildbot-windows.shindex 75ad83cd1f..a4812efd34 100755--- a/browser_patches/buildbots/buildbot-windows.sh+++ b/browser_patches/buildbots/buildbot-windows.sh@@ -50,6 +50,8 @@ while true; do../checkout_build_archive_upload.sh firefox-win32 || truegit pull origin master../checkout_build_archive_upload.sh firefox-win64 || true+ git pull origin master+ ../checkout_build_archive_upload.sh winldd-win64 || truenewTimestamp=$(date +%s)delta=$(( 300 - newTimestamp + timestamp ));if (( delta > 0 )); thendiff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.shindex 42f21a52a2..cceb5d8edb 100755--- a/browser_patches/checkout_build_archive_upload.sh+++ b/browser_patches/checkout_build_archive_upload.sh@@ -36,7 +36,11 @@ BUILD_FLAVOR="$1"BUILD_BLOB_NAME=""EXPECTED_HOST_OS=""EXPECTED_HOST_OS_VERSION=""-if [[ "$BUILD_FLAVOR" == "ffmpeg-mac" ]]; then+if [[ "$BUILD_FLAVOR" == "winldd-win64" ]]; then+ BROWSER_NAME="winldd"+ EXPECTED_HOST_OS="MINGW"+ BUILD_BLOB_NAME="winldd-win64.zip"+elif [[ "$BUILD_FLAVOR" == "ffmpeg-mac" ]]; thenBROWSER_NAME="ffmpeg"EXTRA_BUILD_ARGS="--mac"EXPECTED_HOST_OS="Darwin"diff --git a/browser_patches/tools/PrintDepsWindows/.gitignore b/browser_patches/winldd/.gitignoresimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/.gitignorerename to browser_patches/winldd/.gitignorediff --git a/browser_patches/winldd/BUILD_NUMBER b/browser_patches/winldd/BUILD_NUMBERnew file mode 100644index 0000000000..83b33d238d--- /dev/null+++ b/browser_patches/winldd/BUILD_NUMBER@@ -0,0 +1 @@+1000diff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.cpp b/browser_patches/winldd/PrintDeps.cppsimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/PrintDeps.cpprename to browser_patches/winldd/PrintDeps.cppdiff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.sln b/browser_patches/winldd/PrintDeps.slnsimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/PrintDeps.slnrename to browser_patches/winldd/PrintDeps.slndiff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj b/browser_patches/winldd/PrintDeps.vcxprojsimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/PrintDeps.vcxprojrename to browser_patches/winldd/PrintDeps.vcxprojdiff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj.filters b/browser_patches/winldd/PrintDeps.vcxproj.filterssimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj.filtersrename to browser_patches/winldd/PrintDeps.vcxproj.filtersdiff --git a/browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj.user b/browser_patches/winldd/PrintDeps.vcxproj.usersimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/PrintDeps.vcxproj.userrename to browser_patches/winldd/PrintDeps.vcxproj.userdiff --git a/browser_patches/tools/PrintDepsWindows/README.md b/browser_patches/winldd/README.mdsimilarity index 100%rename from browser_patches/tools/PrintDepsWindows/README.mdrename to browser_patches/winldd/README.mddiff --git a/browser_patches/winldd/archive.sh b/browser_patches/winldd/archive.shnew file mode 100755index 0000000000..ad086375a1--- /dev/null+++ b/browser_patches/winldd/archive.sh@@ -0,0 +1,42 @@+#!/bin/bash+set -e+set +x++if [[ ("$1" == "-h") || ("$1" == "--help") ]]; then+ echo "usage: $(basename $0) [output-absolute-path]"+ echo+ echo "Generate distributable .zip archive from ./x64 folder that was previously built."+ echo+ exit 0+fi++if [[ "$(uname)" != MINGW* ]]; then+ echo "ERROR: this script only supports MINGW (windows)"+ exit 1+fi++ZIP_PATH=$1+if [[ $ZIP_PATH != /* ]]; then+ echo "ERROR: path $ZIP_PATH is not absolute"+ exit 1+fi+if [[ $ZIP_PATH != *.zip ]]; then+ echo "ERROR: path $ZIP_PATH must have .zip extension"+ exit 1+fi+if [[ -f $ZIP_PATH ]]; then+ echo "ERROR: path $ZIP_PATH exists; can't do anything."+ exit 1+fi+if ! [[ -d $(dirname $ZIP_PATH) ]]; then+ echo "ERROR: folder for path $($ZIP_PATH) does not exist."+ exit 1+fi++trap "cd $(pwd -P)" EXIT+cd "$(dirname "$0")"++# create a TMP directory to copy all necessary files+cd ./x64/Release+zip $ZIP_PATH ./PrintDeps.exe+diff --git a/browser_patches/winldd/build.sh b/browser_patches/winldd/build.shnew file mode 100755index 0000000000..7eb65d261b--- /dev/null+++ b/browser_patches/winldd/build.sh@@ -0,0 +1,13 @@+#!/bin/bash+set -e+set +x++trap "cd $(pwd -P)" EXIT+cd "$(dirname $0)"++if [[ "$(uname)" == MINGW* ]]; then+ /c/Windows/System32/cmd.exe "/c buildwin.bat"+else+ echo "ERROR: cannot upload on this platform!" 1>&2+ exit 1;+fidiff --git a/browser_patches/winldd/buildwin.bat b/browser_patches/winldd/buildwin.batnew file mode 100644index 0000000000..c3810004a9--- /dev/null+++ b/browser_patches/winldd/buildwin.bat@@ -0,0 +1 @@+%DEVENV% %~dp0\PrintDeps.sln /build "Release|x64"diff --git a/browser_patches/winldd/clean.sh b/browser_patches/winldd/clean.shnew file mode 100755index 0000000000..5c4cb59ee4--- /dev/null+++ b/browser_patches/winldd/clean.sh@@ -0,0 +1,8 @@+#!/bin/bash+set -e+set +x++trap "cd $(pwd -P)" EXIT+cd "$(dirname $0)"++rm -rf ./x64