File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ if [ "${ENABLE_VBLK}" -eq "1" ]; then
7777 expect "# " { send "\x01"; send "x" } timeout { exit 3 }
7878 ' )
7979
80+ # Read-write using disk image with ~ home directory symbol
81+ TEST_OPTIONS+=(" ${OPTS_BASE} -x vblk:~$( pwd | sed " s|$HOME ||" ) /${VBLK_IMG} " )
82+ VBLK_EXPECT_CMDS='
83+ expect "buildroot login:" { send "root\n" } timeout { exit 1 }
84+ expect "# " { send "uname -a\n" } timeout { exit 2 }
85+ expect "riscv32 GNU/Linux" { send "mkdir mnt && mount /dev/vda mnt\n" } timeout { exit 3 }
86+ expect "# " { send "echo rv32emu > mnt/emu.txt\n" } timeout { exit 3 }
87+ expect "# " { send "sync\n" } timeout { exit 3 }
88+ expect "# " { send "umount mnt\n" } timeout { exit 3 }
89+ expect "# " { send "\x01"; send "x" } timeout { exit 3 }
90+ '
91+ EXPECT_CMDS+=(" ${VBLK_EXPECT_CMDS} " )
92+
8093 # Read-write using disk image
8194 TEST_OPTIONS+=(" ${OPTS_BASE} -x vblk:${VBLK_IMG} " )
8295 VBLK_EXPECT_CMDS='
You can’t perform that action at this time.
0 commit comments