From 485f6ecd453d8a2fd8b9b9fadea03159d8b50797 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:54:16 +0200 Subject: Adding upstream version 2.06. Signed-off-by: Daniel Baumann --- tests/grub_script_test.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/grub_script_test.in (limited to 'tests/grub_script_test.in') diff --git a/tests/grub_script_test.in b/tests/grub_script_test.in new file mode 100644 index 0000000..34a5f14 --- /dev/null +++ b/tests/grub_script_test.in @@ -0,0 +1,15 @@ +#! @builddir@/grub-shell-tester + +for device in 'hd0' 'fd0'; do + # But search them if their search has been inforced + set fd0search="no" + if [ "$device" != "fd0" -a "$device" != "cd" \ + -o \ + "$device" = "fd0" -a "$fd0search" = "yes" ]\ + ; then + echo "Yes" + else + echo "No" + fi + +done \ No newline at end of file -- cgit v1.2.3