htcondor: add more tests
{% set name = "htcondor" %}
{% set version = "8.9.3" %}
+{% set uversion = "V{{ version|replace('.', '_') }}" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
- url: "https://github.com/{{ name }}/{{ name }}/archive/V{{ version|replace('.', '_') }}.tar.gz"
+ url: "https://github.com/{{ name }}/{{ name }}/archive/V{{ uversion }}.tar.gz"
sha256: 40c01d5284a610bc840c00ffaaf825a9b604e2f5ff4945390975d487c13782e8
patches:
# use updated external config for boost
@@ -104,8 +105,9 @@ outputs:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
files:
- - sbin/*procd*
- - sbin/gidd_alloc
+ - sbin/condor_procd
+ test:
+ - test -x ${PREFIX}/bin/condor_procd # [unix]
about:
home: "http://htcondor.org/"
doc_url: "https://htcondor.readthedocs.io/"
@@ -144,6 +146,9 @@ outputs:
- voms
files:
- lib/libcondor_utils*
+ test:
+ commands:
+ - test -f ${PREFIX}/lib/libcondor_utils_{{ uversion }}${SHLIB_EXT} # [unix]
about:
home: "http://htcondor.org/"
doc_url: "https://htcondor.readthedocs.io/"
@@ -265,6 +270,12 @@ outputs:
- {{ pin_subpackage('libcondor_utils', exact=True) }}
- {{ pin_subpackage('python-htcondor', exact=True) }}
- {{ pin_subpackage('htcondor-utils', exact=True) }}
+ test:
+ imports:
+ - htcondor
+ - classad
+ commands:
+ - condor_q --version
about:
home: "http://htcondor.org/"
