Skip to content

Commit c4e1d5f

Browse files
authored
Merge pull request dm-vdo#17 from C2Redhat/main
Add vdo-test-tools spec file for package building
2 parents 568499e + 57fb9a1 commit c4e1d5f

2 files changed

Lines changed: 46 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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
%define repo_branch main
2+
3+
Name: vdo-test-tools
4+
Version: 1.0
5+
Release: 2
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 test utilities that are used in the VDO test environment
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+
* Nov 11 2025 Chung Chung <cchung@redhat.com> - 1.0-1
37+
- Update description and inital push to github.
38+
39+
* Tue May 27 2025 Andy Walsh <awalsh@redhat.com> - 1.0-1
40+
- Initial version

0 commit comments

Comments
 (0)