mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
fs-test.sh: Update to use 'host' not 'sb'
For a long time now, 'sb' has been deprecated as a command in favor of using 'host' for the sandbox hostfs interface, switch. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -194,7 +194,7 @@ function test_image() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
sb)
|
sb)
|
||||||
PREFIX="sb "
|
PREFIX="host "
|
||||||
WRITE="save"
|
WRITE="save"
|
||||||
SUFFIX="fs -"
|
SUFFIX="fs -"
|
||||||
;;
|
;;
|
||||||
@@ -217,11 +217,11 @@ function test_image() {
|
|||||||
|
|
||||||
# In u-boot commands, <interface> stands for host or hostfs
|
# In u-boot commands, <interface> stands for host or hostfs
|
||||||
# hostfs maps to the host fs.
|
# hostfs maps to the host fs.
|
||||||
# host maps to the "sb bind" that we do
|
# host maps to the "host bind" that we do
|
||||||
|
|
||||||
$UBOOT << EOF
|
$UBOOT << EOF
|
||||||
sb=$5
|
sb=$5
|
||||||
setenv bind 'if test "\$sb" != sb; then sb bind 0 "$1"; fi'
|
setenv bind 'if test "\$sb" != sb; then host bind 0 "$1"; fi'
|
||||||
run bind
|
run bind
|
||||||
# Test Case 1 - ls
|
# Test Case 1 - ls
|
||||||
${PREFIX}ls host${SUFFIX} $6
|
${PREFIX}ls host${SUFFIX} $6
|
||||||
@@ -229,7 +229,7 @@ ${PREFIX}ls host${SUFFIX} $6
|
|||||||
${PREFIX}ls host${SUFFIX} invalid_d
|
${PREFIX}ls host${SUFFIX} invalid_d
|
||||||
#
|
#
|
||||||
# We want ${PREFIX}size host 0:0 $3 for host commands and
|
# We want ${PREFIX}size host 0:0 $3 for host commands and
|
||||||
# sb size hostfs - $3 for hostfs commands.
|
# host size hostfs - $3 for hostfs commands.
|
||||||
# 1MB is 0x0010 0000
|
# 1MB is 0x0010 0000
|
||||||
# Test Case 2a - size of small file
|
# Test Case 2a - size of small file
|
||||||
${PREFIX}size host${SUFFIX} ${FPATH}$FILE_SMALL
|
${PREFIX}size host${SUFFIX} ${FPATH}$FILE_SMALL
|
||||||
@@ -575,7 +575,7 @@ TOTAL_PASS=0
|
|||||||
|
|
||||||
# In each loop, for a given file system image, we test both the
|
# In each loop, for a given file system image, we test both the
|
||||||
# fs command, like load/size/write, the file system specific command
|
# fs command, like load/size/write, the file system specific command
|
||||||
# like: ext4load/ext4size/ext4write and the sb load/ls/save commands.
|
# like: ext4load/ext4size/ext4write and the host load/ls/save commands.
|
||||||
for fs in ext4 fat16 fat32; do
|
for fs in ext4 fat16 fat32; do
|
||||||
|
|
||||||
echo "Creating $fs image if not already present."
|
echo "Creating $fs image if not already present."
|
||||||
@@ -583,11 +583,11 @@ for fs in ext4 fat16 fat32; do
|
|||||||
MD5_FILE_FS="${MD5_FILE}.${fs}"
|
MD5_FILE_FS="${MD5_FILE}.${fs}"
|
||||||
create_image $IMAGE $fs
|
create_image $IMAGE $fs
|
||||||
|
|
||||||
# sb commands test
|
# host commands test
|
||||||
echo "Creating files in $fs image if not already present."
|
echo "Creating files in $fs image if not already present."
|
||||||
create_files $IMAGE $MD5_FILE_FS
|
create_files $IMAGE $MD5_FILE_FS
|
||||||
|
|
||||||
# Lets mount the image and test sb hostfs commands
|
# Lets mount the image and test host hostfs commands
|
||||||
mkdir -p "$MOUNT_DIR"
|
mkdir -p "$MOUNT_DIR"
|
||||||
case "$fs" in
|
case "$fs" in
|
||||||
fat*)
|
fat*)
|
||||||
|
Reference in New Issue
Block a user