diff mbox series

fwtstest: boot-0001: sync with boot table check on efi firmware

Message ID 1569484372-3035-1-git-send-email-ivan.hu@canonical.com
State Accepted
Headers show
Series fwtstest: boot-0001: sync with boot table check on efi firmware | expand

Commit Message

Ivan Hu Sept. 26, 2019, 7:52 a.m. UTC
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 fwts-test/boot-0001/boot-0001-efi.log | 8 ++++++++
 fwts-test/boot-0001/boot-0002-efi.log | 8 ++++++++
 fwts-test/boot-0001/test-0001.sh      | 9 ++++++++-
 fwts-test/boot-0001/test-0002.sh      | 8 +++++++-
 4 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 fwts-test/boot-0001/boot-0001-efi.log
 create mode 100644 fwts-test/boot-0001/boot-0002-efi.log

Comments

Colin Ian King Sept. 26, 2019, 7:56 a.m. UTC | #1
On 26/09/2019 08:52, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>  fwts-test/boot-0001/boot-0001-efi.log | 8 ++++++++
>  fwts-test/boot-0001/boot-0002-efi.log | 8 ++++++++
>  fwts-test/boot-0001/test-0001.sh      | 9 ++++++++-
>  fwts-test/boot-0001/test-0002.sh      | 8 +++++++-
>  4 files changed, 31 insertions(+), 2 deletions(-)
>  create mode 100644 fwts-test/boot-0001/boot-0001-efi.log
>  create mode 100644 fwts-test/boot-0001/boot-0002-efi.log
> 
> diff --git a/fwts-test/boot-0001/boot-0001-efi.log b/fwts-test/boot-0001/boot-0001-efi.log
> new file mode 100644
> index 0000000..6335af2
> --- /dev/null
> +++ b/fwts-test/boot-0001/boot-0001-efi.log
> @@ -0,0 +1,8 @@
> +boot            boot: BOOT Table test.
> +boot            ----------------------------------------------------------
> +boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
> +boot            test
> +boot            ==========================================================
> +boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
> +boot            info only.
> +boot            ==========================================================
> diff --git a/fwts-test/boot-0001/boot-0002-efi.log b/fwts-test/boot-0001/boot-0002-efi.log
> new file mode 100644
> index 0000000..6335af2
> --- /dev/null
> +++ b/fwts-test/boot-0001/boot-0002-efi.log
> @@ -0,0 +1,8 @@
> +boot            boot: BOOT Table test.
> +boot            ----------------------------------------------------------
> +boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
> +boot            test
> +boot            ==========================================================
> +boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
> +boot            info only.
> +boot            ==========================================================
> diff --git a/fwts-test/boot-0001/test-0001.sh b/fwts-test/boot-0001/test-0001.sh
> index 6c0dc92..4395448 100755
> --- a/fwts-test/boot-0001/test-0001.sh
> +++ b/fwts-test/boot-0001/test-0001.sh
> @@ -10,8 +10,15 @@ if [ $? -eq 1 ]; then
>  	exit 77
>  fi
>  
> +if [ -d /sys/firmware/efi ]; then
> +        FILE=boot-0001-efi.log
> +else
> +	FILE=boot-0001.log
> +fi
> +
> +
>  $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0001.log boot - | cut -c7- | grep "^boot" > $TMPLOG
> -diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0001.log >> $FAILURE_LOG
> +diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
>  ret=$?
>  if [ $ret -eq 0 ]; then
>  	echo PASSED: $TEST, $NAME
> diff --git a/fwts-test/boot-0001/test-0002.sh b/fwts-test/boot-0001/test-0002.sh
> index bd3e917..b5f91f2 100755
> --- a/fwts-test/boot-0001/test-0002.sh
> +++ b/fwts-test/boot-0001/test-0002.sh
> @@ -10,8 +10,14 @@ if [ $? -eq 1 ]; then
>  	exit 77
>  fi
>  
> +if [ -d /sys/firmware/efi ]; then
> +        FILE=boot-0002-efi.log
> +else
> +        FILE=boot-0002.log
> +fi
> +
>  $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0002.log boot - | cut -c7- | grep "^boot" > $TMPLOG
> -diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0002.log >> $FAILURE_LOG
> +diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
>  ret=$?
>  if [ $ret -eq 0 ]; then
>  	echo PASSED: $TEST, $NAME
> 

Thanks Ivan.

Acked-by: Colin Ian King <colin.king@canonical.com>
Alex Hung Sept. 26, 2019, 11:32 a.m. UTC | #2
On 2019-09-26 12:52 a.m., Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>  fwts-test/boot-0001/boot-0001-efi.log | 8 ++++++++
>  fwts-test/boot-0001/boot-0002-efi.log | 8 ++++++++
>  fwts-test/boot-0001/test-0001.sh      | 9 ++++++++-
>  fwts-test/boot-0001/test-0002.sh      | 8 +++++++-
>  4 files changed, 31 insertions(+), 2 deletions(-)
>  create mode 100644 fwts-test/boot-0001/boot-0001-efi.log
>  create mode 100644 fwts-test/boot-0001/boot-0002-efi.log
> 
> diff --git a/fwts-test/boot-0001/boot-0001-efi.log b/fwts-test/boot-0001/boot-0001-efi.log
> new file mode 100644
> index 0000000..6335af2
> --- /dev/null
> +++ b/fwts-test/boot-0001/boot-0001-efi.log
> @@ -0,0 +1,8 @@
> +boot            boot: BOOT Table test.
> +boot            ----------------------------------------------------------
> +boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
> +boot            test
> +boot            ==========================================================
> +boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
> +boot            info only.
> +boot            ==========================================================
> diff --git a/fwts-test/boot-0001/boot-0002-efi.log b/fwts-test/boot-0001/boot-0002-efi.log
> new file mode 100644
> index 0000000..6335af2
> --- /dev/null
> +++ b/fwts-test/boot-0001/boot-0002-efi.log
> @@ -0,0 +1,8 @@
> +boot            boot: BOOT Table test.
> +boot            ----------------------------------------------------------
> +boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
> +boot            test
> +boot            ==========================================================
> +boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
> +boot            info only.
> +boot            ==========================================================
> diff --git a/fwts-test/boot-0001/test-0001.sh b/fwts-test/boot-0001/test-0001.sh
> index 6c0dc92..4395448 100755
> --- a/fwts-test/boot-0001/test-0001.sh
> +++ b/fwts-test/boot-0001/test-0001.sh
> @@ -10,8 +10,15 @@ if [ $? -eq 1 ]; then
>  	exit 77
>  fi
>  
> +if [ -d /sys/firmware/efi ]; then
> +        FILE=boot-0001-efi.log
> +else
> +	FILE=boot-0001.log
> +fi
> +
> +
>  $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0001.log boot - | cut -c7- | grep "^boot" > $TMPLOG
> -diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0001.log >> $FAILURE_LOG
> +diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
>  ret=$?
>  if [ $ret -eq 0 ]; then
>  	echo PASSED: $TEST, $NAME
> diff --git a/fwts-test/boot-0001/test-0002.sh b/fwts-test/boot-0001/test-0002.sh
> index bd3e917..b5f91f2 100755
> --- a/fwts-test/boot-0001/test-0002.sh
> +++ b/fwts-test/boot-0001/test-0002.sh
> @@ -10,8 +10,14 @@ if [ $? -eq 1 ]; then
>  	exit 77
>  fi
>  
> +if [ -d /sys/firmware/efi ]; then
> +        FILE=boot-0002-efi.log
> +else
> +        FILE=boot-0002.log
> +fi
> +
>  $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0002.log boot - | cut -c7- | grep "^boot" > $TMPLOG
> -diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0002.log >> $FAILURE_LOG
> +diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
>  ret=$?
>  if [ $ret -eq 0 ]; then
>  	echo PASSED: $TEST, $NAME
> 

Acked-by: Alex Hung <alex.hung@canonical.com>
diff mbox series

Patch

diff --git a/fwts-test/boot-0001/boot-0001-efi.log b/fwts-test/boot-0001/boot-0001-efi.log
new file mode 100644
index 0000000..6335af2
--- /dev/null
+++ b/fwts-test/boot-0001/boot-0001-efi.log
@@ -0,0 +1,8 @@ 
+boot            boot: BOOT Table test.
+boot            ----------------------------------------------------------
+boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
+boot            test
+boot            ==========================================================
+boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
+boot            info only.
+boot            ==========================================================
diff --git a/fwts-test/boot-0001/boot-0002-efi.log b/fwts-test/boot-0001/boot-0002-efi.log
new file mode 100644
index 0000000..6335af2
--- /dev/null
+++ b/fwts-test/boot-0001/boot-0002-efi.log
@@ -0,0 +1,8 @@ 
+boot            boot: BOOT Table test.
+boot            ----------------------------------------------------------
+boot            ACPI BOOT table is depreciated on UEFI firmware, skipping
+boot            test
+boot            ==========================================================
+boot            0 passed, 0 failed, 0 warning, 0 aborted, 1 skipped, 0
+boot            info only.
+boot            ==========================================================
diff --git a/fwts-test/boot-0001/test-0001.sh b/fwts-test/boot-0001/test-0001.sh
index 6c0dc92..4395448 100755
--- a/fwts-test/boot-0001/test-0001.sh
+++ b/fwts-test/boot-0001/test-0001.sh
@@ -10,8 +10,15 @@  if [ $? -eq 1 ]; then
 	exit 77
 fi
 
+if [ -d /sys/firmware/efi ]; then
+        FILE=boot-0001-efi.log
+else
+	FILE=boot-0001.log
+fi
+
+
 $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0001.log boot - | cut -c7- | grep "^boot" > $TMPLOG
-diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0001.log >> $FAILURE_LOG
+diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
 ret=$?
 if [ $ret -eq 0 ]; then
 	echo PASSED: $TEST, $NAME
diff --git a/fwts-test/boot-0001/test-0002.sh b/fwts-test/boot-0001/test-0002.sh
index bd3e917..b5f91f2 100755
--- a/fwts-test/boot-0001/test-0002.sh
+++ b/fwts-test/boot-0001/test-0002.sh
@@ -10,8 +10,14 @@  if [ $? -eq 1 ]; then
 	exit 77
 fi
 
+if [ -d /sys/firmware/efi ]; then
+        FILE=boot-0002-efi.log
+else
+        FILE=boot-0002.log
+fi
+
 $FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/boot-0001/acpidump-0002.log boot - | cut -c7- | grep "^boot" > $TMPLOG
-diff $TMPLOG $FWTSTESTDIR/boot-0001/boot-0002.log >> $FAILURE_LOG
+diff $TMPLOG $FWTSTESTDIR/boot-0001/$FILE >> $FAILURE_LOG
 ret=$?
 if [ $ret -eq 0 ]; then
 	echo PASSED: $TEST, $NAME