Message ID | 20240801173029.65710-1-stephen@networkplumber.org (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7923D45715; Thu, 1 Aug 2024 19:30:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 570D440A8B; Thu, 1 Aug 2024 19:30:42 +0200 (CEST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id 1C5004064A for <dev@dpdk.org>; Thu, 1 Aug 2024 19:30:40 +0200 (CEST) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-70d23caf8ddso6264291b3a.0 for <dev@dpdk.org>; Thu, 01 Aug 2024 10:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722533439; x=1723138239; 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=s++VVWjy7WsDAsNptVYeNTL3IMwPq7fopIYPqkUs7Ww=; b=QBB3Ii+bpUieIN+RWZtCH5qV5+nUwmCThqRxxge/Zb3qk3R9d8JZUt2mL+tlTIiq0Y gTTu/y5t/ZzYuGdlP5e/ivd6PCffFndW2/Vy/LiNP8M++Eu+XCAjNAyJshti5dDj2YWB HAOpl1ht0ynZkNKuMYWAyfpkAphp1Qc5jcVgPShradGX2sg5xxWw7sgCADBNQS8lFUbB V7nYmRUtZyPiF/8IwYvtE8fcdCW3ZY01WGxlJqVkWEH06fGF6C7TnMrX5p6sipdyGXkv x7+nZTTZFiXiQqD04bqfvgryFnds0B4P65K8AdoSS/zwgoer1fBD0ji8vrt2pAklEVHK tU6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722533439; x=1723138239; 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=s++VVWjy7WsDAsNptVYeNTL3IMwPq7fopIYPqkUs7Ww=; b=tMmoO/d2M/DVvZdqI1TXPXmEuPG2qkgCvMeCGwTBMwXwG4GiD5QHw7GxYlG1RDdtZN OE5CuLEBIuvdnSkOiOe8+CB93hdFCUVQYYdFdLtOlRDn+Dx/o0CaenxgSZs1jdE1h+Y8 YMyVTfougz3dzYYOR1ZJbH/RWOxKGKZz6+Q5rY64mOLgWSNgtN1Z5zgYf0VISy0H4jDX L/B0lGs3pk+yCzoCnUxsXEEjB5msZwmuCZonDwgUCfKFuX8xELBcsrN4se0wVNpITF8F SNy9e8Kp6tWt5ys0+pGtu1QvgkwsavnqZ768IyJbSh2Sg7IejLLACbRH3eQIhnxscqi7 r3Rg== X-Gm-Message-State: AOJu0YxTzJfy8Wm+UlizSbok54b7QnPkG/S1Oy8S0rP718c/55srpwNE Y7w29HKZU9oX4U0GGOrhHLPNMOAagyoQeTjgQbYa8rELpTd8XDqnEHKYU6Bdym4EUI9ttPcuUyr 1 X-Google-Smtp-Source: AGHT+IGXhZMcD5rA28E17hjzMQoFaW+mlf2g/UTWV4WvMJ/H0xH+h73WfEgno/dTSwmzY7Bsgdqv/w== X-Received: by 2002:a05:6a00:1492:b0:70d:2693:d215 with SMTP id d2e1a72fcca58-7106cfcf83bmr1155246b3a.16.1722533439041; Thu, 01 Aug 2024 10:30:39 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ec02a3fsm100170b3a.16.2024.08.01.10.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 10:30:38 -0700 (PDT) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org> Subject: [PATCH v4 0/3] restore lost cfgfile tests Date: Thu, 1 Aug 2024 10:29:07 -0700 Message-ID: <20240801173029.65710-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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
restore lost cfgfile tests
|
|
Message
Stephen Hemminger
Aug. 1, 2024, 5:29 p.m. UTC
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. v4 - add special treatment for temp directory in Windows the test obviously never ran before on 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