Skip to content

Commit

Permalink
Update test scripts for v0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Apr 25, 2020
1 parent 93cf30c commit 748e1f9
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/misc/hw_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
38 changes: 38 additions & 0 deletions scripts/misc/sw_test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 748e1f9

Please sign in to comment.