code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
output_dir=$1
for dir in `ls $output_dir`; do
[[ -d $output_dir/$dir ]] || continue
rm -f $output_dir/$dir.dots
rm -f /tmp/dots
for subdir in `ls $output_dir/$dir`; do
tail -n 1 $output_dir/$dir/$subdir/summary >> /tmp/dots
sort -n /tmp/dots > $output_dir/$dir.dots
done
done
echo set title \"Fst... | Shell |
#!/bin/bash
# example script for comparing nfs performances of nfs-only (without zumastor),
# nfs-zumastor (with zumastor and zero snapshot), and nfs-snapshot (with zumastor and one snapshot)
# please change the testing nfs loads according to the server capacity
LOADS="200 400 600 800 1000"
# type of tests
TESTS="nfs... | Shell |
#!/bin/sh
echo set title \"Time to untar a kernel source tree vs Number of Snapshots\"
echo set xlabel \"Number of Snapshots\"
echo set ylabel \"Real time \(s\) to untar kernel and sync\"
echo set key below
echo set terminal postscript enhanced color
echo set output \"all_tests.ps\"
echo -n "plot "
count=0
for testfil... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
AGENT_LOG=/tmp/agent.log
SERVER_LOG=/tmp/server.log
AGENT_PIPE=/tmp/control
SERVER_PIPE=/tmp/server
. config.sh
global_test_num=0
function setup_tar() {
mkfs.ext3 $TAR_DEV || { echo "unable to mkfs tar device"; exit 1; }
mount_dir $TAR_DEV $TAR_MNT
... | Shell |
#!/bin/sh
set -u # let make sure we use initialized variable
AGENT_LOG=/tmp/agent.log
SERVER_LOG=/tmp/server.log
AGENT_PIPE=/tmp/control
SERVER_PIPE=/tmp/server
. config.sh
global_test_num=0
function setup_tar() {
mkfs.ext3 $TAR_DEV || { echo "unable to mkfs tar device"; exit 1; }
mount_dir $TAR_DEV $TAR_MNT
... | Shell |
#!/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/sh
echo set title \"Time to untar a kernel source tree vs Number of Snapshots\"
echo set xlabel \"Number of Snapshots\"
echo set ylabel \"Real time \(s\) to untar kernel and sync\"
echo set key below
echo set terminal postscript enhanced color
echo set output \"all_tests.ps\"
echo -n "plot "
count=0
for testfil... | Shell |
#!/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 1302 2008-01-24 02:08:44Z jiahotcake $
#
# 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 reserve... | 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 1283 2008-01-15 23:56:22Z 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 1276 2008-01-14 19:25:14Z drake.diedrich $
# Copyright 2007 Google Inc.
# Author... | Shell |
#!/bin/bash -x
#
# $Id: ptxdist-image.sh 1279 2008-01-15 04:44:35Z drake.diedrich $
#
# 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]+)?$/ { prin... | Shell |
#!/bin/sh -x
#
# $Id: dapper-build.sh 1290 2008-01-18 18:44:46Z 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 1293 2008-01-18 22:03:12Z 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
# 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 1294 2008-01-18 22:26:44Z 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 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 1288 2008-01-17 23:42:16Z 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-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 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: 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: 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 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 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.