diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/sendkeys.py | 2 | ||||
| -rwxr-xr-x | scripts/test-disk.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sendkeys.py b/scripts/sendkeys.py index 5d1692c..1c97b33 100755 --- a/scripts/sendkeys.py +++ b/scripts/sendkeys.py | |||
| @@ -6,7 +6,7 @@ Each positional argument is one line: it is typed character by character | |||
| 6 | test script without a display. | 6 | test script without a display. |
| 7 | 7 | ||
| 8 | Usage: | 8 | Usage: |
| 9 | sendkeys.py "ls /disk" "echo hi > /disk/a.txt" "poweroff" | 9 | sendkeys.py "ls /disk" "echo hi WRITING /disk/a.txt" "poweroff" |
| 10 | sendkeys.py --sock /tmp/qmon.sock "date" | 10 | sendkeys.py --sock /tmp/qmon.sock "date" |
| 11 | 11 | ||
| 12 | Environment: QMON_SOCK (default: /tmp/qmon.sock) | 12 | Environment: QMON_SOCK (default: /tmp/qmon.sock) |
diff --git a/scripts/test-disk.sh b/scripts/test-disk.sh index f7337ef..11a9b05 100755 --- a/scripts/test-disk.sh +++ b/scripts/test-disk.sh | |||
| @@ -99,14 +99,14 @@ VOL_UID="$(grep -a 'fat: mounted' "$LOG" | sed -n 's/.*at \/disk\/\([^ )]*\).*/\ | |||
| 99 | [ -n "$VOL_UID" ] || fail "no FAT32 volume was mounted (look for 'fat: mounted' in the log)" | 99 | [ -n "$VOL_UID" ] || fail "no FAT32 volume was mounted (look for 'fat: mounted' in the log)" |
| 100 | echo " mounted volume UID: $VOL_UID" | 100 | echo " mounted volume UID: $VOL_UID" |
| 101 | 101 | ||
| 102 | echo "==> 4/6 drive the shell (ls / mkdir / echo > / cat / poweroff)" | 102 | echo "==> 4/6 drive the shell (ls / mkdir / echo WRITING / cat / poweroff)" |
| 103 | # The filename is deliberately >13 chars so the FAT LFN path gets | 103 | # The filename is deliberately >13 chars so the FAT LFN path gets |
| 104 | # multi-entry entries (they're stored last-first on disk). | 104 | # multi-entry entries (they're stored last-first on disk). |
| 105 | TESTFILE="disk-test-$STAMP.txt" | 105 | TESTFILE="disk-test-$STAMP.txt" |
| 106 | python3 "$SCRIPT_DIR/sendkeys.py" --sock "$SOCK" \ | 106 | python3 "$SCRIPT_DIR/sendkeys.py" --sock "$SOCK" \ |
| 107 | "ls /disk" \ | 107 | "ls /disk" \ |
| 108 | "mkdir /disk/$VOL_UID/sub" \ | 108 | "mkdir /disk/$VOL_UID/sub" \ |
| 109 | "echo disk-test-$STAMP > /disk/$VOL_UID/sub/$TESTFILE" \ | 109 | "echo disk-test-$STAMP WRITING /disk/$VOL_UID/sub/$TESTFILE" \ |
| 110 | "cat /disk/$VOL_UID/sub/$TESTFILE" \ | 110 | "cat /disk/$VOL_UID/sub/$TESTFILE" \ |
| 111 | "poweroff" | 111 | "poweroff" |
| 112 | 112 | ||
