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 A14FB456F9; Wed, 31 Jul 2024 06:23:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 365BE4066E; Wed, 31 Jul 2024 06:23:39 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 5E81A4042E for ; Wed, 31 Jul 2024 06:21:52 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1fd66cddd07so36633175ad.2 for ; Tue, 30 Jul 2024 21:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722399711; x=1723004511; 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=lZ/tSOT4VVGDOAeeqHFvsxxAzIqBN5BFyzRQMKUGVSc=; b=EG8S3FpwFWOhuAuqFPWTsP9L/u4zqd9icAGAGetTM0YFRgvPaVUCHS4booFIgoz7Te CSwjbvjMfmxa2qGkFgKgZjnH06wHuw7ZW11VZ+m5G1f5OL3xHhDAVEcRBKeMApUYl2Vd MlS8viHZcuWCER1uA7OrQmwGEPf7hl70yg4yLbDKZKI6BLwLqJeMtC5RfrSDtg6NiyIG y0iVR4GDTrA6u+nvgqf7e9gElehJ1tlqKbwZF7nLITB8QvTOvK3smqBrdviiZG57qugh Vj7On9FpwmvGlq5qz4hlIB2z96IBS1/dskMnqbL+P4Gi44hMGxyD3h78Ah9NrVK8L1Bf a0Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722399711; x=1723004511; 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=lZ/tSOT4VVGDOAeeqHFvsxxAzIqBN5BFyzRQMKUGVSc=; b=oLdBSJcKXUF18Etdn6dUwPR1uH24IwJHA12aSZuJDSQ/hDJ3GUUY+SpshvnNx1IIAu p2qf+cwn09xQilZqpnSKiBqFQH2eLL4mEjJWeL5+XZwd053c1fFR6dAvgLCAh9+j8ugJ GUNnWMNt8khm/T18KWwvKvDmBnP49+CarmK111mWxerNIQYOzrJdKDO3ANc4dwN2YBY3 s1/kg2sYlq9oyANp11kEYwO3vJZWtPVhsYsWgDkdc3u7S7qg3hDHtFINUaMQTxen99NR 4KuRjog8g4MM96bs/vRIxBDcJRe2TONDOW/dPxlfEEdLwtaTt3SgIEr7L05GX70xcmU0 7S8g== X-Gm-Message-State: AOJu0YwI/HVbp+Ki5zqKDHLAQduIgyjP5tAyOFtr25eIThBTxCJb2Hqv gsev5cTm00PwNsNEByVyhmNPEvEB6b0QRFGdc74eT3P3IeNy0DFr1KQCckRBl9FV5Xv8cVpjXyp M X-Google-Smtp-Source: AGHT+IGis5Gn0KuC/FGIuUN/8l2K2Q4FxkwifzAl3qn+JCrciVJPcp+81Ddap5g23I0kaAUa5Z7erw== X-Received: by 2002:a17:902:e891:b0:1fb:9e80:b501 with SMTP id d9443c01a7336-1ff04805baamr131231685ad.2.1722399711281; Tue, 30 Jul 2024 21:21:51 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7c80044sm110093375ad.14.2024.07.30.21.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 21:21:50 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/3] restore cfgfile library tests Date: Tue, 30 Jul 2024 21:20:28 -0700 Message-ID: <20240731042141.76985-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. v2 - use mkstemp instead of mktemps since the later does not exist on Windows (in mingw). Stephen Hemminger (3): buildtools: add helper to convert text file to header test: restore cfgfile tests test: remove unused resource API app/meson.build | 3 +- app/test/meson.build | 8 +- app/test/resource.c | 276 ----------------------------- app/test/resource.h | 106 ----------- app/test/test_cfgfile.c | 164 ++++++++++------- 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(+), 552 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