blob: a786267c2ed3d05273648b5bbe9dd4973efca863 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
Name: cmdtest
Version: 0.3
Release: 2%{?dist}
Summary: Black-box testing for Unix command line tools
# ask upstream to include license text
License: GPLv3+
URL: http://liw.fi/%{name}/
Source0: http://code.liw.fi/debian/pool/main/c/%{name}/%{name}_%{version}.orig.tar.gz
BuildArch: noarch
BuildRequires: python-coverage-test-runner
BuildRequires: python-cliapp
BuildRequires: python-ttystatus
Requires: python-cliapp
Requires: python-ttystatus
%description
cmdtest black box tests Unix command line tools. Roughly, it is given
a command line and input files, and the expected output, and it
verifies that the command line produces the expected output. If not,
it reports a problem, and shows the differences.
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check
# CoverageTestRunner trips up on build directory;
# since we've already done the install phase, remove it first
rm -rf build
%{__python} setup.py check
%files
%doc NEWS README
%{_mandir}/man1/cmdtest.1*
%{_bindir}/cmdtest
%{python_sitelib}/*
%changelog
* Mon Jun 25 2012 Michel Salim <salimma@fedoraproject.org> - 0.3-2
- Remove deprecated %%{python_sitelib} declaration
- Delete build directory before doing coverage tests; the coverage
exclusion list does not include the built version of the excluded
modules
* Sun Jun 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.3-1
- Initial package
|