From patchwork Sat Feb 6 01:31:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stotland, Inga" X-Patchwork-Id: 12071707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50880C433E6 for ; Sat, 6 Feb 2021 02:47:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EB5E64F92 for ; Sat, 6 Feb 2021 02:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbhBFCrM (ORCPT ); Fri, 5 Feb 2021 21:47:12 -0500 Received: from mga12.intel.com ([192.55.52.136]:51704 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbhBFCjy (ORCPT ); Fri, 5 Feb 2021 21:39:54 -0500 IronPort-SDR: dGqzNUkXHdf8BwatpjkHOraScfwqTCmfYePpXuCTqwUPq31xTPNPTlED0CkKopLBU9SsxXo/pZ a7gGp2xxHNtQ== X-IronPort-AV: E=McAfee;i="6000,8403,9886"; a="160668384" X-IronPort-AV: E=Sophos;i="5.81,156,1610438400"; d="scan'208";a="160668384" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 17:31:58 -0800 IronPort-SDR: uI3c9+T1IrubLOZyE38SMjPb52OO4pT5f1vuLQu5/wKsC5LtOZPnKkHadMP34CaBLMW3ZjtrBy S1YQKey9TEQQ== X-IronPort-AV: E=Sophos;i="5.81,156,1610438400"; d="scan'208";a="508736118" Received: from yxiong5-mobl2.amr.corp.intel.com (HELO istotlan-desk.intel.com) ([10.212.99.79]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 17:31:57 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ 0/3] Framework for non-interactive mesh test Date: Fri, 5 Feb 2021 17:31:37 -0800 Message-Id: <20210206013140.390219-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch set introduces a framework for non-interactive testing of mesh daemon functionality and consists of the three components: 1. A version of src/shared/tester that uses ELL primitives: everything mesh-related uses ELL. 2. New type of mesh IO used only for testing. 3. The mesh-cfgtest tool that excercises a number of mesh D-Bus API calls. Currently, the tool covers limited number of initial test cases. The extended coverage will be provided after this patch set is accepted. Brian Gix (1): mesh: Add unit test IO Inga Stotland (2): shared/tester: Create ell-based version of tester code tools/mesh-cfgtest: Non-iteractive test for mesh daemon Makefile.am | 8 +- Makefile.mesh | 2 + Makefile.tools | 6 + mesh/main.c | 51 +- mesh/mesh-io-unit.c | 542 ++++++++++++++++ mesh/mesh-io-unit.h | 20 + mesh/mesh-io.c | 9 +- mesh/mesh-io.h | 3 +- src/shared/tester-ell.c | 887 ++++++++++++++++++++++++++ tools/mesh-cfgtest.c | 1319 +++++++++++++++++++++++++++++++++++++++ 10 files changed, 2826 insertions(+), 21 deletions(-) create mode 100644 mesh/mesh-io-unit.c create mode 100644 mesh/mesh-io-unit.h create mode 100644 src/shared/tester-ell.c create mode 100644 tools/mesh-cfgtest.c