diff options
author | Lee Duncan <lduncan@suse.com> | 2020-02-19 11:14:35 -0800 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2020-02-19 11:14:35 -0800 |
commit | f66c504430a6c568bf90a5cdf2a64eb995b557de (patch) | |
tree | 8a844ce6e7bd6e9f08194df9567cf6dcf9383c52 /test/regression.sh | |
parent | 44d7058555cd8498d1086db0464b169f4a988282 (diff) | |
download | open-iscsi-f66c504430a6c568bf90a5cdf2a64eb995b557de.tar.gz |
Beginning to get python tests set up.
Created a framework. Replacing disktest with fio, sfdisk
with parted, and moving to a PyUnit test framework.
Diffstat (limited to 'test/regression.sh')
-rwxr-xr-x | test/regression.sh | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/test/regression.sh b/test/regression.sh index 25d4a28..aeef74d 100755 --- a/test/regression.sh +++ b/test/regression.sh @@ -64,13 +64,16 @@ function disktest_run() { test "x$bsize" = xbonnie && return 0; for bs in $bsizes; do echo -n "disktest -T2 -K8 -B$bs -r -ID $device: " - if ! ${disktest} -T2 -K8 -B$bs -r -ID $device >/dev/null; then + #if ! ${disktest} -T2 -K8 -B$bs -r -ID $device >/dev/null; then + if ! ${disktest} -T2 -K8 -B$bs -r -ID $device; then echo "FAILED" return 1; fi echo "PASSED" - echo -n "disktest -T2 -K8 -B$bs -E16 -w -ID $device: " - if ! ${disktest} -T2 -K8 -B$bs -E16 -w -ID $device >/dev/null;then + #echo -n "disktest -T2 -K8 -B$bs -E16 -w -ID $device: " + #if ! ${disktest} -T2 -K8 -B$bs -E16 -w -ID $device >/dev/null;then + echo -n "disktest -T2 -K8 -B$bs -E16 -ID $device: " + if ! ${disktest} -T2 -K8 -B$bs -E16 -ID $device; then echo "FAILED" return 1; fi @@ -80,12 +83,11 @@ function disktest_run() { } function fdisk_run() { - echo -n "sfdisk -Lqf $device: " - sfdisk -Lqf $device >/dev/null 2>/dev/null <<-EOF - 0, - ; - ; - ; + echo -n "sfdisk -qf $device: " + #sfdisk -Lqf $device >/dev/null 2>/dev/null <<-EOF + sfdisk -Lqf $device <<-EOF + , + quit EOF rc=$? if [ $rc -ne 0 ]; then @@ -98,7 +100,8 @@ function fdisk_run() { function mkfs_run() { echo -n "${MKFSCMD} $device_partition: " - if ! ${MKFSCMD} $device_partition 2>/dev/null >/dev/null; then + #if ! ${MKFSCMD} $device_partition 2>/dev/null >/dev/null; then + if ! ${MKFSCMD} $device_partition ; then echo "FAILED" return 1; fi |