add some small testscripts

This commit is contained in:
jmann 2012-09-27 14:51:59 +02:00 committed by Thomas Schoebel-Theuer
parent 9016c81057
commit 2dfd37d708
4 changed files with 125 additions and 0 deletions

73
testing/loop.sh Executable file
View File

@ -0,0 +1,73 @@
#!/bin/bash
#
# Test same mars values ...
# joerg.mann@1und1.de - at Do 27. Sep 14:46:24 CEST 2012
STIME="5"
DEVICE="Device-BS3"
### testing
# modprobe / rmmod + dd + delete + rotate
# mkfs + delete + rotate
# dd + delete + rotate
# big-dd + delete + rotate
# blkreplay + delete + rotate
# dd + secondary + primary + delete + rotate
# ...
# - schnell unter last rotieren / umschalten
# - zeit bei dd fuer sync/replay messen & vergleichen
# - md5 bei dd vergleichen
# ...
while true
do
echo "********* start at `/bin/date` *********"
# echo "--> modprobe"
# modprobe mars
# sleep $STIME
# echo "--> mkfs"
# mkfs.xfs -f /dev/mars/$DEVICE
# sleep $STIME
echo "---> dd"
dd if=/dev/zero of=/dev/mars/$DEVICE/testfile bs=100M count=10
md5sum /dev/mars/$DEVICE/testfile
# echo "---> dd-big"
# dd if=/dev/zero of=/dev/mars/$DEVICE/testfile bs=1G count=10
# md5sum /dev/mars/$DEVICE/testfile
# cd /var/log/blktrace
# zcat *infong946*gz| /root/blktrace/blkreplay64 /dev/mars/TestBS7 2.0 >/dev/null
# sleep $STIME
echo "--> logrotate"
marsadm log-rotate $DEVICE
# sleep $STIME
echo "--> logdelete"
marsadm log-delete-all $DEVICE
# sleep $STIME
# echo "--> secondary"
# marsadm secondary $DEVICE
# sleep $STIME
# echo "--> primary"
# marsadm primary $DEVICE
# sleep $STIME
# echo "--> rmmod"
# sleep $STIME
# sleep $STIME
# rmmod mars
echo "--> wait ..."
sleep $STIME
done
exit

12
testing/make-ssh.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
#
# login ...
if [ "$1" = "" ]; then
echo "Host unknown ...."
echo "(use short hostname bap2/bs1/lxa2 ...)"
exit
fi
while true; do ssh -A $1; sleep 2; done

12
testing/make-xosview.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
#
# make xosoview ...
if [ "$1" = "" ]; then
echo "Host unknown ...."
echo "(use short hostname bap2/bs1/lxa2 ...)"
exit
fi
SHST=`echo "$1"|sed -e 's!.*-!!'`
while true; do ssh -X $1 xosview -title $SHST -int; sleep 2; done

28
testing/make.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
#
# bauen von mars auf istore umgebung ...
# joerg.mann@1und1.de - at Do 27. Sep 14:47:33 CEST 2012
# aktuelles ulli zeugs holen ...
cd /home/test/work-mars-module-bauen
rm -rf sources
git clone ssh://git@git.schlund.de/multi-packages/ui-mars-multi.git /home/test/work-mars-module-bauen/sources/
cd sources
git pull
# gid-id die verwendet werden soll ...
CID="bad5c4f52724e2575187690875a6758481e216a7/WIP-3.2"
DIR="/home/test/work-mars-module-bauen/sources"
# host - auf dem ersten wird gebaut ! auf kernel-version achten !
#HST="ovzd-test-bs1:
#HST="ovzd-test-bap1:ovzd-test-lxa1:ovzd-test-bs2:ovzd-test-bap2:ovzd-test-lxa2"
HST="istore-test-bs7:istore-test-bap7"
HST="$HST:istore-test-bs3:istore-test-bs4:istore-test-bs5:istore-test-bs6"
HST="$HST:istore-test-bap3:istore-test-bap4:istore-test-bap5:istore-test-bap6"
# action ...
bash helper-scripts/create-multiple-new-versions $DIR $HST $CID
cd ..