code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh -x
#
# $Id$
#
#
# run the cbtb test suite under multiple tunbr invocations from
# continuous-test.sh, store the results in the build/ directory, and email
# the zumastor-commits list. Return code indicates that at least
# one mandatory rest failed, and is used by the continuous-test.sh
# loop to avoid rerunn... | Shell |
#!/bin/sh
#
# $Id$
#
# Launch the zumastor continuous build script as the zbuild user
# on bootup. Should be installed as /etc/init.d/zbuild and
# symlinked from /etc/rc2.d/S95zbuild
case "$1" in
start)
rm -f /var/lib/misc/dnsmasq.leases /var/lib/misc/dnsmasq.leases.new
mkdir /var/run/zbuild
... | Shell |
#!/bin/sh -x
# Run the zuma/dapper/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
# wait f... | Shell |
#!/bin/sh -x
#
# $Id$
#
#
# continuously run an svn update on a zumastor repository with the cbtb/tests
# Whenever the last successful test revision differs from the last successful
# install revision, fire off a new round of tests.
top="${PWD}"
installrev=''
if [ -f ${top}/zumastor/build/installrev ] ; then
instal... | Shell |
#!/bin/sh -x
#
# Build an image with current or provided zumastor debs installed, booted,
# and ready to immediately run single-node tests.
# Inherits from the generic dapper template.
#
# $Id: zuma-dapper-i386.sh 1454 2008-03-13 02:09:56Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@goog... | Shell |
#!/bin/sh -x
#
# $Id: continuous-install.sh 1293 2008-01-18 22:03:12Z drake.diedrich $
#
# Continuously check whether a new build has completed, and install
# the new debs into a new image to use for testing. Create a symlink to
# the new image for the continuous-test script to notice and launch tests
# against.
rep... | Shell |
#!/bin/sh -x
#
# $Id: continuous-test.sh 1376 2008-02-13 04:00:49Z drake.diedrich $
#
#
# continuously run an svn update on a zumastor repository with the cbtb/tests
# Whenever the last successful test revision differs from the last successful
# install revision, fire off a new round of tests.
top="${PWD}"
installrev... | Shell |
#!/bin/sh -x
#
# $Id: continuous-build.sh 1399 2008-02-15 02:39:07Z drake.diedrich $
#
#
# Continuously svn update, run the encapsulated build
# Create symlinks to the new debs each time a new build is successful,
# so other continuous-* scripts can tell at a glance that a new one
# has arrived.
mailto=/usr/bin/mailto... | Shell |
#!/bin/sh
#
# $Id$
#
# Launch the zumastor continuous build script as the zbuild user
# on bootup. Should be installed as /etc/init.d/zbuild and
# symlinked from /etc/rc2.d/S95zbuild
case "$1" in
start)
rm -f /var/lib/misc/dnsmasq.leases /var/lib/misc/dnsmasq.leases.new
mkdir /var/run/zbuild
... | Shell |
#!/bin/sh -x
#
# test multi-layer replication.
#
# http://code.google.com/p/zumastor/issues/detail?id=27
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.com)
set -e
# Terminate test in 10 minutes.
TIMEOUT=600
HDBSIZE=4
HDCSIZE=8
# Feature request. http://code.google.com/p/... | Shell |
#!/bin/sh -x
#
# test multi-layer replication.
#
# http://code.google.com/p/zumastor/issues/detail?id=27
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.com)
set -e
# Terminate test in 10 minutes.
TIMEOUT=600
HDBSIZE=4
HDCSIZE=8
# Feature request. http://code.google.com/p/... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up origin and snapshot store on master and secondary machine on
# raw disks. Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification also a... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-slave-ssh.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Based on replication-zumastor. Only the slave can ssh to root on the
# master, the master cannot ssh to the slave as root. Since this is
# not designed at present to work, yet is required to survive compromise
# of the ... | Shell |
#!/bin/sh -x
#
# $Id: nfs-test.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Export zumastor over NFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
s... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-names.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up origin and snapshot store on master and secondary machine on
# raw disks. Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification ... | Shell |
#!/bin/sh -x
#
# $Id: replication-ddsnap.sh 1255 2008-01-09 05:15:38Z drake.diedrich $
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@googl... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Based on replication-zumastor. Only the slave can ssh to root on the
# master, the master cannot ssh to the slave as root. Since this is
# not designed at present to work, yet is required to survive compromise
# of the master, it is expected to fail. The slave can still ssh
# to the master,... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 20 minutes. Read by ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over NFSv4 to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 20 minutes. Rea... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up origin and snapshot store on master and secondary machine on
# raw disks. Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification also arrives at the
# backup.
#
# Requires that the launch environmen... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over CIFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Mark Roach (mrroach@google.com)
# Original Author: Drake Diedrich (dld@google.com)
... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over NFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
rc=0
# Terminate test in 20 minutes. Read ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up origin and snapshot store on master and secondary machine on
# raw disks. Begin replication cycle between machines
# and wait until it arrives and can be verified.
# Modify the origin and verify that the modification also arrives at the
# backup.
#
# Requires that the launch environmen... | Shell |
#!/bin/sh -x
#
# $Id$
#
# A test of simultaneous snapshots and replication. This is not
# supported, and an issue is filed, so this test is expected to fail.
# Most likely the test will need to change to match the new configuration
# commands that will be part of adding this feature.
#
# http://code.google.com/p/zumas... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-lvm-resize.sh 1189 2008-2-12 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify replication still works after resizing
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.co... | Shell |
#!/bin/sh -x
#
# $Id: replication-snapshots-zumastor.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# A test of simultaneous snapshots and replication. This is not
# supported, and an issue is filed, so this test is expected to fail.
# Most likely the test will need to change to match the new configuration
# commands tha... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Export zumastor over CIFS to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Mark Roach (mrroach@google.com)
# Original Author: Drake Diedrich (dld@google.com)
... | Shell |
#!/bin/sh -x
#
# $Id: nfs4-zumastor-snapshot.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Export zumastor over NFSv4 to a slave and then perform some filesystem
# actions. Verify that the filesystem actions arrive in the snapshot store.
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-lvm-resize.sh 1189 2008-2-12 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify replication still works after resizing
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.co... | Shell |
#!/bin/sh -x
# $Id$
# simple paramter script for zuma-test-dapper-i386.sh script
# will wait until return is pressed
set -e
env
hostname
ifconfig eth0 || true
ifconfig eth1 || true
echo "slogin root@ the IP address above to work interactively"
echo "Press return to end the session"
read ret
| Shell |
#!/bin/sh -x
# $Id: wait.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# simple paramter script for zuma-test-dapper-i386.sh script
# will wait until return is pressed
set -e
env
hostname
ifconfig eth0 || true
ifconfig eth1 || true
echo "slogin root@ the IP address above to work interactively"
echo "Press return t... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-reiserfs.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Aut... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3-resize.sh 1189 2007-12-22 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify resize succeeds and data on origin/snapshot volumes still valid after resizing
#
# Copyright 2007 Google Inc. All rights reserved
# Au... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-xfs-lvm-5T.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Make use of large, extra devices on /dev/sd[bcd] to test
# multi-terabyte-sized zumastor filesystems. RAID0 and LVM are used to
# create the large filesystems from 2045G disks provided by qemu (the
# largest supported by t... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext2.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author:... | Shell |
#!/bin/sh -x
#
# $Id: boot-order.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# Boot and install insserv, and make sure zumastor doesn't show up
# in its list of warnings.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
TIMEOUT=1200
echo "1..2"
rc=0
apt-get u... | Shell |
#!/bin/sh -x
#
# $Id: ddsnap-error-handling.sh 1234 2008-01-05 05:24:09Z jiayingz $
#
# Verify that ddsnap/ddsnapd handle error messages correctly
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.com)
set -e
# The required sizes of the sdb and sdc devices in M. 2045G
# Rea... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3-resize.sh 1189 2007-12-22 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify resize succeeds and data on origin/snapshot volumes still valid after resizing
#
# Copyright 2007 Google Inc. All rights reserved
# Au... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-xfs-2045G.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Make use of large, extra devices on /dev/sdb and /dev/sdc to test
# terabyte-sized zumastor filesystems. Other than not using LVM and using
# very large devices, this is the same as the snapshot-zumastor.sh test.
# To reduc... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author:... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-ddsnap.sh 1234 2008-01-05 05:24:09Z drake.diedrich $
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.c... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Make use of large, extra devices on /dev/sd[bcd] to test
# multi-terabyte-sized zumastor filesystems. RAID0 and LVM are used to
# create the large filesystems from 2045G disks provided by qemu (the
# largest supported by the 32-bit UML disk backing format).
# This is otherwise the same as the... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Boot and install insserv, and make sure zumastor doesn't show up
# in its list of warnings.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
TIMEOUT=1200
echo "1..2"
rc=0
apt-get update
aptitude install -y insserv nfs-kernel-server
echo ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes o... | Shell |
#!/bin/sh -x
#
# $Id: ddsnap-error-handling.sh 1234 2008-01-05 05:24:09Z jiayingz $
#
# Verify that ddsnap/ddsnapd handle error messages correctly
#
# Copyright 2008 Google Inc. All rights reserved
# Author: Jiaying Zhang (jiayingz@google.com)
set -e
# The required sizes of the sdb and sdc devices in M. 2045G
# Rea... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Make use of large, extra devices on /dev/sdb and /dev/sdc to test
# terabyte-sized zumastor filesystems. Other than not using LVM and using
# very large devices, this is the same as the snapshot-zumastor.sh test.
# To reduce the runtime of this test, only the XFS filesystem is tested.
# mkfs.... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3-resize.sh 1189 2007-12-22 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify resize succeeds and data on origin/snapshot volumes still valid after resizing
#
# Copyright 2007 Google Inc. All rights reserved
# Au... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Replace /bin/sh with dash in the dapper test harness, and then replace
# all of the #!/bin/bash in a list of zumastor scripts in order to see where
# zumastor breaks due to bashisms in the scripts. This test is expected
# to *really* fail. The base of this test is the zumastor snapshot test.... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes o... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Use ddsnap directly to create a snapshot, modify the origin, and create
# another snapshot. Verify that checksums change and remain correct.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes of the sdb and sdc devices ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up a zumastor volume and verify that --zero really zeroes it out.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes of the sdb and sdc devices in M.
# Read only by the test harness.
HDBSIZE=4
HDCSIZE=8
# Termi... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3-resize.sh 1189 2007-12-22 00:27:19Z jiahotcake $
#
# Set up testvg with origin and snapshot store, resize origin/snapshot volumes,
# verify resize succeeds and data on origin/snapshot volumes still valid after resizing
#
# Copyright 2007 Google Inc. All rights reserved
# Au... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Test that zumastor initialize works even when the origin and
# snapshot storage specified are just symlinks to the real devices.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes of the sdb and sdc devices in M.
# Read ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes o... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes o... | Shell |
#!/bin/sh -x
#
# $Id: zero-zumastor.sh 1447 2008-03-12 20:34:37Z drake.diedrich $
#
# Set up a zumastor volume and verify that --zero really zeroes it out.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes of the sdb and sdc devices in M.
#... | Shell |
#!/bin/sh -x
#
# $Id: bashisms.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Replace /bin/sh with dash in the dapper test harness, and then replace
# all of the #!/bin/bash in a list of zumastor scripts in order to see where
# zumastor breaks due to bashisms in the scripts. This test is expected
# to *really* fail. T... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-jfs.sh 1459 2008-03-15 05:34:58Z jiahotcake $
#
# Set up zumastor with origin and snapshot stores on /dev/sdb and /dev/sdc,
# iterate through a few snapshots to verify that each is unique and
# stable when taken.
#
# Copyright 2007-2008 Google Inc. All rights reserved
# Author: ... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Test that zumastor initialize works even when the origin and
# snapshot storage specified are just symlinks to the real devices.
#
# Copyright 2007 Google Inc. All rights reserved
# Author: Drake Diedrich (dld@google.com)
set -e
# The required sizes of the sdb and sdc devices in M.
# Read ... | Shell |
#!/bin/sh -x
# Run the zuma/dapper/i386 ext3 image using UML COW verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id: test-zuma-uml-dapper-i386.sh 1279 2008-01-15 04:44:35Z drake.diedrich $
# Copyright 2007 Google Inc.
# Au... | Shell |
#!/bin/sh -x
# Run this only on Debian or Debian-derivative systems for now.
# Manually inspect and run the components modified as necessary on
# other systems.
set -e
stagefile=`mktemp`
tmpdir=`mktemp -d`
# install tunbr setuid root
if [ ! -x /usr/local/bin/tunbr ]
then
pushd ../tunbr
make tunbr
mv tunbr $tm... | Shell |
#!/bin/sh
# $Id: runtests.sh 1372 2008-02-13 02:37:15Z drake.diedrich $
#
# Tests run without privileges, other than those granted by tunbr, which
# must be installed first, along with interfaces-bridge.sh, proxy.sh, and
# dnsmasq.sh as described in cbtb/host-setup/README.
# Defaults to testing on dapper/i386 installe... | Shell |
#!/bin/sh -x
# build packages and UML test kernel natively on Debian/etch i386
set -e
DIST=etch
ARCH=i386
# Get the directory paths (grandparent)
pushd ../..
SRC=${PWD}
BUILD_DIR=${SRC}/build
if [ ! -d $BUILD_DIR ]
then
mkdir -p $BUILD_DIR
fi
popd
# Cache the prepared userspace. Runs once.
ext3=$BUILD_DIR/$DI... | Shell |
#!/bin/sh -x
# build packages and UML test kernel natively on Debian/etch i386
set -e
DIST=etch
ARCH=i386
# Get the directory paths (grandparent)
pushd ../..
SRC=${PWD}
BUILD_DIR=${SRC}/build
if [ ! -d $BUILD_DIR ]
then
mkdir -p $BUILD_DIR
fi
popd
# Cache the prepared userspace. Runs once.
ext3=$BUILD_DIR/$DI... | Shell |
#!/bin/sh -x
# Run the zumastor distribution and arch ext3 image using UML COW verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# DIST and ARCH default to dapper/i386. but may be specified. Currently
# only DIST=etch, ARCH=i38... | Shell |
#!/bin/sh -x
#
# Make a tarball of the root system of a basic Ubunutu/dapper system,
# for use in preparing UML root partition images
#
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ../..
SRC=$PWD
BUILD_DIR="$SRC/build"
SVNREV=`awk '/^[0-9]+$/ { pr... | Shell |
#!/bin/sh -x
#
# Make a tarball of the root system of a basic Ubunutu/dapper system,
# for use in preparing UML root partition images
#
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ../..
SRC=$PWD
BUILD_DIR="$SRC/build"
SVNREV=`awk '/^[0-9]+$/ { print $1... | Shell |
#!/bin/sh -x
set -e
# Get the directory paths (grandparent)
pushd ../..
SRC=${PWD}
BUILD_DIR=${SRC}/build
if [ ! -d $BUILD_DIR ]
then
mkdir -p $BUILD_DIR
fi
popd
# Cache the prepared dapper userspace. Runs once.
dapperext3=$BUILD_DIR/dapper-i386.ext3
if [ ! -e $dapperext3 ]
then
./debootstrap-dapper-i386.sh
fi... | Shell |
#!/bin/sh -x
# Run the zuma/dapper/i386 ext3 image using UML COW verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ..... | Shell |
#!/bin/sh
# $Id$
#
# Tests run without privileges, other than those granted by tunbr, which
# must be installed first, along with interfaces-bridge.sh, proxy.sh, and
# dnsmasq.sh as described in cbtb/host-setup/README.
# Defaults to testing on dapper/i386 installed template images, DIST=etch
# and ARCH=i386 may also c... | Shell |
#!/bin/sh -x
# $Id: smoke.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# build-i386.sh requires root privs via sudo, so this smoke test may
# only be run interactively and is inherently somewhat dangerous.
# You should inspect the scripts before running them.
#
# Several portions of this script require your host ha... | Shell |
#!/bin/sh -x
# Run this only on Debian or Debian-derivative systems for now.
# Manually inspect and run the components modified as necessary on
# other systems.
set -e
stagefile=`mktemp`
tmpdir=`mktemp -d`
# install tunbr setuid root
if [ ! -x /usr/local/bin/tunbr ]
then
pushd ../tunbr
make tunbr
mv tunbr $tm... | Shell |
#!/bin/sh -x
# $Id: smoke.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# build-i386.sh requires root privs via sudo, so this smoke test may
# only be run interactively and is inherently somewhat dangerous.
# You should inspect the scripts before running them.
#
# Several portions of this script require your host ha... | Shell |
#!/bin/sh -x
#
# Make a tarball of the root system of a basic Ubunutu/dapper system,
# for use in preparing UML root partition images
#
# $Id: debootstrap-dapper-i386.sh 1279 2008-01-15 04:44:35Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ..... | Shell |
#!/bin/sh -x
#
# Make a tarball of the root system of a basic Ubunutu/dapper system,
# for use in preparing UML root partition images
#
# $Id: debootstrap-etch-i386.sh 1295 2008-01-19 01:07:07Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ../.... | Shell |
#!/bin/sh -x
set -e
# Get the directory paths (grandparent)
pushd ../..
SRC=${PWD}
BUILD_DIR=${SRC}/build
if [ ! -d $BUILD_DIR ]
then
mkdir -p $BUILD_DIR
fi
popd
# Cache the prepared dapper userspace. Runs once.
dapperext3=$BUILD_DIR/dapper-i386.ext3
if [ ! -e $dapperext3 ]
then
./debootstrap-dapper-i386.sh
fi... | Shell |
#!/bin/sh -x
# Run the zumastor distribution and arch ext3 image using UML COW verify that it works.
# The template should be left unmodified.
# Any parameters are copied to the destination instance and executed as root
# DIST and ARCH default to dapper/i386. but may be specified. Currently
# only DIST=etch, ARCH=i38... | Shell |
#!/bin/sh
#
# $Id: tunbr-config 1004 2007-11-30 16:05:47Z drake.diedrich $
#
# Source /etc/default/testenv for the VIRT* variables, and output
# appropriate compiler flags to build a locally customized tunbr
# for the network and interface bridge specified.
if [ -x /etc/default/testenv ]
then
. /etc/default/testenv
... | Shell |
#!/bin/sh
#
# $Id$
#
# Source /etc/default/testenv for the VIRT* variables, and output
# appropriate compiler flags to build a locally customized tunbr
# for the network and interface bridge specified.
if [ -x /etc/default/testenv ]
then
. /etc/default/testenv
fi
if [ "x$VIRTNET" != "x" ]
then
echo $VIRTNET | \
... | Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol daily
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol daily
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol hourly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol hourly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol weekly
done
| Shell |
#!/bin/bash
for vol in $(ls /var/run/zumastor/cron) ; do
zumastor snapshot $vol weekly
done
| Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/sh
rm /bin/zumastor
rm -r /lib/zumastor
rm -r /var/lib/zumastor
rm -r /var/run/zumastor
rm -r /var/log/zumastor
rm /etc/cron.hourly/zumastor
rm /etc/cron.daily/zumastor
rm /etc/cron.weekly/zumastor
rm /etc/init.d/zumastor
rm -r /etc/zumastor
| Shell |
#!/bin/sh
[ -z "$DESTDIR" ] && DESTDIR=/
rm ${DESTDIR}/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/run/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/etc/zumastor >/dev/null 2>&1 # in case of symlink
echo ${DESTD... | Shell |
#!/bin/bash
. /lib/zumastor/common
clear
while true; do
clear
for vol in $(ls $VOLUMES 2>/dev/null); do
echo Volume $vol:
sock=$SERVERS/$vol
size=$(ddsnap status $sock --size) || exit 1
size=$(($size*512))
for host in $(ls $VOLUMES/$vol/targets 2>/dev/null); do
echo " Target: $host"
sendfile=$VOLUMES/$vol/t... | Shell |
#!/bin/sh
rm /bin/zumastor
rm -r /lib/zumastor
rm -r /var/lib/zumastor
rm -r /var/run/zumastor
rm -r /var/log/zumastor
rm /etc/cron.hourly/zumastor
rm /etc/cron.daily/zumastor
rm /etc/cron.weekly/zumastor
rm /etc/init.d/zumastor
rm -r /etc/zumastor
| Shell |
#!/bin/sh
ln -s $(pwd)/bin/zumastor /bin/zumastor
ln -s $(pwd)/lib/zumastor /lib/zumastor
ln -s $(pwd)/var/lib/zumastor /var/lib/zumastor
ln -s $(pwd)/var/run/zumastor /var/run/zumastor
ln -s $(pwd)/var/log/zumastor /var/log/zumastor
ln -s $(pwd)/etc/cron.hourly/zumastor /etc/cron.hourly/zumastor
ln -s $(pwd)/etc/cro... | Shell |
#!/bin/sh
[ -z "$DESTDIR" ] && DESTDIR=/
rm ${DESTDIR}/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/lib/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/var/run/zumastor >/dev/null 2>&1 # in case of symlink
rm ${DESTDIR}/etc/zumastor >/dev/null 2>&1 # in case of symlink
echo ${DESTD... | Shell |
#!/bin/bash
. /lib/zumastor/common
clear
while true; do
clear
for vol in $(ls $VOLUMES 2>/dev/null); do
echo Volume $vol:
sock=$SERVERS/$vol
size=$(ddsnap status $sock --size) || exit 1
size=$(($size*512))
for host in $(ls $VOLUMES/$vol/targets 2>/dev/null); do
echo " Target: $host"
sendfile=$VOLUMES/$vol/t... | Shell |
#!/bin/sh
ln -s $(pwd)/bin/zumastor /bin/zumastor
ln -s $(pwd)/lib/zumastor /lib/zumastor
ln -s $(pwd)/var/lib/zumastor /var/lib/zumastor
ln -s $(pwd)/var/run/zumastor /var/run/zumastor
ln -s $(pwd)/var/log/zumastor /var/log/zumastor
ln -s $(pwd)/etc/cron.hourly/zumastor /etc/cron.hourly/zumastor
ln -s $(pwd)/etc/cro... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
### BEGIN INIT INFO
# Provides: zumastor
# Required-Start: $network
# Required-Stop: $network
# Should-Start: lvm $named
# should-Sto... | Shell |
#!/bin/sh
if [ "$1" = "purge" ] ; then
rm -rf /var/lib/zumastor
fi
| Shell |
#!/bin/sh
if [ "$1" = "purge" ] ; then
rm -rf /var/lib/zumastor
fi
| Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
declare -r VOLUMES=/var/lib/zumastor/volumes
declare -r RUNPATH=/var/run/zumastor
declare -r LOGS=/var/log/zumastor
declare -r RUNFILE=$RUNPATH/running
dec... | Shell |
#!/bin/bash
# Zumastor Linux Storage Server
# Copyright (c) 2006 Google Inc.
# Author: Daniel Phillips <phillips@google.com>
# Licensed under the GNU GPL version 2
declare -r VOLUMES=/var/lib/zumastor/volumes
declare -r RUNPATH=/var/run/zumastor
declare -r LOGS=/var/log/zumastor
declare -r RUNFILE=$RUNPATH/running
dec... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.