@@ -179,6 +179,8 @@ TESTS = fwts-test/acpidump-0001/test-0001.sh \
fwts-test/srat-0001/test-0002.sh \
fwts-test/stao-0001/test-0001.sh \
fwts-test/stao-0001/test-0002.sh \
+ fwts-test/svkl-0001/test-0001.sh \
+ fwts-test/svkl-0001/test-0002.sh \
fwts-test/syntaxcheck-0001/test-0001.sh \
fwts-test/tcpa-0001/test-0001.sh \
fwts-test/tcpa-0001/test-0002.sh \
new file mode 100644
@@ -0,0 +1,31 @@
+FACS @ 0x00000000
+ 0000: 46 41 43 53 40 00 00 00 00 00 00 00 00 00 00 00 FACS@...........
+ 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+
+FACP @ 0x00000000
+ 0000: 46 41 43 50 f4 00 00 00 03 f9 41 4d 44 20 20 20 FACP......AMD
+ 0010: 47 55 41 4d 20 20 20 20 00 00 04 06 41 4d 44 20 GUAM ....AMD
+ 0020: 40 42 0f 00 c0 2f e9 af 92 47 e8 af 00 02 09 00 @B.../...G......
+ 0030: b0 00 00 00 f0 f1 00 00 00 80 00 00 00 00 00 00 ................
+ 0040: 04 80 00 00 00 00 00 00 00 82 00 00 08 80 00 00 ................
+ 0050: 20 80 00 00 00 00 00 00 04 02 01 04 08 00 00 00 ...............
+ 0060: 65 00 e9 03 00 00 00 00 01 00 0d 00 32 00 00 00 e...........2...
+ 0070: a5 c1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0080: 00 00 00 00 c0 2f e9 af 00 00 00 00 92 47 e8 af ...../.......G..
+ 0090: 00 00 00 00 01 20 00 00 00 80 00 00 00 00 00 00 ..... ..........
+ 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00 ................
+ 00b0: 04 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 00c0: 00 00 00 00 01 08 00 00 00 82 00 00 00 00 00 00 ................
+ 00d0: 01 20 00 00 08 80 00 00 00 00 00 00 01 40 00 00 . ...........@..
+ 00e0: 20 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
+ 00f0: 00 00 00 00 ....
+
+SVKL @ 0x0000000000000000
+ 0000: 53 56 4B 4C 48 00 00 00 01 DB 49 4E 54 45 4C 20 SVKLH.....INTEL
+ 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL
+ 0020: 31 03 21 20 02 00 00 00 00 00 00 00 21 43 AA AA 1.! ........!C..
+ 0030: EF CD AB 89 67 45 23 01 00 00 00 00 21 43 BB BB ....gE#.....!C..
+ 0040: EF CD AB 89 67 45 23 01 ....gE#.
new file mode 100644
@@ -0,0 +1,31 @@
+FACS @ 0x00000000
+ 0000: 46 41 43 53 40 00 00 00 00 00 00 00 00 00 00 00 FACS@...........
+ 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+
+FACP @ 0x00000000
+ 0000: 46 41 43 50 f4 00 00 00 03 f9 41 4d 44 20 20 20 FACP......AMD
+ 0010: 47 55 41 4d 20 20 20 20 00 00 04 06 41 4d 44 20 GUAM ....AMD
+ 0020: 40 42 0f 00 c0 2f e9 af 92 47 e8 af 00 02 09 00 @B.../...G......
+ 0030: b0 00 00 00 f0 f1 00 00 00 80 00 00 00 00 00 00 ................
+ 0040: 04 80 00 00 00 00 00 00 00 82 00 00 08 80 00 00 ................
+ 0050: 20 80 00 00 00 00 00 00 04 02 01 04 08 00 00 00 ...............
+ 0060: 65 00 e9 03 00 00 00 00 01 00 0d 00 32 00 00 00 e...........2...
+ 0070: a5 c1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 0080: 00 00 00 00 c0 2f e9 af 00 00 00 00 92 47 e8 af ...../.......G..
+ 0090: 00 00 00 00 01 20 00 00 00 80 00 00 00 00 00 00 ..... ..........
+ 00a0: 00 00 00 00 00 00 00 00 00 00 00 00 01 10 00 00 ................
+ 00b0: 04 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+ 00c0: 00 00 00 00 01 08 00 00 00 82 00 00 00 00 00 00 ................
+ 00d0: 01 20 00 00 08 80 00 00 00 00 00 00 01 40 00 00 . ...........@..
+ 00e0: 20 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
+ 00f0: 00 00 00 00 ....
+
+SVKL @ 0x0000000000000000
+ 0000: 53 56 4B 4C 48 00 00 00 01 DB 49 4E 54 45 4C 20 SVKLH.....INTEL
+ 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL
+ 0020: 31 03 21 20 02 00 00 00 01 00 00 00 21 43 AA AA 1.! ........!C..
+ 0030: EF CD AB 89 67 45 23 01 00 00 02 00 21 43 BB BB ....gE#.....!C..
+ 0040: EF CD AB 89 67 45 23 01 ....gE#.
new file mode 100644
@@ -0,0 +1,22 @@
+svkl svkl: SVKL Storage Volume Key Data table test.
+svkl ----------------------------------------------------------
+svkl Test 1 of 1: Validate SVKL table.
+svkl SVKL Storage Volume Key Data Table:
+svkl Key Count: 0x00000002
+svkl Storage Volume Key Structure 1
+svkl Key Type: 0x0000
+svkl Key Format: 0x0000
+svkl Key Size: 0xaaaa4321
+svkl Key Address: 0x0123456789abcdef
+svkl Storage Volume Key Structure 2
+svkl Key Type: 0x0000
+svkl Key Format: 0x0000
+svkl Key Size: 0xbbbb4321
+svkl Key Address: 0x0123456789abcdef
+svkl
+svkl PASSED: Test 1, No issues found in SVKL table.
+svkl
+svkl ==========================================================
+svkl 1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0
+svkl info only.
+svkl ==========================================================
new file mode 100644
@@ -0,0 +1,25 @@
+svkl svkl: SVKL Storage Volume Key Data table test.
+svkl ----------------------------------------------------------
+svkl Test 1 of 1: Validate SVKL table.
+svkl SVKL Storage Volume Key Data Table:
+svkl Key Count: 0x00000002
+svkl Storage Volume Key Structure 1
+svkl Key Type: 0x0001
+svkl FAILED [HIGH] SVKLBadKeyType: Test 1, SVKL key type not
+svkl zero, 1~0xFFFF reserved.
+svkl Key Format: 0x0000
+svkl Key Size: 0xaaaa4321
+svkl Key Address: 0x0123456789abcdef
+svkl Storage Volume Key Structure 2
+svkl Key Type: 0x0000
+svkl Key Format: 0x0002
+svkl FAILED [HIGH] SVKLBadKeyFormat: Test 1, SVKL key format
+svkl not zero, 1~0xFFFF reserved.
+svkl Key Size: 0xbbbb4321
+svkl Key Address: 0x0123456789abcdef
+svkl
+svkl
+svkl ==========================================================
+svkl 0 passed, 2 failed, 0 warning, 0 aborted, 0 skipped, 0
+svkl info only.
+svkl ==========================================================
new file mode 100755
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+TEST="Test acpitables against SVKL"
+NAME=test-0001.sh
+TMPLOG=$TMP/svkl.log.$$
+
+$FWTS --show-tests | grep svkl > /dev/null
+if [ $? -eq 1 ]; then
+ echo SKIP: $TEST, $NAME
+ exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/svkl-0001/acpidump-0001.log svkl - | cut -c7- | grep "^svkl" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/svkl-0001/svkl-0001.log >> $FAILURE_LOG
+ret=$?
+if [ $ret -eq 0 ]; then
+ echo PASSED: $TEST, $NAME
+else
+ echo FAILED: $TEST, $NAME
+fi
+
+rm $TMPLOG
+exit $ret
new file mode 100755
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+TEST="Test acpitables against SVKL"
+NAME=test-0001.sh
+TMPLOG=$TMP/svkl.log.$$
+
+$FWTS --show-tests | grep svkl > /dev/null
+if [ $? -eq 1 ]; then
+ echo SKIP: $TEST, $NAME
+ exit 77
+fi
+
+$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/svkl-0001/acpidump-0002.log svkl - | cut -c7- | grep "^svkl" > $TMPLOG
+diff $TMPLOG $FWTSTESTDIR/svkl-0001/svkl-0002.log >> $FAILURE_LOG
+ret=$?
+if [ $ret -eq 0 ]; then
+ echo PASSED: $TEST, $NAME
+else
+ echo FAILED: $TEST, $NAME
+fi
+
+rm $TMPLOG
+exit $ret
Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- Makefile.am | 2 ++ fwts-test/svkl-0001/acpidump-0001.log | 31 +++++++++++++++++++++++++++ fwts-test/svkl-0001/acpidump-0002.log | 31 +++++++++++++++++++++++++++ fwts-test/svkl-0001/svkl-0001.log | 22 +++++++++++++++++++ fwts-test/svkl-0001/svkl-0002.log | 25 +++++++++++++++++++++ fwts-test/svkl-0001/test-0001.sh | 23 ++++++++++++++++++++ fwts-test/svkl-0001/test-0002.sh | 23 ++++++++++++++++++++ 7 files changed, 157 insertions(+) create mode 100644 fwts-test/svkl-0001/acpidump-0001.log create mode 100644 fwts-test/svkl-0001/acpidump-0002.log create mode 100644 fwts-test/svkl-0001/svkl-0001.log create mode 100644 fwts-test/svkl-0001/svkl-0002.log create mode 100755 fwts-test/svkl-0001/test-0001.sh create mode 100755 fwts-test/svkl-0001/test-0002.sh