code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash -x # # $Id: buildcurrentsrc.sh 1611 2008-04-29 21:21:23Z williamanowak $ # # based on buildcurrent.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 # Only builds deb src packages for upload to ...
Shell
#!/bin/bash # zumastor automated build script # Shapor Naghibzadeh <shapor@google.com> KERNEL_VERSION=2.6.22.10 BUILD_DIR=build # relative to current directory LOG=/dev/null TIME=`date +%s` [[ -e $1 ]] || { echo "Usage: $0 <path_to_kernel_config> [revision]"; exit 1; } [[ $# -eq 2 ]] && REV="-r $2" mkdir $BUILD_DIR...
Shell
#!/bin/bash # zumastor automated build script # Shapor Naghibzadeh <shapor@google.com> KERNEL_VERSION=2.6.22.10 BUILD_DIR=build # relative to current directory LOG=/dev/null TIME=`date +%s` [[ -e $1 ]] || { echo "Usage: $0 <path_to_kernel_config> [revision]"; exit 1; } [[ $# -eq 2 ]] && REV="-r $2" mkdir $BUILD_DIR...
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 1697 2008-06-06 21:38:31Z 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 1534 2008-04-11 18:...
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 1631 2008-05-01 21:32:45Z williamanowak $ # # 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 Virt...
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 -y timeout uml-utilities pwgen qemu
Shell
#!/bin/sh -x # # $Id: dnsmasq.sh 1404 2008-02-16 00:22:17Z 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 1530 2008-04-08 22:58:28Z williamanowak $ # # Install any other zumastor testenv (cbtb) dependencies aptitude install -y timeout uml-utilities pwgen qemu
Shell
#!/bin/sh # # $Id: atftpd.sh 1362 2008-02-13 00:28:42Z 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 1404 2008-02-16 00:22:17Z 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 1648 2008-05-07 20:51:43Z williamanowak $ # 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 # # $Id$ # # Launch the zumastor continuous build, test, and install scripts # on all of the automated repository branches. # Must be run as the unprivileged zbuild user. # Usually run under su from the init.d script. set -e for branch in /home/zuabuild /home/zuabuild/0.9 do cd ${branch} rm -f zumastor/...
Shell
#!/bin/sh -x # # $Id: dapper-build.sh 1611 2008-04-29 21:21:23Z williamanowak $ # # 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 t...
Shell
#!/bin/sh -x # # $Id: runtests.sh 1600 2008-04-27 20:56:40Z williamanowak $ # # # 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...
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 # # $Id$ # # Launch the zumastor continuous build, test, and install scripts # on all of the automated repository branches. # Must be run as the unprivileged zbuild user. # Usually run under su from the init.d script. set -e for branch in /home/zuabuild /home/zuabuild/0.9 do cd ${branch} rm -f zumastor/...
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 # # $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 \ /var/lib/misc/tunbr.le...
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 1568 2008-04-21 20:56:52Z williamanowak $ # Copyright 2007 Google Inc. # Author: Drake Diedrich <dld@googl...
Shell
#!/bin/sh -x # # $Id: continuous-install.sh 1600 2008-04-27 20:56:40Z williamanowak $ # # 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...
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 1580 2008-04-24 00:59:00Z williamanowak $ # # # 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 \ /var/lib/misc/tunbr.le...
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 NUMDEVS=2 DEV1SIZE=4 DEV2SIZE=8 #DEV1NAME=/dev/null #DEV2NAME=/dev...
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 NUMDEVS=2 DEV1SIZE=4 DEV2SIZE=8 #DEV1NAME=/dev/null #DEV2NAME=/dev...
Shell
#!/bin/sh -x # # $Id: replication-zumastor.sh 1698 2008-06-06 22:35:13Z williamanowak $ # # 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 als...
Shell
#!/bin/sh -x # # $Id: replication-zumastor-slave-ssh.sh 1647 2008-05-07 20:35:09Z williamanowak $ # # 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 t...
Shell
#!/bin/sh -x # # $Id: nfs-test.sh 1707 2008-06-12 19:17:35Z williamanowak $ # # 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 1709 2008-06-13 15:41:38Z williamanowak $ # # 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 modificati...
Shell
#!/bin/sh -x # # $Id: replication-ddsnap.sh 1698 2008-06-06 22:35:13Z williamanowak $ # # 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...
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 1698 2008-06-06 22:35:13Z williamanowak $ # # 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: nfs4-zumastor-snapshot.sh 1698 2008-06-06 22:35:13Z williamanowak $ # # 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 (...
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-xfs-lvm-17T.sh 1670 2008-05-28 18:14:13Z 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: ddsnap-kernel.sh 1631 2008-05-01 21:32:45Z williamanowak $ # # Make sure we can load the ddsnap kernel module # # Copyright 2007 Google Inc. All rights reserved # Author: Will Nowak (willn@google.com) set -e TIMEOUT=1200 NUMDEVS=0 echo "1..4" depmod -a echo 'ok 1 - depmod' # Try to load the...
Shell
#!/bin/sh -x # # $Id: snapshot-zumastor-reiserfs.sh 1581 2008-04-24 20:27:34Z williamanowak $ # # 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/bash -x # # Write some data to a ddsnap volume, create and delete various snapshots, # and ensure that the origin and the snapshot always contain the expected # data. # # Copyright 2008 Google Inc. All rights reserved # Author: Steve VanDeBogart (vandebo@google.com) # Test harness parameters TIMEOUT=300 NUMDEV...
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 1642 2008-05-02 18:10:38Z williamanowak $ # # 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 b...
Shell
#!/bin/sh -x # # $Id: snapshot-zumastor-ext2.sh 1581 2008-04-24 20:27:34Z williamanowak $ # # 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: boot-order.sh 1631 2008-05-01 21:32:45Z williamanowak $ # # 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 NUMDEVS=0 env echo "1..3" r...
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 NUMDEVS=2 DEV1SIZE=8 DEV2SIZE=4 #DEV1NAME=/dev/null #DEV2NAME=/dev...
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 1623 2008-04-30 23:33:18Z williamanowak $ # # 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 re...
Shell
#!/bin/sh -x # # $Id: snapshot-zumastor-ext3.sh 1581 2008-04-24 20:27:34Z williamanowak $ # # 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 # # Verify that ddsnap handles snapshot squashing/autodelete correctly. # # Copyright 2008 Google Inc. All rights reserved # Author: Jiaying Zhang (jiayingz@google.com) set -e NUMDEVS=2 DEV1SIZE=8 DEV2SIZE=4 MAXSNAPSHOTS=64 echo "1..10" apt-get update ddsnap initialize -y -c 8k $DEV2NAME $DEV1NAME ...
Shell
#!/bin/sh -x # # $Id: snapshot-ddsnap.sh 1648 2008-05-07 20:51:43Z williamanowak $ # # 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.co...
Shell
#!/bin/sh -x # # $Id: snapshot-zumastor-ext2.sh 1581 2008-04-24 20:27:34Z williamanowak $ # # Test to make sure there are no files with the same name in # /proc/driver/ddsnap # http://code.google.com/p/zumastor/issues/detail?id=126 # # Copyright 2007-2008 Google Inc. All rights reserved # Author: Will Nowak (willn@goo...
Shell
#!/bin/sh -x # # Verify ddsnap journal replay works correctly when # 'ddsnap server' restarts after an unclean exit # # Copyright 2008 Google Inc. All rights reserved # Author: Jiaying Zhang (jiayingz@google.com) set -e EXPECT_FAIL=1 NUMDEVS=2 DEV1SIZE=32 DEV2SIZE=32 echo "1..5" # Five checking steps in this test...
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 NUMDEVS=0 env echo "1..3" rc=0 apt-get update aptitude install -y insserv nfs-kern...
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 NUMDEVS=2 DEV1SIZE=8 DEV2SIZE=4 #DEV1NAME=/dev/null #DEV2NAME=/dev...
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$ # # 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 sure we can load the ddsnap kernel module # # Copyright 2007 Google Inc. All rights reserved # Author: Will Nowak (willn@google.com) set -e TIMEOUT=1200 NUMDEVS=0 echo "1..4" depmod -a echo 'ok 1 - depmod' # Try to load the kernel module, but don't fail if it isn't there. # ddsnap ...
Shell
#!/bin/sh # # Verify that zumastor handles snapshot squashing/autodelete correctly. # # Copyright 2008 Google Inc. All rights reserved # Author: Jiaying Zhang (jiayingz@google.com) set -e # wait for file. The first argument is the timeout, the second the file. timeout_file_wait() { local max=$1 local file=$2 l...
Shell