diff --git a/scripts/misc/hw_test.sh b/scripts/misc/hw_test.sh index 4f2090df..f8578d89 100644 --- a/scripts/misc/hw_test.sh +++ b/scripts/misc/hw_test.sh @@ -6,9 +6,9 @@ dd if=/dev/urandom of=a.adf bs=512 count=1760 disk-analyse -e 2 a.adf b.adf disk-analyse a.adf a.scp -python3 gw.py write --adjust-speed --ecyl=2 a.scp +python3 gw.py write --ecyl=2 a.scp python3 gw.py read --revs=1 --ecyl=2 b.scp disk-analyse -e 2 b.scp c.adf diff b.adf c.adf md5sum b.adf c.adf -rm -f a.adf b.adf c.adf a.scp b.scp c.scp +rm -f a.adf b.adf c.adf a.scp b.scp diff --git a/scripts/misc/sw_test.sh b/scripts/misc/sw_test.sh new file mode 100644 index 00000000..690a49a8 --- /dev/null +++ b/scripts/misc/sw_test.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Creates a random Amiga ADF, writes the first three cylinders of a disk, +# dumps those cylinders back, and checks against original ADF. + +# Write SCP, Read SCP +dd if=/dev/urandom of=a.adf bs=512 count=1760 +disk-analyse -e 2 a.adf b.adf +disk-analyse a.adf a.scp +python3 gw.py write --ecyl=2 a.scp +python3 gw.py read --revs=1 --ecyl=2 b.scp +disk-analyse -e 2 b.scp c.adf +diff b.adf c.adf +md5sum b.adf c.adf +rm -f a.adf b.adf c.adf a.scp b.scp + +# Write IPF, Read HFE +dd if=/dev/urandom of=a.adf bs=512 count=1760 +disk-analyse -e 2 a.adf b.adf +disk-analyse a.adf a.ipf +python3 gw.py write --ecyl=2 a.ipf +python3 gw.py read --revs=1 --ecyl=2 b.hfe +disk-analyse -e 2 b.hfe c.adf +diff b.adf c.adf +md5sum b.adf c.adf +rm -f a.adf b.adf c.adf a.ipf b.hfe + +# Write HFE, Read HFE +dd if=/dev/urandom of=a.adf bs=512 count=1760 +disk-analyse -e 2 a.adf b.adf +disk-analyse a.adf a.hfe +python3 gw.py write --ecyl=2 a.hfe +python3 gw.py read --revs=1 --ecyl=2 b.hfe +disk-analyse -e 2 b.hfe c.adf +diff b.adf c.adf +md5sum b.adf c.adf +rm -f a.adf b.adf c.adf a.hfe b.hfe +