From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 653C545702; Wed, 31 Jul 2024 19:36:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F3E740DF8; Wed, 31 Jul 2024 19:36:28 +0200 (CEST) Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) by mails.dpdk.org (Postfix) with ESMTP id A39AC402BA for ; Wed, 31 Jul 2024 19:36:27 +0200 (CEST) Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-2681941eae0so1806105fac.0 for ; Wed, 31 Jul 2024 10:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722447387; x=1723052187; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+2ZPeo/hNYZZdkS8BBAHflOwm3GYasfvX818WrUXh+U=; b=ViZrSL2Nt1a2rX8qaR1qIu47Iqj5wCHOP3SpPVUYoqRsD/myCsXG1AI/p2abkzYxfQ Zz5uBlivBFFkZ+B3LBCGgRPoF2Y9lCo/MD/9noy5BJAfqa9cEZXuEbGtKaLOzxnnMknP H6ou//Lf8Degug5DdC3mtQd0AagVVwj6ylfRREgr+B1eIsJCypNVIkUbAdVxtSBS0LiF qwfDO93aFTtsT9CTH197au7kzHliUw+6tLufkzrSo9rhjup4xFxhxns9PjJ1fXhYhyig trItfZ8b18oGnw7KwG/FC3L3JxgoepsTxQjiQikaFSuV2UtEbGGwc85kflRNvXeqU3bL Eiwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722447387; x=1723052187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+2ZPeo/hNYZZdkS8BBAHflOwm3GYasfvX818WrUXh+U=; b=DJguwxk4MdiDjGJDYnxsFfRmiwLRO0nnlrJcRuFIB8XQESmbuUcOnDNtOZAj03/P9G ZkBdAo9onJes9tH4nr2Dsh4JHBj+7VSquYpmwIIbJYoqf2KghcRVJPttWXBMRws2MFh9 OC7CdW4IIfZ/qckrC35hIoEwsHLOvY2FOypc4w1gLbUXLjaamRMqyY+dW6I9ePJ0fxmp 81h+ieLgJLAKPbnd/epAnysRcEi6yl13VtGc5FG/xN95wn7L0A58mmABR+h3cyQ4J9p8 fqIQVi1V2+i6/AkV1HhwnaFxE8Hg5rdd/jpYDARUbco8WRrQqRo0wmJY0l5+pymgwhWH U1yg== X-Gm-Message-State: AOJu0YwKzEx/ToBlz4DRntT8Lfn1uNW3m0XDcqxlbcgDpHj5Hoc28Qhg Sn3M0gtGlQtWVthBy//lAPfjwYWUWm1s6ABIc587lqCTJ/sFXAjKfmreUOH4LHOdPdS9H0bVNoM P X-Google-Smtp-Source: AGHT+IHQq11bDbsdtaT9H7V0s4drMBo9luRJXCY4nnoaANE/aAtMf16w9SYJ5U5wORFbCRGp6aHcOQ== X-Received: by 2002:a05:6870:46a1:b0:261:22a4:9235 with SMTP id 586e51a60fabf-267d4ef991cmr15720505fac.32.1722447386736; Wed, 31 Jul 2024 10:36:26 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7a9f7b7b1besm10870484a12.2.2024.07.31.10.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 10:36:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 0/3] restore lost tests for rte_cfgfile Date: Wed, 31 Jul 2024 10:35:10 -0700 Message-ID: <20240731173616.91081-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240730225520.83314-1-stephen@networkplumber.org> References: <20240730225520.83314-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The cfgfile tests did not get built since conversion to meson and they used an awkward way to manage the test data. This patchset converts the tests to use a helper to take text file and make it into a C header. Then use the C header to generate temporary files as needed. v3 - change creation of temp file to support Windows Stephen Hemminger (3): buildtools: add helper to convert text file to header test: remove unused resource API test: restore cfgfile tests app/meson.build | 3 +- app/test/meson.build | 8 +- app/test/resource.c | 276 ----------------------------- app/test/resource.h | 106 ----------- app/test/test_cfgfile.c | 153 ++++++++++------ app/test/test_cfgfiles/meson.build | 19 ++ app/test/test_resource.c | 104 ----------- buildtools/gen-header.py | 36 ++++ buildtools/meson.build | 2 +- 9 files changed, 166 insertions(+), 541 deletions(-) delete mode 100644 app/test/resource.c delete mode 100644 app/test/resource.h create mode 100644 app/test/test_cfgfiles/meson.build delete mode 100644 app/test/test_resource.c create mode 100644 buildtools/gen-header.py -- 2.43.0