Lowercase name. Add toolchain build requirement. More tests
-{% set name = "CppUnit" %}
+{% set name = "cppunit" %}
{% set version = "1.13.2" %}
package:
- name: {{ name|lower }}
+ name: {{ name }}
version: {{ version }}
source:
fn: {{ name }}-{{ version }}.tar.gz
- url: http://dev-www.libreoffice.org/src/{{ name|lower }}-{{ version }}.tar.gz
+ url: http://dev-www.libreoffice.org/src/{{ name }}-{{ version }}.tar.gz
sha256: 3f47d246e3346f2ba4d7c9e882db3ad9ebd3fcbd2e8b732f946e0e3eeb9f429f
build:
@@ -16,15 +16,20 @@ build:
requirements:
build:
- run:
+ - toolchain
test:
commands:
- cppunit-config --version
+ - test -f $PREFIX/include/cppunit/TestFixture.h
+ - test -f $PREFIX/lib/libcppunit.a
+ - test -f $PREFIX/lib/libcppunit.so # [linux]
+ - test -f $PREFIX/lib/libcppunit.dylib # [osx]
about:
home: https://freedesktop.org/wiki/Software/cppunit/
license: LGPL-2.1
+ license_file: COPYING
summary: 'CppUnit is the C++ port of the famous JUnit framework for unit testing'
extra:
