Skip to content

Commit 95fd1ba

Browse files
committed
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 <cchung@redhat.com>
1 parent 568499e commit 95fd1ba

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

packaging/vdo-test-tools/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# vdo-test-tools
2+
3+
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.
4+
5+
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.
6+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
%define repo_branch main
2+
3+
Name: vdo-test-tools
4+
Version: 1.0
5+
Release: 1
6+
Summary: VDO Test tools
7+
License: GPL2+
8+
URL: https://github.com/dm-vdo/vdo-devel
9+
Source0: %{url}/archive/refs/heads/main.tar.gz
10+
BuildRequires: make
11+
BuildRequires: gcc
12+
BuildRequires: zlib-devel
13+
14+
%description
15+
This package provides an lsb_release executable for platforms without one.
16+
17+
%prep
18+
%autosetup -n vdo-devel-%{repo_branch}/src/c++/vdo/tools
19+
20+
%build
21+
make
22+
23+
%install
24+
%{__install} -d $RPM_BUILD_ROOT%{_bindir} -m 0755
25+
%{__install} -m 0755 genDiscard $RPM_BUILD_ROOT%{_bindir}/genDiscard
26+
%{__install} -m 0755 genDataBlocks $RPM_BUILD_ROOT%{_bindir}/genDataBlocks
27+
%{__install} -m 0755 setReadOnly $RPM_BUILD_ROOT%{_bindir}/setReadOnly
28+
29+
%files
30+
%defattr(-,root,root)
31+
%{_bindir}/genDiscard
32+
%{_bindir}/genDataBlocks
33+
%{_bindir}/setReadOnly
34+
35+
%changelog
36+
* Tue May 27 2025 Andy Walsh <awalsh@redhat.com> - 1.0-1
37+
- Initial version

0 commit comments

Comments
 (0)