From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6B852C0032 for ; Wed, 25 Oct 2023 08:53:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 306AC703EB for ; Wed, 25 Oct 2023 08:53:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 306AC703EB Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=QowpOceS X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id auq6_Mq495VJ for ; Wed, 25 Oct 2023 08:53:08 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by smtp3.osuosl.org (Postfix) with ESMTPS id 616187081E for ; Wed, 25 Oct 2023 08:53:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 616187081E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698223988; x=1729759988; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=z4LM1HyYM7tVOUuGARqGALaO4G8ppmUoQYtCGoudgLo=; b=QowpOceSh036Ey13Vsqr6Gyur/D7S6YGM3MVIxURYpcr8pdh/tjVvWww icYV8Vv4NfrbXitODiAuHNy2pVCw/F1x0COMYqsYJNxXhqTO+H/+CuJbR 0PvWo+PAz/mtSbB1lyKP8IRqs8HsGe47ZaDseeaNd5PO7bNpTJ8RysPu4 gXBLRfY5FJe9QThAPlP+xGLqgQMgdZk7fl+I6y3TycmySTUuv51zMA3c1 2yDX748mSZ9w1VF2sIYT/+vtckqaNra89DpU1FtyjQcPiUCdIVWpOt/9R mrVuBnTUJlsfFnaQsHvbGU0xq5c9PUvI3rzk9VOd+QKbwg2RX8F77KJMG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="390121723" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="390121723" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 01:53:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="27793" Received: from rex-z390-aorus-pro.sh.intel.com ([10.239.161.21]) by orviesa002.jf.intel.com with ESMTP; 25 Oct 2023 01:52:31 -0700 From: Rex Zhang To: fenghua.yu@intel.com, ramesh.thomas@intel.com, rex.zhang@intel.com, tony.zhu@intel.com, accel-config@lists.linuxfoundation.org Date: Wed, 25 Oct 2023 16:52:59 +0800 Message-Id: <20231025085259.2958695-2-rex.zhang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231025085259.2958695-1-rex.zhang@intel.com> References: <20231025085259.2958695-1-rex.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Accel-config] [PATCH v1 2/2] accel-config/test: Fix bug about checking result of decompression X-BeenThere: accel-config@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: accel-config List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2023 08:53:09 -0000 Previous code missed verifying the result of decompression, add the verification as a complement. Signed-off-by: Rex Zhang --- test/iaa.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/iaa.c b/test/iaa.c index 42cf6fb..44eea97 100644 --- a/test/iaa.c +++ b/test/iaa.c @@ -2000,7 +2000,7 @@ int iaa_decrypto_multi_task_nodes(struct acctest_context *ctx) /* mismatch_expected: expect mismatched buffer with success status 0x1 */ int iaa_task_result_verify(struct task *tsk, int mismatch_expected) { - int ret = ACCTEST_STATUS_OK; + int ret = ACCTEST_STATUS_FAIL; info("verifying task result for %#lx\n", tsk); @@ -2008,6 +2008,9 @@ int iaa_task_result_verify(struct task *tsk, int mismatch_expected) return tsk->comp->status; switch (tsk->opcode) { + case IAX_OPCODE_NOOP: + ret = ACCTEST_STATUS_OK; + break; case IAX_OPCODE_CRC64: ret = task_result_verify_crc64(tsk, mismatch_expected); break; @@ -2032,6 +2035,9 @@ int iaa_task_result_verify(struct task *tsk, int mismatch_expected) case IAX_OPCODE_COMPRESS: ret = task_result_verify_compress(tsk, mismatch_expected); break; + case IAX_OPCODE_DECOMPRESS: + ret = task_result_verify_decompress(tsk, mismatch_expected); + break; case IAX_OPCODE_SCAN: ret = task_result_verify_scan(tsk, mismatch_expected); break; -- 2.39.3