This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
[email protected]:microsoft/playwright.git | |
BRANCH=release-1.41 | |
current_branch_equals_remote() { | |
git branch -vv | |
local current_branch=$(git rev-parse --abbrev-ref HEAD) | |
if [[ $(git log -1 --pretty="%h" ${current_branch}) == $(git log -1 --pretty="%h" origin/${current_branch}) ]]; then | |
echo "Current branch equals remote branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# set -x | |
# Return commit of last successful WebKit build (default: GTK-Linux-64-bit-Release-Ubuntu-LTS-Build). | |
# Changes: | |
# 2022-11-16: Reworked script using changes suggested by asutherland to fetch commit number of last successful build directly from build.webkit.org. | |
BUILDER_NAME=${1:-GTK-Linux-64-bit-Release-Ubuntu-LTS-Build} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0f93b285725b0ac8a77a75de0a9d7d0ded94074b Mon Sep 17 00:00:00 2001 | |
From: Diego Pino Garcia <[email protected]> | |
Date: Wed, 24 Nov 2021 14:38:36 +0000 | |
Subject: [PATCH] Patch build fixes | |
--- | |
.../loader/archive/mhtml/MHTMLParser.cpp | 2 +- | |
.../platform/SharedBufferChunkReader.h | 2 ++ | |
Source/WebCore/platform/gtk/SelectionData.h | 6 ++-- | |
.../ServiceWorkerSoftUpdateLoader.cpp | 2 +- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ WEBKIT_JHBUILD=1 WEBKIT_JHBUILD_MODULESET=minimal Tools/Scripts/build-webkit --gtk --touch-events --no-bubblewrap-sandbox --cmakeargs=-DUSE_SOUP2=ON --cmakeargs=-DUSE_JPEGXL=OFF --cmakeargs=-DUSE_AVIF=OFF --no-webxr MiniBrowser | tee log | |
+ /home/dpino/playwright/browser_patches/webkit/checkout/Tools/jhbuild/jhbuild-wrapper --gtk run cmake --build /home/dpino/playwright/browser_patches/webkit/checkout/WebKitBuild/Release --config Release -- | |
[0/548] Generate bindings (WebCoreBindings) | |
Preprocess IDL | |
[4/548] cd /home/dpino/playwright/browser_patches/webkit/checkout/WebKitBuild/Release/Source/WebKit && /usr/bin/perl /home/dpino/playwright/browser_patches/webkit/checkout/Source/WebKit/Scripts/generate-forwarding-headers.pl --include-path /home/dpino/playwright/browser_patches/webkit/checkout/Source/WebKit --output /home/dpino/playwright/browser_patches/webkit/checkout/WebKitBuild/Release/DerivedSources/ForwardingHeaders --platform gtk --platform soup | |
[5/124] Generate bindings (TestRunnerSharedBindings) | |
[6/124] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pass CPP object to JavaScript function | |
* | |
* sample.js: | |
* function fileInfo(obj) | |
* { | |
* return "fileInfo: " + obj.i; | |
* } | |
* | |
* To compile: g++ main.cc -o main `pkg-config --cflags --libs javascriptcoregtk-4.0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function usage { | |
echo "Usage: layout-tests-split [jobs] [webkit-dir]" | |
} | |
JOBS="${1:-1}" | |
WEBKIT_DIR="${2:-.}" | |
LAYOUT_TESTS_DIR="$WEBKIT_DIR/LayoutTests/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import json | |
from urllib2 import urlopen | |
bots_names = [ | |
"WPE Linux 64-bit Release (Build)", | |
"WPE Linux 64-bit Debug (Build)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local C = ffi.C | |
function fold(fn, times) | |
local now = os.clock() | |
for i=1,times do | |
fn() | |
end | |
return os.clock() - now | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
set -x | |
# This script implements a lwB4 network function insolated into its own network namespace. Once running any IPv4 network command | |
# will get forwarded to a remote lwAFTR over the Internet. Communication with the lwAFTR is meant to happen via an IPv6 tunnel | |
# broker (such as Hurricane Electric) which should be already up and running. | |
# Author: Diego Pino Garca <[email protected]> | |
# Based on https://marcelwiget.wordpress.com/2015/11/30/lightweight-4over6-b4-client-in-linux-namespace/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FOLDERS=( | |
built-ins | |
annexB | |
intl402 | |
language | |
) | |
for each in ${FOLDERS[@]}; do |
NewerOlder