From 57fb9a1b1a3a1955960c397c9fdf21a12ed64270 Mon Sep 17 00:00:00 2001 From: Chung Chung Date: Mon, 10 Nov 2025 18:35:04 -0500 Subject: [PATCH] Add vdo-test-tools spec file for package building This enables building the vdo-test-tools package, which is essential for testing purposes. See README.md for package details. Signed-off-by: Chung Chung --- packaging/vdo-test-tools/README.md | 6 +++ packaging/vdo-test-tools/vdo-test-tools.spec | 40 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 packaging/vdo-test-tools/README.md create mode 100644 packaging/vdo-test-tools/vdo-test-tools.spec diff --git a/packaging/vdo-test-tools/README.md b/packaging/vdo-test-tools/README.md new file mode 100644 index 0000000..e83b517 --- /dev/null +++ b/packaging/vdo-test-tools/README.md @@ -0,0 +1,6 @@ +# vdo-test-tools + +This repository contains package definitions needed to build some test utilities that are used in the VDO test environment. The intent is to feed into COPR such that each distro that is being tested in the environment has a compatible set of binaries to use while exercising migration (and other) tests. + +The spec file contained here will simply refer to the public (github vdo-devel repository)[https://github.com/dm-vdo/vdo-devel] and build a subdirectory for the vdo test tools on each supported distro. + diff --git a/packaging/vdo-test-tools/vdo-test-tools.spec b/packaging/vdo-test-tools/vdo-test-tools.spec new file mode 100644 index 0000000..0339b8a --- /dev/null +++ b/packaging/vdo-test-tools/vdo-test-tools.spec @@ -0,0 +1,40 @@ +%define repo_branch main + +Name: vdo-test-tools +Version: 1.0 +Release: 2 +Summary: VDO Test tools +License: GPL2+ +URL: https://github.com/dm-vdo/vdo-devel +Source0: %{url}/archive/refs/heads/main.tar.gz +BuildRequires: make +BuildRequires: gcc +BuildRequires: zlib-devel + +%description +This package provides test utilities that are used in the VDO test environment + +%prep +%autosetup -n vdo-devel-%{repo_branch}/src/c++/vdo/tools + +%build +make + +%install +%{__install} -d $RPM_BUILD_ROOT%{_bindir} -m 0755 +%{__install} -m 0755 genDiscard $RPM_BUILD_ROOT%{_bindir}/genDiscard +%{__install} -m 0755 genDataBlocks $RPM_BUILD_ROOT%{_bindir}/genDataBlocks +%{__install} -m 0755 setReadOnly $RPM_BUILD_ROOT%{_bindir}/setReadOnly + +%files +%defattr(-,root,root) +%{_bindir}/genDiscard +%{_bindir}/genDataBlocks +%{_bindir}/setReadOnly + +%changelog +* Nov 11 2025 Chung Chung - 1.0-1 +- Update description and inital push to github. + +* Tue May 27 2025 Andy Walsh - 1.0-1 +- Initial version