code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
set -u # let make sure we use initialized variable
#setting up system parameters for nsnaps script
#Example:
#VOLUME_NAME= volume you are replicating
#ORIGIN_MOUNT= location of the volume's mount point
#TAR_DEV= tar device
#TAR_MNT= location of where TAR_DEV is mounted
#SOURCE_TAR= kernel source tree
#KERN... | Shell |
#!/bin/bash -x
#
# $Id: buildcurrent.sh 1265 2008-01-10 23:04:05Z drake.diedrich $
#
# based on build_packages.sh
# builds whatever is in current working directory,
# does not pull any external source
# may be run inside an isolated virtual machine for safe automatic builds
#
# Copyright 2007 Google Inc. All rights res... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id: etch-late.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: ... | Shell |
#!/bin/sh -x
# Run the etch/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# $Id: test-etch-i386.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
if [ "x$MACFILE" = "x" -o "x$MA... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id: dapper-late.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id: etch-early.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh -x
# Set up the initial Ubuntu/dapper template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq. Must run from the cbtb/host-setup/
# directory to use other scripts and data.
# $Id: dapper-i386.sh 1004 2007-11-30 16:... | Shell |
#!/bin/sh -x
# Run the 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: test-dapper-i386.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Di... | Shell |
#!/bin/sh
#
# $Id: proxy.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# Set up the local machine (Debian or derivative) with the pass-through proxy.
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# if apache2 was already installed and the default Vir... | Shell |
#!/bin/sh
#
# $Id: proxy.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# Install debootstrap and configure for dapper if necessary
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# install debootstrap
if [ ! -x /usr/sbin/debootstrap ]
then
if [ -f /e... | Shell |
#!/bin/sh
# Turn the swap partition into a physical volume in the sysvg volume group
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
modprobe dm-mod || true
if egrep dm_mod /proc/modules ; then
dev=`awk '/swap/ { print $1; }' /etc/fstab`
egrep dm-mod /etc/mo... | Shell |
#!/bin/sh
#
# $Id$
#
# Install and configure atftpd for use with the virtualization test
# environment for zumastor.
#
# Copyright 2007 Google Inc. All rights reserved.
# Author: Drake Diedrich (dld@google.com)
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# Create /tftpboot if it doe... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
mkdir /target/root/.ssh
cp /authorized_ke... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Install and configure dnsmasq to dynamically serve DNS and DHCP
# for the range of addresses managed by tunbr, part of the zumastor
# virtual test environment.
# The default /etc/dnsmasq.conf is locally diverted and replaced
# with the configuration file inline below, with instructions o... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh -x
# Set up the initial Ubuntu/dapper template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq. Must run from the cbtb/host-setup/
# directory to use other scripts and data.
# $Id$
# Copyright 2007 Google Inc.
# Aut... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Add the br1 bridge to /etc/network/interfaces, as required by tests in
# the tunbr virtualization environment.
#
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
VIRTBR="br1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
if echo $VIRTNET | egrep "/24"
then
NETWORK=`echo $VIRTNET |... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh
#
# $Id$
#
# Set up the local machine (Debian or derivative) with the pass-through proxy.
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# if apache2 was already installed and the default VirtualHost is already
# enabled, leave it alone. Else... | Shell |
#!/bin/sh -x
# Run the 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
SSH='ssh -o S... | Shell |
#!/bin/sh -x
# Set up the initial Debian/etch template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
SSH='ssh -o Strict... | Shell |
#!/bin/sh -x
# Run the etch/i386 image using -snapshot to verify that it works.
# The template should be left unmodified.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
if [ "x$MACFILE" = "x" -o "x$MACADDR" = "x" -o "x$IFACE" = "x" \
-o "x$IPADDR" = "x" ] ... | Shell |
#!/bin/sh
#
# $Id: proxy.sh 1198 2007-12-22 11:43:15Z drake.diedrich $
#
# Install debootstrap and configure for dapper if necessary
set -e
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] && . /etc/default/testenv
# install debootstrap
if [ ! -x /usr/sbin/debootstrap ]
then
if [ -f /e... | Shell |
#!/bin/sh
# run after the base packages are installed, from inside the d-i environment
# copied into the initrd so it doesn't need to be fetched over network
# connections.
# $Id$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
mkdir /target/root/.ssh
cp /authorized_ke... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Install any other zumastor testenv (cbtb) dependencies
aptitude install timeout uml-utilities
| Shell |
#!/bin/sh -x
#
# $Id: dnsmasq.sh 1254 2008-01-09 04:14:43Z drake.diedrich $
#
# Install and configure dnsmasq to dynamically serve DNS and DHCP
# for the range of addresses managed by tunbr, part of the zumastor
# virtual test environment.
# The default /etc/dnsmasq.conf is locally diverted and replaced
# with th... | Shell |
#!/bin/sh -x
#
# $Id: dependencies.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
#
# Install any other zumastor testenv (cbtb) dependencies
aptitude install timeout uml-utilities
| Shell |
#!/bin/sh
#
# $Id: atftpd.sh 1220 2008-01-03 23:39:24Z drake.diedrich $
#
# Install and configure atftpd for use with the virtualization test
# environment for zumastor.
#
# Copyright 2007 Google Inc. All rights reserved.
# Author: Drake Diedrich (dld@google.com)
VIRTHOST="192.168.23.1"
[ -x /etc/default/testenv ] &&... | Shell |
#!/bin/sh
# run early in the dapper install, from the preseed
# $Id: dapper-early.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
| Shell |
#!/bin/sh -x
#
# $Id: interfaces-bridge.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
#
# Add the br1 bridge to /etc/network/interfaces, as required by tests in
# the tunbr virtualization environment.
#
VIRTNET="192.168.23.0/24"
VIRTHOST="192.168.23.1"
VIRTBR="br1"
[ -x /etc/default/testenv ] && . /etc/default/testenv... | Shell |
#!/bin/sh
# Turn the swap partition into a physical volume in the sysvg volume group
# $Id: swap2sysvg.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
modprobe dm-mod || true
if egrep dm_mod /proc/modules ; then
dev=`awk ... | Shell |
#!/bin/sh -x
# Set up the initial Debian/etch template image, for use when duplicating
# the install to multiple server/client tests. Makes use of tunbr and
# a presetup br1, squid, and dnsmasq.
# $Id: etch-i386.sh 1004 2007-11-30 16:05:47Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@... | 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: test-zuma-dapper-i386.sh 1254 2008-01-09 04:14:43Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author... | Shell |
#!/bin/bash -x
#
# $Id: ptxdist-image.sh 688 2007-09-12 23:05:01Z chklin $
#
# based partially on buildcurrent.sh
# builds a ptxdist image with zumastor kernel and userland support
#
# Copyright 2007 Google Inc.
# Author: Chuan-kai Lin (cklin@google.com)
KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' ... | Shell |
#!/bin/sh -x
#
# $Id: dapper-build.sh 1230 2008-01-04 19:57:09Z drake.diedrich $
#
# Launch a dapper-i386 snapshot
# create a build user in the snapshot
# copy the zumastor source to ~build
# run buildcurrent.sh as user build in the testenv instance
# pull the debs out of the instance
# shut down the instance
#
# Copy ... | Shell |
#!/bin/sh -x
#
# $Id: runtests.sh 1254 2008-01-09 04:14:43Z drake.diedrich $
#
#
# 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 i... | 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$
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
# wait for ssh to work. Param... | Shell |
#!/bin/sh -x
#
# $Id$
#
# Launch a dapper-i386 snapshot
# create a build user in the snapshot
# copy the zumastor source to ~build
# run buildcurrent.sh as user build in the testenv instance
# pull the debs out of the instance
# shut down the instance
#
# Copy this to a directory outside the working directory, and laun... | Shell |
#!/bin/sh -x
#
# $Id$
#
# 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.
repo="${PWD}/zumastor"
top="${PWD}"
branch=`cat $repo/Version`
buil... | Shell |
#!/bin/bash -x
#
# $Id$
#
# based partially on buildcurrent.sh
# builds a ptxdist image with zumastor kernel and userland support
#
# Copyright 2007 Google Inc.
# Author: Chuan-kai Lin (cklin@google.com)
KERNEL_VERSION=`awk '/^2\.6\.[0-9]+(\.[0-9]+)?$/ { print $1; }' KernelVersion`
if [ "x$KERNEL_VERSION" = "x" ] ; th... | Shell |
#!/bin/sh -x
#
# $Id$
#
#
# 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
sendmail=/usr/sbin/sendmail
biabam=/usr/bin/biabam
TUNBR=tunbr... | Shell |
#!/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 -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
SSH='ssh... | 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 1232 2008-01-05 03:19:41Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@goog... | Shell |
#!/bin/sh -x
#
# $Id: continuous-install.sh 1225 2008-01-04 03:46:36Z 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 1254 2008-01-09 04:14:43Z 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 1272 2008-01-11 02:42:57Z 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 -x
#
# $Id: replication-zumastor.sh 1252 2008-01-09 01:50:22Z drake.diedrich $
#
# 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 al... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-slave-ssh.sh 1269 2008-01-11 00:49:00Z drake.diedrich $
#
# 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 ... | Shell |
#!/bin/sh -x
#
# $Id: nfs-test.sh 1257 2008-01-09 19:30:24Z drake.diedrich $
#
# 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)... | Shell |
#!/bin/sh -x
#
# $Id: replication-zumastor-names.sh 1256 2008-01-09 18:49:45Z drake.diedrich $
#
# 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 modificat... | 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$
#
# 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-snapshots-zumastor.sh 1268 2008-01-11 00:47:54Z drake.diedrich $
#
# 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... | 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$
# 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 1253 2008-01-09 04:03:02Z drake.diedrich $
#
# 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
#... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-xfs-lvm-5T.sh 1253 2008-01-09 04:03:02Z drake.diedrich $
#
# 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 ... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext2.sh 1253 2008-01-09 04:03:02Z drake.diedrich $
#
# 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: 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: snapshot-zumastor-xfs-2045G.sh 1238 2008-01-05 06:06:28Z drake.diedrich $
#
# 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 r... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-ext3.sh 1253 2008-01-09 04:03:02Z drake.diedrich $
#
# 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-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$
#
# 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$
#
# 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$
#
# 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: bashisms.sh 1230 2008-01-04 19:57:09Z drake.diedrich $
#
# 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... | Shell |
#!/bin/sh -x
#
# $Id: snapshot-zumastor-jfs.sh 1253 2008-01-09 04:03:02Z drake.diedrich $
#
# 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
# Auth... | 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 1198 2007-12-22 11:43:15Z 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 1238 2008-01-05 06:06:28Z 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"
if [ -f SVNREV ] ; then
SVNREV=`... | 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 1216 2008-01-03 03:37:53Z 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 1265 2008-01-10 23:04:05Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author: Drake Diedrich <dld@google.com>
# License: GPLv2
set -e
pushd ../.... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.