Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 666E4270EC1 for ; Wed, 1 Oct 2025 06:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759301683; cv=none; b=gi5j80zHjVI/wDGYExkTeSYFnu2TUXmupnIFYwxh8ZWwBeiY2Itsjsq7wwpj28dpHKmVSmdweLWDxxJu3eN5cE87GDGvobqcpq74ghuVYKX3RBDSt4MUBjaD1CooUIqqDYFagv2S3BEggwNj1xM+q970gmLPS2WrYPmhRw2zoss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759301683; c=relaxed/simple; bh=qh1Ck5XNx/JSzkctQFKberJjeHoW7DyqY5m+jPcyFwQ=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WMqipUEV4nfPlS3yA5jH79dij2vxEMED0066u733ZBwB/3/wYX3R9YSeB4bcE2xrrHF7XaEIJ7FcXaTeN+lbub1AG6sQ+nlqiTCOQ58fJnOVoOli2+HPSjkKe76jNBd8J2b4qr5BmkUrVUax3msVIEY7vtDxOj2oFCNKzDZ7W/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=OYKBDHSY; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="OYKBDHSY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1759301677; bh=qh1Ck5XNx/JSzkctQFKberJjeHoW7DyqY5m+jPcyFwQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OYKBDHSYFtvfwMQ3xZMzsywP8OzqDrbwVLAvqzS8NaWu3OFJbUdUh6xnhCaJZTWDh 0jVlOH9iqFczNCYQDVgaDa6e5bxmAHumtlRYHBU00qYLd/L0UczkS0wcNva/6xdAkq yngifd0MuROj8z5kMYd+YlgSHy74j7B4tcovafP/9Fv/Y+67V6+YoyeB3THLKj8b/f Ve483tGJKBxpluMIAhgqwxlnDqQHH/w47jtX2bCw2xrWGiynieYCjEr64U/hgnlnp6 WldPIegSNd+Btk6QkOmgBBgUd7oO5WKOGjK9c72XfHDG7STevjQ5DV925xrjSUimfr bFJfqLMDQ5BVA== Received: from fdanis-ThinkPad-X1.. (2a02-8428-af44-1001-2e77-3033-4926-5452.rev.sfr.net [IPv6:2a02:8428:af44:1001:2e77:3033:4926:5452]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: fdanis) by bali.collaboradmins.com (Postfix) with ESMTPSA id F3CB017E1345 for ; Wed, 1 Oct 2025 08:54:36 +0200 (CEST) From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 6/6] unit/test-hfp: Add incoming call interrupted test Date: Wed, 1 Oct 2025 08:54:29 +0200 Message-ID: <20251001065429.268068-6-frederic.danis@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251001065429.268068-1-frederic.danis@collabora.com> References: <20251001065429.268068-1-frederic.danis@collabora.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit This add the following test: - /HFP/HF/CIT/BV-01-C Verify that HF responds as expected when a normal incoming call process is interrupted from the remote party. --- unit/test-hfp.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/unit/test-hfp.c b/unit/test-hfp.c index 2d8f4396d..3973df5cf 100644 --- a/unit/test-hfp.c +++ b/unit/test-hfp.c @@ -930,7 +930,8 @@ static void hf_call_added(uint id, enum hfp_call_status status, if (tester_use_debug()) tester_debug("call %d added: status %u", id, status); - if (g_str_equal(test_name, "/HFP/HF/CLI/BV-01-C") || + if (g_str_equal(test_name, "/HFP/HF/CIT/BV-01-C") || + g_str_equal(test_name, "/HFP/HF/CLI/BV-01-C") || g_str_equal(test_name, "/HFP/HF/ICA/BV-01-C") || g_str_equal(test_name, "/HFP/HF/ICA/BV-02-C") || g_str_equal(test_name, "/HFP/HF/ICA/BV-03-C") || @@ -1339,6 +1340,20 @@ int main(int argc, char *argv[]) MINIMAL_SLC_SESSION('0', '0', '0', '0'), data_end()); + /* Incoming call interrupted - HF */ + define_hf_test("/HFP/HF/CIT/BV-01-C", test_hf_session, + NULL, test_hf_session_done, + MINIMAL_SLC_SESSION('1', '0', '0', '0'), + frg_pdu('\r', '\n', '+', 'C', 'I', 'E', 'V', ':', ' ', + '3', ',', '1', '\r', '\n'), + frg_pdu('\r', '\n', 'R', 'I', 'N', 'G', '\r', '\n'), + frg_pdu('\r', '\n', '+', 'C', 'L', 'I', 'P', ':', + '\"', '1', '2', '3', '4', '5', '6', '7', '\"', + ',', '1', '2', '9', ',', ',', '\r', '\n'), + frg_pdu('\r', '\n', '+', 'C', 'I', 'E', 'V', ':', ' ', + '3', ',', '0', '\r', '\n'), + data_end()); + /* Calling Line Identification - HF */ define_hf_test("/HFP/HF/CLI/BV-01-C", test_hf_session, NULL, test_hf_session_done, -- 2.43.0