code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
# Script to install Windows prerequisites for the examples
# Can be run in cygwin or in linux
#
set -x
set -e
WINE="${WINE:-wine}"
export WINE
run() {
case "$OS" in
"Windows_NT") chmod +x $1; cmd /c $* ;;
*) $WINE $* ;;
esac
}
# FIXME: move cmake and boost into winetricks
test -f cmake-2.8... | Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
java -classpath Hello.jar Hello
| Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
java -classpath Hello.jar Hello
| Shell |
#!/bin/sh
set -e
set -x
# Do a 64 bit build. This assumes you're on a 64 bit machine, and have
# already installed java and c++, e.g. on Ubuntu, that you've done
# sudo apt-get install gcc g++ openjdk-7-jdk
# or any of the other jdks available.
FORCE_32_BIT=no
export FORCE_32_BIT
rm -rf build64
mkdir build64
cd bui... | Shell |
#!/bin/sh
set -e
set -x
# Do a 64 bit build. This assumes you're on a 64 bit machine, and have
# already installed java and c++, e.g. on Ubuntu, that you've done
# sudo apt-get install gcc g++ openjdk-7-jdk
# or any of the other jdks available.
FORCE_32_BIT=no
export FORCE_32_BIT
rm -rf build64
mkdir build64
cd bui... | Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../demo
echo 'Now start up eclipse and do'
echo 'File / Import / General / Existing Projects Into Workspace, browse to cmake_examples/ex6, and click OK'
echo 'Also go... | Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../demo
echo 'Now start up eclipse and do'
echo 'File / Import / General / Existing Projects Into Workspace, browse to cmake_examples/ex6, and click OK'
echo 'Also go... | Shell |
#!/bin/sh
set -e
set -x
# Do a 64 bit build. This assumes you're on a 64 bit machine, and have
# already installed c++ and boost, e.g. on Ubuntu, that you've done
# sudo apt-get install gcc g++ libboost-dev libboost-date-time-dev
FORCE_32_BIT=no
export FORCE_32_BIT
rm -rf build64
mkdir build64
cd build64
cmake ..
m... | Shell |
#!/bin/sh
# Build boost for 32 bit
# Needed because 64 bit Ubuntu 12.04 doesn't provide 32 bit boost yet
# (see https://bugs.launchpad.net/ubuntu/+source/boost1.48/+bug/918438 )
# Uses opts from http://stackoverflow.com/questions/1357742/how-do-i-force-a-32-bit-build-of-boost-with-gcc
#
# Build only static libraries to... | Shell |
#!/bin/sh
set -e
set -x
# Do a 64 bit build. This assumes you're on a 64 bit machine, and have
# already installed c++ and boost, e.g. on Ubuntu, that you've done
# sudo apt-get install gcc g++ libboost-dev libboost-date-time-dev
FORCE_32_BIT=no
export FORCE_32_BIT
rm -rf build64
mkdir build64
cd build64
cmake ..
m... | Shell |
#!/bin/sh
# Build boost for 32 bit
# Needed because 64 bit Ubuntu 12.04 doesn't provide 32 bit boost yet
# (see https://bugs.launchpad.net/ubuntu/+source/boost1.48/+bug/918438 )
# Uses opts from http://stackoverflow.com/questions/1357742/how-do-i-force-a-32-bit-build-of-boost-with-gcc
#
# Build only static libraries to... | Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
if ! test -d gtest
then
test -f gtest-1.6.0.zip || wget http://googletest.googlecode.com/files/gtest-1.6.0.zip
unzip gtest-1.6.0.zip
mv gtest-1.6.0 gtest
fi
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
if ! test -d gtest
then
test -f gtest-1.6.0.zip || wget http://googletest.googlecode.com/files/gtest-1.6.0.zip
unzip gtest-1.6.0.zip
mv gtest-1.6.0 gtest
fi
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
# Script to install Windows prerequisites for the examples
# Can be run in cygwin or in linux
#
set -x
set -e
WINE="${WINE:-wine}"
export WINE
run() {
case "$OS" in
"Windows_NT") chmod +x $1; cmd /c $* ;;
*) $WINE $* ;;
esac
}
# FIXME: move cmake and boost into winetricks
test -f cmake-2.8... | Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
# Test whether the demo works with various alternative JDKs installed
uninstall_all_java() {
yes | sudo apt-get -y remove \
java-common \
icedtea-7-jre-jamvm \
openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib \
icedtea-6-jre-jamvm \
... | Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
LD_LIBRARY_PATH=. java -classpath Hello.jar Hello
| Shell |
#!/bin/sh
set -e
set -x
rm -rf build
mkdir build
cd build
cmake ..
make
LD_LIBRARY_PATH=. java -classpath Hello.jar Hello
| Shell |
#!/bin/sh
set -e
set -x
# Test whether the demo works with various alternative JDKs installed
uninstall_all_java() {
yes | sudo apt-get -y remove \
java-common \
icedtea-7-jre-jamvm \
openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib \
icedtea-6-jre-jamvm \
... | Shell |
#!/bin/sh
set -e
set -x
SRC=`dirname $0`
SRC=`cd $SRC; pwd`
mkdir build
cd build
# Generate null projects for each source directory by hand
# rather than asking the cdt generator to do it, since
# it can't handle more than one
# Unfortunately, eclipse doesn't know to build when these projects change...
for dir in d... | Shell |
#!/bin/sh
set -e
set -x
SRC=`dirname $0`
SRC=`cd $SRC; pwd`
mkdir build
cd build
# Generate null projects for each source directory by hand
# rather than asking the cdt generator to do it, since
# it can't handle more than one
# Unfortunately, eclipse doesn't know to build when these projects change...
for dir in d... | Shell |
#!/bin/sh
set -e
set -x
mkdir build64
cd build64
cmake ..
make
./mymain
cd ..
mkdir build32
cd build32
CFLAGS="-m32"
CXXFLAGS="-m32"
export CFLAGS CXXFLAGS
cmake ..
make
./mymain
cd ..
| Shell |
#!/bin/sh
set -e
set -x
mkdir build64
cd build64
cmake ..
make
./mymain
cd ..
mkdir build32
cd build32
CFLAGS="-m32"
CXXFLAGS="-m32"
export CFLAGS CXXFLAGS
cmake ..
make
./mymain
cd ..
| Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
set -e
set -x
mkdir build
cd build
cmake ..
make
./mymain
| Shell |
#!/bin/sh
# Install a few apps, then save them in jugs
set -x
set -e
WINEJUGS=$HOME/jugs
export WINEJUGS
rm -rf $WINEJUGS
mkdir $WINEJUGS
WINESERVER=${WINESERVER:-wineserver}
# verbs known to not work yet
BLACKLIST="starcraft$"
for verb in `sh wisotool ls | egrep -v "$BLACKLIST" `
do
WINEPREFIX=$HOME/.wine-stagi... | Shell |
#!/bin/sh
set -x
set -e
cat ~/winezeug/valgrind/valgrind-suppressions ~/winezeug/buildbot/valgrind-blacklist > suppressions
server/wineserver -k
rm -rf ~/.wine
./wine winemine &
sleep 2
VALGRIND_OPTS="--trace-children=yes --track-origins=yes \
--gen-suppressions=all --suppressions=`pwd`/suppressions \
--leak-... | Shell |
#!/bin/sh
# Script to build and test wine under various conditions,
# skipping tests listed in bugzilla as failing.
set -e
set -x
SRC=`dirname $0`
SRC=`cd $SRC; pwd`
usage() {
cat <<_EOF_
Usage: $0 command
Commands:
goodtests
badtests
flakytests
valgrindtests
retry_flakytests
crashytests
_EOF_
... | Shell |
#!/bin/sh
# Start a wine buildbot master
# Copyright 2011, Dan Kegel
# LGPL
set -x
set -e
TOP=$HOME/winemaster.dir
# Get email address of user from environment for use by the 'try' command.
# If not set, default to username@hostname.
EMAIL=${EMAIL:-$LOGNAME@`hostname`}
#----- Helper functions ----------------------... | Shell |
#!/bin/sh
# Start a wine buildbot slave
# Copyright 2011, Dan Kegel
# LGPL
set -e
set -x
TOP=$HOME/wineslave.dir
case `uname -m` in
i?86) geckoarch=x86;;
x86_64) geckoarch=x86_64;;
esac
#----- Helper functions -----------------------------------------------------
usage() {
echo "Usage: $0 command ..."
echo... | Shell |
#!/bin/sh
# Script to build gcc-2.95.3 for use with wine
set -e
set -x
system_numcpus() {
if test "$NUMBER_OF_PROCESSORS"
then
echo $NUMBER_OF_PROCESSORS
elif sysctl -n hw.ncpu 2> /dev/null
then
# Mac, freebsd
:
else
# x86 linux
grep '^processor' /proc/cpuinf... | Shell |
#!/bin/sh
# Executable version of http://buildbot.net/buildbot/tutorial/
# Copyright 2011, Dan Kegel
# Dual licensed, GPL and LGPL, suitable for inclusion in both buildbot and wine
set -x
set -e
TOP=$HOME/tmp/buildbot
# Get email address of user from environment for use by the 'try' command.
# If not set, default to... | Shell |
#!/bin/sh
set -x
set -e
cat ~/winezeug/valgrind/valgrind-suppressions ~/winezeug/buildbot/valgrind-blacklist > suppressions
server/wineserver -k
rm -rf ~/.wine
./wine winemine &
sleep 2
VALGRIND_OPTS="--trace-children=yes --track-origins=yes \
--gen-suppressions=all --suppressions=`pwd`/suppressions \
--leak-... | Shell |
#!/bin/sh
# Script to build and test wine under various conditions,
# skipping tests listed in bugzilla as failing.
set -e
set -x
SRC=`dirname $0`
SRC=`cd $SRC; pwd`
usage() {
cat <<_EOF_
Usage: $0 command
Commands:
goodtests
badtests
flakytests
valgrindtests
retry_flakytests
crashytests
_EOF_
... | Shell |
#!/bin/sh
# Start a wine buildbot slave
# Copyright 2011, Dan Kegel
# LGPL
set -e
set -x
TOP=$HOME/wineslave.dir
case `uname -m` in
i?86) geckoarch=x86;;
x86_64) geckoarch=x86_64;;
esac
#----- Helper functions -----------------------------------------------------
usage() {
echo "Usage: $0 command ..."
echo... | Shell |
#!/bin/sh
# Start a wine buildbot master
# Copyright 2011, Dan Kegel
# LGPL
set -x
set -e
TOP=$HOME/winemaster.dir
# Get email address of user from environment for use by the 'try' command.
# If not set, default to username@hostname.
EMAIL=${EMAIL:-$LOGNAME@`hostname`}
#----- Helper functions ----------------------... | Shell |
#!/bin/sh
# Script to build gcc-2.95.3 for use with wine
set -e
set -x
system_numcpus() {
if test "$NUMBER_OF_PROCESSORS"
then
echo $NUMBER_OF_PROCESSORS
elif sysctl -n hw.ncpu 2> /dev/null
then
# Mac, freebsd
:
else
# x86 linux
grep '^processor' /proc/cpuinf... | Shell |
#!/bin/sh
# Executable version of http://buildbot.net/buildbot/tutorial/
# Copyright 2011, Dan Kegel
# Dual licensed, GPL and LGPL, suitable for inclusion in both buildbot and wine
set -x
set -e
TOP=$HOME/tmp/buildbot
# Get email address of user from environment for use by the 'try' command.
# If not set, default to... | Shell |
#!/bin/sh
# Script to install build-time dependencies for Wine,
# then download the wine source code
# Copyright 2009 Austin English
# LGPL 2.1
# Determine how to elevate our privileges:
if [ `uname -o` = 'Solaris' ] ; then
ADMIN_COMMAND=pfexec
elif [ `uname -o` = 'Linux' ] ; then
ADMIN_COMMAND=sudo
elif [ `u... | Shell |
#!/bin/sh
# Script to automate building Wine dll's and programs for Win32 using MinGW
#
# This assumes your wine-git tree is in $HOME/wine-git. If not, override it with WINEGIT=/path/to/your/wine/tree
#
# Copyright 2010 Austin English
# LGPL 2.1 License
set -eux
WINEGIT=${WINEGIT:-$HOME/wine-git}
cd "$WINEGIT"
# Fi... | Shell |
#!/bin/sh
# Usage: sh yagmark-continuous.sh where-to-upload
set -e
set -x
. ./yagmark-vars
srcdir=`dirname $0`
srcdir=`cd $srcdir; pwd`
while true
do
cd $WINEDIR
sh -x $srcdir/yagmark-sync.sh
cd $srcdir
sh -x yagmark-daily.sh $1
sleep 10
done
| Shell |
# NRUNS = how many times to run the benchmarks for each version of wine
# Can't run before wine-1.1.5, doesn't compile with ubuntu 10.04
# Can't run before wine-1.1.36, needs a different patch for 3dmark06
# without a patch
export NRUNS=3
sh -x yagmark-series.sh kegel.com:public_html/kegel/wine/yagmarkdata/ \
wine-1.... | Shell |
#!/bin/sh
# Yet Another Graphics Benchmark
# Automated script to measure Win32 graphics performance
# Copyright 2010 Dan Kegel.
# Licence: LGPL (for winehq compatibility)
#
# To run on Windows, please use cygwin.
# When running on Windows Vista or 7, disable UAC and reboot, or Autohotkey won't be able to script the ins... | Shell |
#!/bin/sh
# Usage: sh yagmark-series.sh where-to-upload revisions
set -e
set -x
. ./yagmark-vars
srcdir=`dirname $0`
srcdir=`cd $srcdir; pwd`
url=$1
shift
for rev
do
cd $WINEDIR
sh -x $srcdir/yagmark-sync.sh $rev
cd $srcdir
sh -x yagmark-daily.sh $url
sleep 10
done
| Shell |
#!/bin/sh
# Run yagmark in a loop
while true
do
sh yagmark.sh 3dmark2000 3dmark2001 3dmark06
done
| Shell |
#!/bin/sh
set -e
set -x
# We grep error messages, so make them all English
LANG=C
setup()
{
# Unapply local patches before sync
git diff > yagmark-sync-$$.patch
patch -R -p1 < yagmark-sync-$$.patch
cleaned=0
trap cleanup 0 INT
}
cleanup()
{
# Reapply local patches after sync
test $cleaned = 1 &... | Shell |
#!/bin/sh
# Trivial script to build wine and run yagmark ten times, uploading as each iteration is done.
set -e
set -x
build_wine()
{
rm -rf $WINEOBJ || true
mkdir -p $WINEOBJ
cd $WINEOBJ
$WINEDIR/configure --prefix=/usr/local/wine --without-nas
ncpus=`awk '/processor/' < /proc/cpuinfo | wc -l`
... | Shell |
#!/bin/sh
# Yet Another Graphics Benchmark
# Automated script to measure Win32 graphics performance
# Copyright 2010 Dan Kegel.
# Licence: LGPL (for winehq compatibility)
#
# To run on Windows, please use cygwin.
# When running on Windows Vista or 7, disable UAC and reboot, or Autohotkey won't be able to script the ins... | Shell |
#!/bin/sh
# Compute median
# Input and output are lines of form 'variable value'.
# Multiple lines with same variable represent different measurements.
# Replaces all the lines for a particular variable
# with one containing the median of all measurements for that variable.
median()
{
# Sort first by variable name... | Shell |
#!/bin/sh
# Usage: sh yagmark-continuous.sh where-to-upload
set -e
set -x
. ./yagmark-vars
srcdir=`dirname $0`
srcdir=`cd $srcdir; pwd`
while true
do
cd $WINEDIR
sh -x $srcdir/yagmark-sync.sh
cd $srcdir
sh -x yagmark-daily.sh $1
sleep 10
done
| Shell |
#!/bin/sh
# Quick and dirty script for plotting yagmark results
# And I do mean dirty.
set -e
set -x
. ./yagmark-vars
cd results
latest=`ls -d *Ubuntu*/stats.dat | sort -n -t- -k +7 | tail -n 1 | sed 's,/stats.dat,,'`
previous=`ls -d *Ubuntu*/stats.dat | sort -n -t- -k +7 | tail -n 2 | head -n 1 | sed 's,/stats.dat,... | Shell |
#!/bin/sh
# Run yagmark in a loop
while true
do
sh yagmark.sh 3dmark2000 3dmark2001 3dmark06
done
| Shell |
#!/bin/sh
# Trivial script to build wine and run yagmark ten times, uploading as each iteration is done.
set -e
set -x
build_wine()
{
rm -rf $WINEOBJ || true
mkdir -p $WINEOBJ
cd $WINEOBJ
$WINEDIR/configure --prefix=/usr/local/wine --without-nas
ncpus=`awk '/processor/' < /proc/cpuinfo | wc -l`
... | Shell |
#!/bin/sh
set -e
set -x
# We grep error messages, so make them all English
LANG=C
setup()
{
# Unapply local patches before sync
git diff > yagmark-sync-$$.patch
patch -R -p1 < yagmark-sync-$$.patch
cleaned=0
trap cleanup 0 INT
}
cleanup()
{
# Reapply local patches after sync
test $cleaned = 1 &... | Shell |
#!/bin/sh
# Usage: sh yagmark-series.sh where-to-upload revisions
set -e
set -x
. ./yagmark-vars
srcdir=`dirname $0`
srcdir=`cd $srcdir; pwd`
url=$1
shift
for rev
do
cd $WINEDIR
sh -x $srcdir/yagmark-sync.sh $rev
cd $srcdir
sh -x yagmark-daily.sh $url
sleep 10
done
| Shell |
#!/bin/sh
# Quick and dirty script for plotting yagmark results
# And I do mean dirty.
set -e
set -x
. ./yagmark-vars
cd results
latest=`ls -d *Ubuntu*/stats.dat | sort -n -t- -k +7 | tail -n 1 | sed 's,/stats.dat,,'`
previous=`ls -d *Ubuntu*/stats.dat | sort -n -t- -k +7 | tail -n 2 | head -n 1 | sed 's,/stats.dat,... | Shell |
#!/bin/sh
# Compute median
# Input and output are lines of form 'variable value'.
# Multiple lines with same variable represent different measurements.
# Replaces all the lines for a particular variable
# with one containing the median of all measurements for that variable.
median()
{
# Sort first by variable name... | Shell |
#!/bin/sh
# Usage: savejug JUGNAME
# Saves a master jug for a wineprefix containing zero or more wine applications.
# The wineprefix to save is $WINEPREFIX or ~/.wine if that's not set.
# Later, to use the saved master jug, run clonejug JUGNAME. That creates a wineprefix
# that links readonly files from the master, a... | Shell |
#!/bin/sh
# Rename all sha1sum-named isos (wisotool convention) with their volume name (wisotool2 convention)
# Assumes you've already done something like
# mkdir -p ~/.cache/winetricks
# mv ~/.winetrickscache/* ~/.cache/winetricks/*
# mv ~/.wisotoolcache/* ~/.cache/winetricks/
# mv ~/.wisotool/cache/* ~/.cache... | Shell |
#!/bin/bash -e
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
INSTALL_DESTDIR="$CURDIR"
PROFILES="net_1_1 net_2_0 net_3_5"
ORIGINAL_PATH="$PATH"
REBUILD=0
# If CC is set, it will conflict, unset it
unset CC
export ... | Shell |
#!/bin/bash -e
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
INSTALL_DESTDIR="$CURDIR"
PROFILES="net_1_1 net_2_0 net_3_5"
ORIGINAL_PATH="$PATH"
REBUILD=0
# If CC is set, it will conflict, unset it
unset CC
export ... | Shell |
#!/bin/sh
# There's a lot of stuff here that probably doesn't need to be tested, e.g.,
# setting dlls to native, and different windows versions. It doesn't hurt to test
# and may find weird problems. Plus, that way we can test every function.
set -ex
rm -rf $HOME/.winetrickscache $HOME/.cache/winetricks
# Default to... | Shell |
#!/bin/sh
# Simple continuous build slave for Wine
# Copyright 2008 Google (Dan Kegel)
# License: LGPL
#
# Warning:
# This script executes source code sent in by anonymous users,
# and is therefore very dangerous. Run this in as isolated
# and low-privilege environment as possible.
#
# This script does a baseline bui... | Shell |
#!/bin/sh
# Script to generate new blacklist
# Run this after patchwatcher has been running a long time
# But delete valid test failures first, or remove them from the resulting
# blacklist!
TOP=`pwd`
if test "$1" = ""
then
N=1
else
N=$1
fi
set -x
cd shared/sent
cat */*.testlog | perl $TOP/get-dll.pl | egrep "... | Shell |
#!/bin/sh
# Install prerequisites needed to run Patchwatcher
# Run this as root
# Don't forget normal wine prerequisites! e.g.
# wget http://kegel.com/wine/hardy.sh
# sh hardy.sh
# wine-slave.sh
apt-get install autoconf patch cabextract
# Dashboard2.pl
apt-get install libdate-manip-perl
# get-patches2.pl
apt-get... | Shell |
#!/bin/sh
# Edit pwconfig.sh and ~/.netrc to set access parameters and locations
. ./libpatchwatcher.sh
demo_shell $1 $2
| Shell |
#!/bin/sh
#
# Simple continuous master for gathering and assigning jobs to slaves
#
# Copyright 2008 Robert Shearman
# License: LGPL
. `dirname $0`/libpatchwatcher.sh
lpw_init `dirname $0`
set -e
set -x
slaves=`cd shared; echo slave*`
lpw_assign_jobs_to_slaves_fairly()
{
# Hand a job to any slave that doesn't ... | Shell |
#!/bin/sh
# Script to compare two blacklists
tr '|' '\012' < $1 | sort > /tmp/bl1
tr '|' '\012' < $2 | sort > /tmp/bl2
diff -u /tmp/bl1 /tmp/bl2
| Shell |
#!/bin/sh
# Simple continuous build for Wine
# Copyright 2008 Google (Dan Kegel)
# License: LGPL
#
# Watches the wine-patches mailing list, builds incoming patches against
# current git, runs conformance tests.
# Results sent out via email and uploaded to a web site.
# Warning:
# This script executes source code se... | Shell |
#!/bin/sh
# Edit pwconfig.sh and ~/.netrc to set access parameters and locations
. ./libpatchwatcher.sh
demo_shell $1 $2
| Shell |
#!/bin/sh
# Simple continuous build slave for Wine
# Copyright 2008 Google (Dan Kegel)
# License: LGPL
#
# Warning:
# This script executes source code sent in by anonymous users,
# and is therefore very dangerous. Run this in as isolated
# and low-privilege environment as possible.
#
# This script does a baseline bui... | Shell |
#!/bin/sh
# Install prerequisites needed to run Patchwatcher
# Run this as root
# Don't forget normal wine prerequisites! e.g.
# wget http://kegel.com/wine/hardy.sh
# sh hardy.sh
# wine-slave.sh
apt-get install autoconf patch cabextract
# Dashboard2.pl
apt-get install libdate-manip-perl
# get-patches2.pl
apt-get... | Shell |
#!/bin/sh
# Script to generate new blacklist
# Run this after patchwatcher has been running a long time
# But delete valid test failures first, or remove them from the resulting
# blacklist!
TOP=`pwd`
if test "$1" = ""
then
N=1
else
N=$1
fi
set -x
cd shared/sent
cat */*.testlog | perl $TOP/get-dll.pl | egrep "... | Shell |
#!/bin/sh
# Script to compare two blacklists
tr '|' '\012' < $1 | sort > /tmp/bl1
tr '|' '\012' < $2 | sort > /tmp/bl2
diff -u /tmp/bl1 /tmp/bl2
| Shell |
# Library of shell functions to help construct a distributed patchwatcher
#
# These functions are meant to be used by several independent scripts,
# possibly running on different computers, possibly with different roles
# running as different unix users for security purposes.
# A shared network filesystem is assumed.
... | Shell |
#!/bin/sh
#
# Simple continuous master for gathering and assigning jobs to slaves
#
# Copyright 2008 Robert Shearman
# License: LGPL
. `dirname $0`/libpatchwatcher.sh
lpw_init `dirname $0`
set -e
set -x
slaves=`cd shared; echo slave*`
lpw_assign_jobs_to_slaves_fairly()
{
# Hand a job to any slave that doesn't ... | Shell |
#!/bin/sh
# Simple continuous build for Wine
# Copyright 2008 Google (Dan Kegel)
# License: LGPL
#
# Watches the wine-patches mailing list, builds incoming patches against
# current git, runs conformance tests.
# Results sent out via email and uploaded to a web site.
# Warning:
# This script executes source code se... | Shell |
#!/bin/sh
# Process web logs from winetricks usage reporting
# Before running, grab the web log manually, place it in usage.log
# See what verbs wisotool2 has today
grep '^w_metadata' winetricks-alpha | grep -v '()' | awk '!/xgames/ {print $2}' | sort > wisotool2.loads
# Find what verbs people are using; discard any ... | Shell |
#!/bin/sh
# Script to run "make test" under valgrind and find changes in valgrind results from last time it was run
# Usage: sh tools/valgrind/valgrind-daily.sh
set -x
set -e
# Must be run from the wine tree
WINESRC="$HOME/wine-valgrind"
# Prepare for calling winetricks
export WINEPREFIX=$HOME/.wine-test
export WINE=$... | Shell |
#!/bin/sh
set -x
cd logs
DATE=`ls -d ????-??-??-??.?? | tail -1`
chmod 644 $DATE*.*
chmod 644 $DATE/*
chmod 755 $DATE
scp $DATE*.* kegel.com:public_html/kegel/wine/valgrind/logs
cd $DATE
chmod 644 *.txt
ssh kegel.com mkdir public_html/kegel/wine/valgrind/logs/$DATE
scp diff*.txt vg*.txt kegel.com:public_html/kegel/wine... | Shell |
#!/bin/sh
set -e
set -x
# We grep error messages, so make them all English
LANG=C
setup()
{
# Unapply local patches before sync
git diff > valgrind-sync-$$.patch
patch -R -p1 < valgrind-sync-$$.patch
cleaned=0
trap cleanup 0 INT
}
cleanup()
{
# Reapply local patches after sync
test $cleaned = 1... | Shell |
#!/bin/sh
# Usage: sh tools/valgrind/valgrind-continuous.sh
set -e
set -x
while true
do
sh tools/valgrind/valgrind-sync.sh
sh tools/valgrind/valgrind-daily.sh
sh tools/valgrind/valgrind-upload.sh $1 $2
sleep 10
done
| Shell |
#!/bin/sh
# Script to build valgrind for use with wine
VALGRIND_SVN_REV=10880
VEX_SVN_REV=1914
DIRNAME=valgrind-${VALGRIND_SVN_REV}
THISDIR=$(dirname "${0}")
THISDIR=$(cd "${THISDIR}" && /bin/pwd)
set -x
set -e
test -d "$DIRNAME" || svn co -r "${VALGRIND_SVN_REV}" "svn://svn.valgrind.org/valgrind/trunk" "$DIRNAME"
... | Shell |
#!/bin/sh
set -e
set -x
sh tools/valgrind/valgrind-daily.sh
sh tools/valgrind/valgrind-upload.sh $1 $2
| Shell |
#!/bin/sh
set -e
set -x
sh tools/valgrind/valgrind-daily.sh
sh tools/valgrind/valgrind-upload.sh $1 $2
| Shell |
#!/bin/sh
set -x
cd logs
DATE=`ls -d ????-??-??-??.?? | tail -1`
chmod 644 $DATE*.*
chmod 644 $DATE/*
chmod 755 $DATE
scp $DATE*.* kegel.com:public_html/kegel/wine/valgrind/logs
cd $DATE
chmod 644 *.txt
ssh kegel.com mkdir public_html/kegel/wine/valgrind/logs/$DATE
scp diff*.txt vg*.txt kegel.com:public_html/kegel/wine... | Shell |
#!/bin/sh
# Usage: sh tools/valgrind/valgrind-continuous.sh
set -e
set -x
while true
do
sh tools/valgrind/valgrind-sync.sh
sh tools/valgrind/valgrind-daily.sh
sh tools/valgrind/valgrind-upload.sh $1 $2
sleep 10
done
| Shell |
#!/bin/sh
# Script to build valgrind for use with wine
VALGRIND_SVN_REV=10880
VEX_SVN_REV=1914
DIRNAME=valgrind-${VALGRIND_SVN_REV}
THISDIR=$(dirname "${0}")
THISDIR=$(cd "${THISDIR}" && /bin/pwd)
set -x
set -e
test -d "$DIRNAME" || svn co -r "${VALGRIND_SVN_REV}" "svn://svn.valgrind.org/valgrind/trunk" "$DIRNAME"
... | Shell |
#!/bin/sh
# Script to run "make test" under valgrind and find changes in valgrind results from last time it was run
# Usage: sh tools/valgrind/valgrind-daily.sh
set -x
set -e
# Must be run from the wine tree
WINESRC="$HOME/wine-valgrind"
# Prepare for calling winetricks
export WINEPREFIX=$HOME/.wine-test
export WINE=$... | Shell |
#!/bin/sh
# Usage: sh tools/valgrind/valgrind-stats.sh
# Compute statistics for the most recent run
set -x
set -e
cd logs
DATE=`ls -d ????-??-??-??.?? | tail -1`
PREV=`ls -d ????-??-??-??.?? | tail -2 | head -1`
PATTERN="are definitely|uninitialised|Unhandled exception|Invalid read|Invalid write|Invalid free|Source ... | Shell |
#!/bin/sh
set -e
set -x
# We grep error messages, so make them all English
LANG=C
setup()
{
# Unapply local patches before sync
git diff > valgrind-sync-$$.patch
patch -R -p1 < valgrind-sync-$$.patch
cleaned=0
trap cleanup 0 INT
}
cleanup()
{
# Reapply local patches after sync
test $cleaned = 1... | Shell |
#!/bin/sh
# Usage: sh tools/valgrind/valgrind-stats.sh
# Compute statistics for the most recent run
set -x
set -e
cd logs
DATE=`ls -d ????-??-??-??.?? | tail -1`
PREV=`ls -d ????-??-??-??.?? | tail -2 | head -1`
PATTERN="are definitely|uninitialised|Unhandled exception|Invalid read|Invalid write|Invalid free|Source ... | Shell |
#!/bin/sh
#
# Wine build-helper script
#
# Copyright 2009 Austin English <austinenglish@gmail.com>
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright n... | Shell |
#!/bin/bash
#
# Simple script to automate installing new kernels from Ubuntu's kernel testing PPA.
# It will apt-get update, then apt-get dist-upgrade for you. If a new kernel is installed,
# your computer will be rebooted. If not, runs the commands specified.
# Use this to, e.g., automate building your project with th... | Shell |
#!/bin/sh
# This script is meant to be used as a wrapper script. Place it in /usr/local/bin,
# mark it +x, then you can use `daily` to run the script from any directory.
# Where your wine-git directory is located. We need to 'cd' there. Most people
# have it in $HOME/wine-git, but I know some cranky bastard is going t... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.