Compare commits
No commits in common. "c8s" and "c8" have entirely different histories.
1
.catch1.metadata
Normal file
1
.catch1.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
340a18695d88be7c27574eaa88002a249cf851d8 SOURCES/catch1-1.12.1.tar.gz
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/catch1-1.12.0.tar.gz
|
SOURCES/catch1-1.12.1.tar.gz
|
||||||
/catch1-1.12.1.tar.gz
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%bcond_without check
|
|
||||||
|
|
||||||
Name: catch1
|
Name: catch1
|
||||||
Version: 1.12.1
|
Version: 1.12.1
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A modern, C++-native, header-only, framework for unit-tests, TDD and BDD
|
Summary: A modern, C++-native, header-only, framework for unit-tests, TDD and BDD
|
||||||
|
|
||||||
License: Boost
|
License: Boost
|
||||||
@ -45,11 +44,10 @@ mkdir -p %{buildroot}%{_includedir}
|
|||||||
cp -pr include %{buildroot}%{_includedir}/catch
|
cp -pr include %{buildroot}%{_includedir}/catch
|
||||||
|
|
||||||
|
|
||||||
%if %{with check}
|
|
||||||
%check
|
%check
|
||||||
cd build
|
cd build
|
||||||
ctest -V %{?_smp_mflags}
|
ctest -V %{?_smp_mflags}
|
||||||
%endif
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc README.md catch-logo-small.png docs
|
%doc README.md catch-logo-small.png docs
|
||||||
@ -58,9 +56,6 @@ ctest -V %{?_smp_mflags}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Apr 24 2019 Daniel Kopecek <dkopecek@redhat.com> - 1.12.1-2
|
|
||||||
- spec: make the check phase conditional
|
|
||||||
|
|
||||||
* Sat Mar 3 2018 Tom Hughes <tom@compton.nu> - 1.12.1-1
|
* Sat Mar 3 2018 Tom Hughes <tom@compton.nu> - 1.12.1-1
|
||||||
- Update to 1.12.1 upstream release
|
- Update to 1.12.1 upstream release
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-8
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (catch1-1.12.1.tar.gz) = 3d9ea74b0e150059be641d320b77f0ef18190f190c010fd74e60f6c8299ffd183cb8a96d540a8bddc694d7fbbd5d7a411cce2250655d8eda4ad8db911c0ddbc8
|
|
@ -1 +0,0 @@
|
|||||||
1
|
|
@ -1,14 +0,0 @@
|
|||||||
#define CATCH_CONFIG_MAIN
|
|
||||||
#include <catch/catch.hpp>
|
|
||||||
|
|
||||||
unsigned int Factorial(unsigned int number) {
|
|
||||||
return number <= 1 ? number : Factorial(number - 1) * number;
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_CASE("Factorials are computed", "[factorial]") {
|
|
||||||
REQUIRE(Factorial(1) == 1);
|
|
||||||
REQUIRE(Factorial(2) == 2);
|
|
||||||
REQUIRE(Factorial(3) == 6);
|
|
||||||
REQUIRE(Factorial(10) == 3628800);
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
TEST_SOURCE=factorial.cpp
|
|
||||||
TEST_TARGET="${TEST_SOURCE/\.cpp/}"
|
|
||||||
|
|
||||||
CXXFLAGS="$(rpm --eval '%{build_cxxflags}')"
|
|
||||||
LDFLAGS="$(rpm --eval '%{build_ldflags}')"
|
|
||||||
LIBFLAGS=""
|
|
||||||
|
|
||||||
# build target using distribution-specific flags
|
|
||||||
g++ -std=c++11 $CXXFLAGS $LDFLAGS $LIBFLAGS -o $TEST_TARGET $TEST_SOURCE
|
|
||||||
|
|
||||||
# test that target exists
|
|
||||||
test -f ./$TEST_TARGET
|
|
||||||
|
|
||||||
# test that target is executable
|
|
||||||
test -x ./$TEST_TARGET
|
|
||||||
|
|
||||||
# test that target runs successfully
|
|
||||||
./$TEST_TARGET
|
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
standard-inventory-qcow2:
|
|
||||||
qemu:
|
|
||||||
m: 4G
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
roles:
|
|
||||||
- role: standard-test-basic
|
|
||||||
tests:
|
|
||||||
- devel-usability
|
|
||||||
required_packages:
|
|
||||||
- gcc-c++
|
|
||||||
- rpm
|
|
||||||
- redhat-rpm-config
|
|
||||||
- catch1-devel
|
|
Loading…
Reference in New Issue
Block a user