From: Kern Sibbald Date: Fri, 2 May 2008 19:32:27 +0000 (+0000) Subject: Add disk-changer test X-Git-Tag: Release-7.0.0~4658 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa9290a55fd09dc70f8a3288b708e26132c0cfcd;p=bacula%2Fbacula Add disk-changer test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6879 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/disk-changer-test b/regress/tests/disk-changer-test new file mode 100755 index 0000000000..193c5a096c --- /dev/null +++ b/regress/tests/disk-changer-test @@ -0,0 +1,36 @@ +#!/bin/sh +echo "Unload drive 0" +bin/disk-changer tmp/disk-changer/conf unload 1 tmp/disk-changer/drive0 0 +echo "rtn=$?" +echo "Test what is in drive 0" +bin/disk-changer tmp/disk-changer/conf loaded 1 tmp/disk-changer/drive0 0 +echo "rtn=$?" +echo "Load Slot 1 into drive 0" +bin/disk-changer tmp/disk-changer/conf load 1 tmp/disk-changer/drive0 0 +echo "rtn=$?" +echo "Test what is in drive 0" +bin/disk-changer tmp/disk-changer/conf loaded 1 tmp/disk-changer/drive0 0 +echo "rtn=$?" + +echo "Unload drive 1" +bin/disk-changer tmp/disk-changer/conf unload 2 tmp/disk-changer/drive1 1 +echo "rtn=$?" +echo "Test what is in drive 1" +bin/disk-changer tmp/disk-changer/conf loaded 1 tmp/disk-changer/drive1 1 +echo "rtn=$?" +echo "Load Slot 2 drive 1" +bin/disk-changer tmp/disk-changer/conf load 2 tmp/disk-changer/drive1 1 +echo "rtn=$?" +echo "Test what is in drive 1" +bin/disk-changer tmp/disk-changer/conf loaded 1 tmp/disk-changer/drive1 1 +echo "rtn=$?" + +echo "Load Slot 1 into drive 0 -- error" +bin/disk-changer tmp/disk-changer/conf load 1 tmp/disk-changer/drive0 0 +echo "rtn=$?" +echo "Load Slot 2 into drive 1 -- error" +bin/disk-changer tmp/disk-changer/conf load 2 tmp/disk-changer/drive1 1 +echo "rtn=$?" +echo "Load Slot 2 in drive 0 -- error" +bin/disk-changer tmp/disk-changer/conf load 2 tmp/disk-changer/drive0 0 +echo "rtn=$?"