[PATCH 13/14] test_firmware: move a few test knobs out to its library
From: Luis R. Rodriguez
Date: Fri Sep 17 2021 - 14:22:56 EST
From: Luis Chamberlain <mcgrof@xxxxxxxxxx>
These will be used by other tests cases in other files so
move them to the library.
Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
---
.../testing/selftests/firmware/fw_filesystem.sh | 16 ----------------
tools/testing/selftests/firmware/fw_lib.sh | 17 +++++++++++++++++
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/tools/testing/selftests/firmware/fw_filesystem.sh b/tools/testing/selftests/firmware/fw_filesystem.sh
index c2a2a100114b..7d763b303057 100755
--- a/tools/testing/selftests/firmware/fw_filesystem.sh
+++ b/tools/testing/selftests/firmware/fw_filesystem.sh
@@ -118,27 +118,11 @@ test_config_present()
fi
}
-# Defaults :
-#
-# send_uevent: 1
-# sync_direct: 0
-# name: test-firmware.bin
-# num_requests: 4
-config_reset()
-{
- echo 1 > $DIR/reset
-}
-
release_all_firmware()
{
echo 1 > $DIR/release_all_firmware
}
-config_set_name()
-{
- echo -n $1 > $DIR/config_name
-}
-
config_set_into_buf()
{
echo 1 > $DIR/config_into_buf
diff --git a/tools/testing/selftests/firmware/fw_lib.sh b/tools/testing/selftests/firmware/fw_lib.sh
index 5b8c0fedee76..31b71fe11dc5 100755
--- a/tools/testing/selftests/firmware/fw_lib.sh
+++ b/tools/testing/selftests/firmware/fw_lib.sh
@@ -221,3 +221,20 @@ kconfig_has()
fi
fi
}
+
+# Defaults :
+#
+# send_uevent: 1
+# sync_direct: 0
+# name: test-firmware.bin
+# num_requests: 4
+config_reset()
+{
+ echo 1 > $DIR/reset
+}
+
+
+config_set_name()
+{
+ echo -n $1 > $DIR/config_name
+}
--
2.30.2