diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2012-12-05 21:33:10 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-05 23:37:38 +0100 |
commit | a2acf381c20044c5524b4e3eda344497e2494df3 (patch) | |
tree | 182fca983932dc82bc6e046e204a9e80050ef9d4 /bin | |
parent | fc80303c88e7bec85ebd8cf4389ed69cf694fede (diff) | |
download | jenkins.debian.net-a2acf381c20044c5524b4e3eda344497e2494df3.tar.xz |
Make it easier to change the RAM size of the virtual machines by moving the value into a RAMSIZE variable.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cd_tester.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh index ef9abcb3..6cddda66 100755 --- a/bin/cd_tester.sh +++ b/bin/cd_tester.sh @@ -33,6 +33,7 @@ DISPLAY=localhost:$1 NAME=$2 DISKSIZE_IN_GB=$3 URL=$4 +RAMSIZE=1024 if [ "$(basename $URL)" != "amd64" ] ; then IMAGE=$(pwd)/$(basename $URL) IMAGE_MNT="/media/cd-$NAME.iso" @@ -90,7 +91,7 @@ bootstrap() { curl -s http://localhost/userContent/${NAME}-preseed.cfg | grep -v ^# |grep -v "^$" echo echo "Starting QEMU now:" - sudo qemu-system-x86_64 -cdrom $IMAGE -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot d -m 1024 -display vnc=$DISPLAY --kernel $IMAGE_MNT/install.amd/vmlinuz --append "auto=true priority=critical locale=en_US keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 initrd=/install.amd/gtk/initrd.gz -- quiet" --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz & + sudo qemu-system-x86_64 -cdrom $IMAGE -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot d -m $RAMSIZE -display vnc=$DISPLAY --kernel $IMAGE_MNT/install.amd/vmlinuz --append "auto=true priority=critical locale=en_US keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 initrd=/install.amd/gtk/initrd.gz -- quiet" --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz & ;; squeeze-test-debian-edu-standalone) echo "Preseeding used:" @@ -98,7 +99,7 @@ bootstrap() { curl -s http://localhost/userContent/${NAME}-preseed.cfg | grep -v ^# |grep -v "^$" echo echo "Starting QEMU now:" - sudo qemu-system-x86_64 -cdrom $IMAGE -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot d -m 1024 -display vnc=$DISPLAY --kernel $IMAGE_MNT/install.amd/vmlinuz --append "auto=true priority=critical locale=en_US console-keymaps-at/keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 initrd=/install.amd/gtk/initrd.gz -- quiet" --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz & + sudo qemu-system-x86_64 -cdrom $IMAGE -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot d -m $RAMSIZE -display vnc=$DISPLAY --kernel $IMAGE_MNT/install.amd/vmlinuz --append "auto=true priority=critical locale=en_US console-keymaps-at/keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 initrd=/install.amd/gtk/initrd.gz -- quiet" --initrd $IMAGE_MNT/install.amd/gtk/initrd.gz & ;; wheezy-lxde) echo "Preseeding used:" @@ -106,7 +107,7 @@ bootstrap() { curl -s http://localhost/userContent/${NAME}-preseed.cfg | grep -v ^# |grep -v "^$" echo echo "Starting QEMU now:" - sudo qemu-system-x86_64 -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot c -m 1024 -display vnc=$DISPLAY --kernel $KERNEL --append "auto=true priority=critical desktop=lxde locale=en_US keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 --" --initrd $INITRD & + sudo qemu-system-x86_64 -drive file=$NAME.raw,index=0,media=disk,cache=writeback -boot c -m $RAMSIZE -display vnc=$DISPLAY --kernel $KERNEL --append "auto=true priority=critical desktop=lxde locale=en_US keymap=us url=http://10.0.2.2/userContent/${NAME}-preseed.cfg video=vesa:ywrap,mtrr vga=788 --" --initrd $INITRD & ;; *) echo "unsupported distro." exit 1 |