Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2500813pxb; Fri, 5 Feb 2021 21:53:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgQLR5zqPHFFEiqL1Ui3eTMoiSzhMyj6Np3AzWhE0gXHRFq+gTvriLKEJKKONgy30+D+AY X-Received: by 2002:a17:906:31c1:: with SMTP id f1mr7332627ejf.263.1612590818384; Fri, 05 Feb 2021 21:53:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612590818; cv=none; d=google.com; s=arc-20160816; b=xwK4sZwV7bh6M4H7JVTHYPw9JwwJ6eaZPQvDyy4ZWlJbHfGwF3MoCAfaTzZZ/iOmV8 MXIlyPTHIJJuKEanmujIPokkKQBw5n6ljBECNaM4s0lBUG4NxLeYHGnMPfZqFbbLCc4z CcHn0Y6eTEF6ko/73VNwTl8BvwacSqlIqtdGzeoVIbcQqwQ8bRy7s4+SEFqTCEPeLkPM 9tKjsYel7Tm0per1SJ623b3VTSGSwWq8etkB/MpVQA1PFeJyzkSEhyA64DBgnqdgcCfY MuVcsNF7+SHoMivO3UAQqNGm9cFuhF+g9HkkzWF3ALrCwI0CYIX1B0/g2BJHTzL1EuRu VVGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=kWZO9crI1eeDfd4LUewBiK1eovYeJ4bHXyQ/cNJWCi4=; b=MMLBp3pvPb47CWvrtkfCPy2g1VTgJO5lAyoZBGGH20q+y3SnxFpfl8zK8qqOIAbxE7 kxcTFpQNQFuwmhLtbOEVjGL5PbSzQBnG1H4UUWs/fc/4P6RuiObJwfw0GJCLIh6DWmtk sTNNMcAMLC7OSasGV1YCk2s4mWguWBvJDPAq/MpC5lV+21rK2caom/SqS+AnbiusA/Rg grrYAhhlI4zLUb3BVZ3w6/YAHUxaK4Tnf5k40GQrjzFEZxIJZ2mIJ/XKmBDi9Q260PYz M8Z/4upky8pi4NK8LJyq4n58CWPVo/GFa51BsWWclsvQJl1NAgd7Qg4ndZ3NwmzHzAjU pDjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si7508352edz.241.2021.02.05.21.52.59; Fri, 05 Feb 2021 21:53:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbhBFFvS (ORCPT + 99 others); Sat, 6 Feb 2021 00:51:18 -0500 Received: from mga01.intel.com ([192.55.52.88]:48288 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhBFFvQ (ORCPT ); Sat, 6 Feb 2021 00:51:16 -0500 IronPort-SDR: arzUSKeHCQPaM44BCPvlwpmiVPA4xX8R6MIuKCnlWCUpdOHeQPZji6Hvx2296Gu2Y0Jw2cpLB8 gNUjnBo2Pbvw== X-IronPort-AV: E=McAfee;i="6000,8403,9886"; a="200540944" X-IronPort-AV: E=Sophos;i="5.81,157,1610438400"; d="scan'208";a="200540944" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 21:50:31 -0800 IronPort-SDR: Ggp1Z5drIP8B/gn+huZ4REQXm3ALoDZTg2PlWBxX0JtuOSjn6yQS1+Fg25OfwTwlOaMUCrKNwy BGehrPFZFdGA== X-IronPort-AV: E=Sophos;i="5.81,157,1610438400"; d="scan'208";a="397733206" Received: from yxiong5-mobl2.amr.corp.intel.com (HELO istotlan-desk.intel.com) ([10.212.99.79]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 21:50:30 -0800 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, luiz.dentz@gmail.com, Inga Stotland Subject: [PATCH BlueZ v3 0/3] Framework for non-interactive mesh test Date: Fri, 5 Feb 2021 21:50:20 -0800 Message-Id: <20210206055023.401381-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org v3: Fixed copyright style in mesh-io-unit.h ********** v2: Fixed errors reported by bluez-bot. Regarding the warnings for the "__attribute__((packed))": keeping this style to be consistent with the rest of BLueZ codebase ********** 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 | 533 ++++++++++++++++ mesh/mesh-io-unit.h | 11 + mesh/mesh-io.c | 9 +- mesh/mesh-io.h | 3 +- src/shared/tester-ell.c | 887 ++++++++++++++++++++++++++ tools/mesh-cfgtest.c | 1319 +++++++++++++++++++++++++++++++++++++++ 10 files changed, 2808 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 -- 2.26.2