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 A0520456F3; Wed, 31 Jul 2024 00:56:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 123A940E43; Wed, 31 Jul 2024 00:56:01 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id 7E2B6402C8 for ; Wed, 31 Jul 2024 00:55:30 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-70d1c655141so3678902b3a.1 for ; Tue, 30 Jul 2024 15:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722380129; x=1722984929; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WYcnJdIrx5QTvNtnXWsc3VIXzsaFD6gjXBToTXNq2Xs=; b=Pc8rP5TwZBZCBvPrUqRi+snj1Z/F7ky5UyNaIBWqa0H2wdOE6nfQx1EFHq+9t8GygE bsibpDflN8sf/WulRumHb6UQUw3HaKg+388e/HXOz0jvBpjTgYLeH5UtKOs8ndFczHrj Afoo8mJZWAXo9iFE0smv/o3mAnNWGF1bnMuX87E+PXZ9Ul0p048wUrfL5Jy2S4cC4ohc H+OBO5J4lLcuyOwwKVu5sTsJ7hC7z+91C1NrY+wviXgCh8BWw/l5ZUKfEjFVAIDVmGRr 3CbkucUqhuerMGue4dJVNRWNlV1h4P8DAbm32mCd46QNSE0rewvPmOc7M0ncZrncSzCs 8mXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722380129; x=1722984929; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WYcnJdIrx5QTvNtnXWsc3VIXzsaFD6gjXBToTXNq2Xs=; b=EZPQJplF4ObgtHtsZNsczp+QYTGjag7Em/5Xg1RxkDwWudx2bzzJ86djPiamNhNdW0 rSS02UtE02ztOgwzWfR+fAAg+nN96ieDkwt7vrSbnWoOuIiH3DcyAhZz+tQmMQXRL8rz doi8LqQ32gmT2Ey9B8roMxNHgwE0aFkqozUuydOTiWt0wokPmf2+Qqix7auYN+rtnufa xVcVC/OX39PL5ws7IIv1aRroFerOsHl1QpPjTB5/mkzDUnQfUUQXQVspmbNW/1hskukT cWPhip+ByLAU7mXy5+xuwTDG1Mmg5v2dngYxYDTQNg1nVQV+/mKr1ir/cRhWhAWTcPsZ LF+A== X-Gm-Message-State: AOJu0YwG/V1UKUi57jm1hB+SIGFcItjPNzZe2NA7rv+qhb3kmFd9nBKQ XlKmvgXIYEKXmB/skAafTWJgKSF4lnr8fl/+PAyK8yKaAEMQwaS9NXY2aM+SzZJUOwxkOOCf+t6 D X-Google-Smtp-Source: AGHT+IEttYEHexIwqJ35bIdJiy0D4Pyu2CHZ4rUNjzzlCM9RxSVizEBNM40rLsHp/JRnMQ1/Q36kkw== X-Received: by 2002:a05:6a20:2590:b0:1c3:ff89:1fc6 with SMTP id adf61e73a8af0-1c4a15065e2mr9902016637.53.1722380129600; Tue, 30 Jul 2024 15:55:29 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70ead712e9csm8949183b3a.79.2024.07.30.15.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jul 2024 15:55:29 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/3] restore cfgfile library tests Date: Tue, 30 Jul 2024 15:51:26 -0700 Message-ID: <20240730225520.83314-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 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. 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 | 160 +++++++++++------ 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, 164 insertions(+), 550 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