From patchwork Fri Nov 17 01:37:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1864907 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SWffm12lLz1yS7 for ; Fri, 17 Nov 2023 12:37:51 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1r3nnf-0006Jo-Kz; Fri, 17 Nov 2023 01:37:39 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1r3nnZ-0006JY-JN for fwts-devel@lists.ubuntu.com; Fri, 17 Nov 2023 01:37:34 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id B73413F28F for ; Fri, 17 Nov 2023 01:37:32 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 1/2] acpi: ras2: add test for ACPI RAS2 table Date: Fri, 17 Nov 2023 09:37:21 +0800 Message-Id: <20231117013722.117318-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Buglink: https://bugs.launchpad.net/fwts/+bug/2031911 Signed-off-by: Ivan Hu --- src/Makefile.am | 1 + src/acpi/ras2/ras2.c | 92 +++++++++++++++++++++++++++++++++++++ src/lib/include/fwts_acpi.h | 19 +++++++- 3 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 src/acpi/ras2/ras2.c diff --git a/src/Makefile.am b/src/Makefile.am index f3c2b2be..215b9eaf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -130,6 +130,7 @@ fwts_SOURCES = main.c \ acpi/pmtt/pmtt.c \ acpi/pptt/pptt.c \ acpi/rasf/rasf.c \ + acpi/ras2/ras2.c \ acpi/rgrt/rgrt.c \ acpi/rsdp/rsdp.c \ sbbr/rsdp/rsdp.c \ diff --git a/src/acpi/ras2/ras2.c b/src/acpi/ras2/ras2.c new file mode 100644 index 00000000..7d5dc428 --- /dev/null +++ b/src/acpi/ras2/ras2.c @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2023 Canonical + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ +#include "fwts.h" + +#if defined(FWTS_HAS_ACPI) + +#include +#include +#include +#include +#include + +static fwts_acpi_table_info *table; +acpi_table_init(RAS2, &table) + +static int ras2_test1(fwts_framework *fw) +{ + fwts_acpi_table_ras2 *ras2 = (fwts_acpi_table_ras2 *)table->data; + bool passed = true; + uint32_t offset; + + if (!fwts_acpi_table_length(fw, "RAS2", table->length, sizeof(fwts_acpi_table_ivrs))) + return FWTS_OK; + + fwts_log_info_verbatim(fw, "RAS2 (ACPI RAS2 Feature) Table:"); + offset = sizeof(fwts_acpi_table_ras2); + fwts_log_info_simp_int(fw, " Reserved: ", ras2->reserved); + fwts_log_info_simp_int(fw, " Number of PCC descriptors: ", ras2->num_pcc_descriptors); + + fwts_acpi_reserved_zero("RAS2", "Reserved", ras2->reserved, &passed); + + for (uint32_t i = 0; i < ras2->num_pcc_descriptors; i++) { + if ((offset + sizeof(fwts_acpi_ras2_pcc_desc)) > table->length) { + fwts_failed(fw, LOG_LEVEL_HIGH, "RAS2TooShort", + "RAS2 table too short, PCC descriptor list exceeds the table."); + passed = false; + break; + } + fwts_acpi_ras2_pcc_desc *pcc_desc = (fwts_acpi_ras2_pcc_desc *)(table->data + offset); + fwts_log_info_verbatim(fw, " PCC Descriptor List:"); + fwts_log_info_simp_int(fw, " PCC Identifier: ", pcc_desc->pcc_id); + fwts_log_info_simp_int(fw, " Reserved: ", pcc_desc->reserved); + fwts_log_info_simp_int(fw, " Feature Type: ", pcc_desc->feature_type); + fwts_log_info_simp_int(fw, " Instance: ", pcc_desc->instance); + + fwts_acpi_reserved_zero("RAS2", "Reserved", pcc_desc->reserved, &passed); + if (pcc_desc->reserved >= 0x01 && pcc_desc->feature_type <= 0x7F) { + fwts_failed(fw, LOG_LEVEL_HIGH, "RAS2ReservedType", + "RAS2 RAS feature types 0x01-0x7f is reserved, got 0x%" PRIx8, + pcc_desc->feature_type); + passed = false; + } + + offset += sizeof(fwts_acpi_ras2_pcc_desc); + } + + if (passed) + fwts_passed(fw, "No issues found in RAS2 table."); + + return FWTS_OK; +} + +static fwts_framework_minor_test ras2_tests[] = { + { ras2_test1, "Validate RAS2 table." }, + { NULL, NULL } +}; + +static fwts_framework_ops ras2_ops = { + .description = "ACPI RAS2 Feature Table test", + .init = RAS2_init, + .minor_tests = ras2_tests +}; + +FWTS_REGISTER("ras2", &ras2_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_ACPI) + +#endif diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h index 481277e5..3c3e5089 100644 --- a/src/lib/include/fwts_acpi.h +++ b/src/lib/include/fwts_acpi.h @@ -1096,7 +1096,24 @@ typedef struct { } __attribute__ ((packed)) fwts_acpi_table_rasf; /* - * ACPI MPST (Memory Power State Table), 5.2.21 + * ACPI RAS2 (RAS2 Feature Table), 5.2.21 + */ +typedef struct { + uint8_t pcc_id; + uint16_t reserved; + uint8_t feature_type; + uint32_t instance; +} __attribute__ ((packed)) fwts_acpi_ras2_pcc_desc; + +typedef struct { + fwts_acpi_table_header header; + uint16_t reserved; + uint16_t num_pcc_descriptors; + fwts_acpi_ras2_pcc_desc pcc_descriptors[0]; +} __attribute__ ((packed)) fwts_acpi_table_ras2; + +/* + * ACPI MPST (Memory Power State Table), 5.2.22 */ typedef struct { fwts_acpi_table_header header; From patchwork Fri Nov 17 01:37:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1864908 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SWfft4ldtz1yS7 for ; Fri, 17 Nov 2023 12:37:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1r3nni-0006K9-MS; Fri, 17 Nov 2023 01:37:42 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1r3nnd-0006Jh-8T for fwts-devel@lists.ubuntu.com; Fri, 17 Nov 2023 01:37:37 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 9A2833F28F for ; Fri, 17 Nov 2023 01:37:36 +0000 (UTC) From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] fwts-test: add regression tests for RAS2 Date: Fri, 17 Nov 2023 09:37:22 +0800 Message-Id: <20231117013722.117318-2-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231117013722.117318-1-ivan.hu@canonical.com> References: <20231117013722.117318-1-ivan.hu@canonical.com> MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" Signed-off-by: Ivan Hu --- Makefile.am | 2 ++ fwts-test/ras2-0001/acpidump-0001.log | 31 +++++++++++++++++++++++++++ fwts-test/ras2-0001/acpidump-0002.log | 31 +++++++++++++++++++++++++++ fwts-test/ras2-0001/ras2-0001.log | 22 +++++++++++++++++++ fwts-test/ras2-0001/ras2-0002.log | 29 +++++++++++++++++++++++++ fwts-test/ras2-0001/test-0001.sh | 23 ++++++++++++++++++++ fwts-test/ras2-0001/test-0002.sh | 23 ++++++++++++++++++++ 7 files changed, 161 insertions(+) create mode 100644 fwts-test/ras2-0001/acpidump-0001.log create mode 100644 fwts-test/ras2-0001/acpidump-0002.log create mode 100644 fwts-test/ras2-0001/ras2-0001.log create mode 100644 fwts-test/ras2-0001/ras2-0002.log create mode 100755 fwts-test/ras2-0001/test-0001.sh create mode 100755 fwts-test/ras2-0001/test-0002.sh diff --git a/Makefile.am b/Makefile.am index 8960aecc..1949b7f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -173,6 +173,8 @@ TESTS = fwts-test/acpidump-0001/test-0001.sh \ fwts-test/pmtt-0001/test-0002.sh \ fwts-test/pptt-0001/test-0001.sh \ fwts-test/pptt-0001/test-0002.sh \ + fwts-test/ras2-0001/test-0001.sh \ + fwts-test/ras2-0001/test-0002.sh \ fwts-test/rasf-0001/test-0001.sh \ fwts-test/rasf-0001/test-0002.sh \ fwts-test/rgrt-0001/test-0001.sh \ diff --git a/fwts-test/ras2-0001/acpidump-0001.log b/fwts-test/ras2-0001/acpidump-0001.log new file mode 100644 index 00000000..425f4e38 --- /dev/null +++ b/fwts-test/ras2-0001/acpidump-0001.log @@ -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 .... + +RAS2 @ 0x0000000000000000 + 0000: 52 41 53 32 38 00 00 00 01 28 49 4E 54 45 4C 20 RAS28....(INTEL + 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL + 0020: 28 06 23 20 00 00 02 00 00 00 00 00 01 00 00 00 (.# ............ + 0030: 01 00 00 00 02 00 00 00 ........ + diff --git a/fwts-test/ras2-0001/acpidump-0002.log b/fwts-test/ras2-0001/acpidump-0002.log new file mode 100644 index 00000000..94d881d6 --- /dev/null +++ b/fwts-test/ras2-0001/acpidump-0002.log @@ -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 .... + +RAS2 @ 0x0000000000000000 + 0000: 52 41 53 32 38 00 00 00 01 28 49 4E 54 45 4C 20 RAS28....(INTEL + 0010: 54 65 6D 70 6C 61 74 65 01 00 00 00 49 4E 54 4C Template....INTL + 0020: 28 06 23 20 00 00 02 00 00 00 FF 3F 01 00 00 00 (.# ............ + 0030: 01 11 00 7F 02 00 00 00 ........ + diff --git a/fwts-test/ras2-0001/ras2-0001.log b/fwts-test/ras2-0001/ras2-0001.log new file mode 100644 index 00000000..7ada1575 --- /dev/null +++ b/fwts-test/ras2-0001/ras2-0001.log @@ -0,0 +1,22 @@ +ras2 ras2: ACPI RAS2 Feature Table test +ras2 ---------------------------------------------------------- +ras2 Test 1 of 1: Validate RAS2 table. +ras2 RAS2 (ACPI RAS2 Feature) Table: +ras2 Reserved: 0x0000 +ras2 Number of PCC descriptors: 0x0002 +ras2 PCC Descriptor List: +ras2 PCC Identifier: 0x00 +ras2 Reserved: 0x0000 +ras2 Feature Type: 0x00 +ras2 Instance: 0x00000001 +ras2 PCC Descriptor List: +ras2 PCC Identifier: 0x01 +ras2 Reserved: 0x0000 +ras2 Feature Type: 0x00 +ras2 Instance: 0x00000002 +ras2 PASSED: Test 1, No issues found in RAS2 table. +ras2 +ras2 ========================================================== +ras2 1 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 +ras2 info only. +ras2 ========================================================== diff --git a/fwts-test/ras2-0001/ras2-0002.log b/fwts-test/ras2-0001/ras2-0002.log new file mode 100644 index 00000000..90703315 --- /dev/null +++ b/fwts-test/ras2-0001/ras2-0002.log @@ -0,0 +1,29 @@ +ras2 ras2: ACPI RAS2 Feature Table test +ras2 ---------------------------------------------------------- +ras2 Test 1 of 1: Validate RAS2 table. +ras2 RAS2 (ACPI RAS2 Feature) Table: +ras2 Reserved: 0x0000 +ras2 Number of PCC descriptors: 0x0002 +ras2 PCC Descriptor List: +ras2 PCC Identifier: 0x00 +ras2 Reserved: 0xff00 +ras2 Feature Type: 0x3f +ras2 Instance: 0x00000001 +ras2 FAILED [MEDIUM] RAS2ReservedNonZero: Test 1, RAS2 Reserved +ras2 field must be zero, got 0xff00 instead +ras2 FAILED [HIGH] RAS2ReservedType: Test 1, RAS2 RAS feature +ras2 types 0x01-0x7f is reserved, got 0x3f +ras2 PCC Descriptor List: +ras2 PCC Identifier: 0x01 +ras2 Reserved: 0x0011 +ras2 Feature Type: 0x7f +ras2 Instance: 0x00000002 +ras2 FAILED [MEDIUM] RAS2ReservedNonZero: Test 1, RAS2 Reserved +ras2 field must be zero, got 0x0011 instead +ras2 FAILED [HIGH] RAS2ReservedType: Test 1, RAS2 RAS feature +ras2 types 0x01-0x7f is reserved, got 0x7f +ras2 +ras2 ========================================================== +ras2 0 passed, 4 failed, 0 warning, 0 aborted, 0 skipped, 0 +ras2 info only. +ras2 ========================================================== diff --git a/fwts-test/ras2-0001/test-0001.sh b/fwts-test/ras2-0001/test-0001.sh new file mode 100755 index 00000000..9754bc40 --- /dev/null +++ b/fwts-test/ras2-0001/test-0001.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +TEST="Test acpitables against RAS2" +NAME=test-0001.sh +TMPLOG=$TMP/ras2.log.$$ + +$FWTS --show-tests | grep sdev > /dev/null +if [ $? -eq 1 ]; then + echo SKIP: $TEST, $NAME + exit 77 +fi + +$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/ras2-0001/acpidump-0001.log ras2 - | cut -c7- | grep "^ras2" > $TMPLOG +diff $TMPLOG $FWTSTESTDIR/ras2-0001/ras2-0001.log >> $FAILURE_LOG +ret=$? +if [ $ret -eq 0 ]; then + echo PASSED: $TEST, $NAME +else + echo FAILED: $TEST, $NAME +fi + +rm $TMPLOG +exit $ret diff --git a/fwts-test/ras2-0001/test-0002.sh b/fwts-test/ras2-0001/test-0002.sh new file mode 100755 index 00000000..687b7d94 --- /dev/null +++ b/fwts-test/ras2-0001/test-0002.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +TEST="Test acpitables against RAS2" +NAME=test-0002.sh +TMPLOG=$TMP/ras2.log.$$ + +$FWTS --show-tests | grep sdev > /dev/null +if [ $? -eq 1 ]; then + echo SKIP: $TEST, $NAME + exit 77 +fi + +$FWTS --log-format="%line %owner " -w 80 --dumpfile=$FWTSTESTDIR/ras2-0001/acpidump-0002.log ras2 - | cut -c7- | grep "^ras2" > $TMPLOG +diff $TMPLOG $FWTSTESTDIR/ras2-0001/ras2-0002.log >> $FAILURE_LOG +ret=$? +if [ $ret -eq 0 ]; then + echo PASSED: $TEST, $NAME +else + echo FAILED: $TEST, $NAME +fi + +rm $TMPLOG +exit $ret