Skip to content

Instantly share code, notes, and snippets.

@rafaelbrandao
rafaelbrandao / wip.diff
Created June 18, 2012 22:51
patch for bug #72489 - wip
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index f316444..9a22fa0 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,37 @@
+2012-06-18 Rafael Brandao <rafael.lobo@openbossa.org>
+
+ [NRWT] Fix --platform=qt-5.0 --new-baseline combo
+ https://bugs.webkit.org/show_bug.cgi?id=72489
+
#!/bin/bash
WEEKLY_QT5_HASH="78b8403e415e7e8d9405daebc9619c4a7cb85910"
THREADS=-j50
QT5_MODULES="qtjsbackend qtxmlpatterns qtscript qtquick1 qtdeclarative qt3d qtsensors qtlocation"
cd qt5
git checkout master
git clean -dxf
git reset --hard HEAD
git submodule foreach "git checkout master"
#!/bin/bash
WEEKLY_QT5_HASH="78b8403e415e7e8d9405daebc9619c4a7cb85910"
THREADS=-j50
QT5_MODULES="qtjsbackend qtxmlpatterns qtscript qtquick1 qtdeclarative qt3d qtsensors qtlocation"
cd qt5
git checkout master
git clean -dxf
git reset --hard HEAD
git submodule foreach "git checkout master"
#!/usr/bin/env python
m = ['RIO','ASR','IVE','NAZ','ALI','REF','TUR']
m.reverse()
r,c,R,C = (2,0,len(m),len(m[0]))
moves = [(-1,0),(0,1),(0,-1),(1,0)]
mark = [[0 for j in xrange(C)] for i in xrange(R)]
msg = []
while mark[r][c] < 5:
mark[r][c] = 1
msg.append(m[r][c])
@rafaelbrandao
rafaelbrandao / how-to-rebaseline.txt
Created July 24, 2012 18:30
Ossy's instructions
- Let's concentrate for Qt 5 WebKit1 first (Qt 4.8 and Qt 5.0 WebKit2 results are very similar,
there are only ~500 different test results on them.) After we finished Qt 5.
- download http://build.webkit.sed.hu/x/layout-test-results.tar.gz , untar it where you want: my-favourite-path
(download can be slow a little bit, because it is a 330 Mb sized file.)
- Tools/Scripts/webkit-patch rebaseline-server my-favourite-path
- wait, wait and wait :) (starting server took 5-6 minutes for me because of this huge number of tests)
- Pick a directory for rebasing
- Add a comment to https://bugs.webkit.org/show_bug.cgi?id=85203, for example: "I started rebasing css2.1 tests."
(To avoid paralel working on same directory.)
- Select baseline target qt (not qt-5.0, qt-5.0-wk1, ...) at the bottom of the page.
@rafaelbrandao
rafaelbrandao / webkit-setup-env.sh
Created August 24, 2012 16:16
webkit-setup-env upgraded to support multiple working dirs
export GITDIR='/home/rafaelbrandao/work'
export BASE_PATH=$PATH
prepare-base () {
unset LIBRARY_PATH
unset LD_LIBRARY_PATH
unset WK_SOURCE_DIR
unset WK_LIBRARY_PATH
unset QT_SOURCE_DIR
unset QT_LIBRARY_PATH
@rafaelbrandao
rafaelbrandao / list-layout-tests.sh
Created September 21, 2012 21:44
List webkit layout tests that match a certain pattern.
list-webkit-tests() {
search_dir=$WK_SOURCE_DIR/LayoutTests/
echo 'Searching layout tests matching "'$*'" on '$search_dir'...';
grep -R $* -r $search_dir | grep .html | cut -f1 -d' ' | cut -f1 -d':' | uniq 2>&1;
}
@rafaelbrandao
rafaelbrandao / files-list-diff-subset-set.cpp
Created September 25, 2012 13:58
Program to handle files subset.
#include <cstdio>
#include <cstring>
#include <set>
using namespace std;
typedef unsigned long long uint64;
const uint64 hash_base = 263;
uint64 hash(const char* s) {
@rafaelbrandao
rafaelbrandao / scheduled-task.sh
Created January 3, 2013 05:15
Example of usage: sh ./scheduled-task.sh 22:30 "echo 'hello'"
TRIGGER_TIME=$1
CMD=$2
echo "Scheduled run of \"$CMD\" at $TRIGGER_TIME..."
while :
do
NOW=`date +"%H:%M"`
if [ $NOW = $TRIGGER_TIME ]; then break; fi
sleep 30
done
$CMD
@rafaelbrandao
rafaelbrandao / .bashrc
Created January 3, 2013 05:17
Add this to .bashrc to startup automatically an scheduled task when you open terminal.
if [ `ps auxw | grep "scheduled-task.sh" | wc -l` -lt 2 ];
then
sh $HOME/scheduled-task.sh "02:10" "echo 'hello'"
fi;