also run some tests on windows
@@ -20,11 +20,15 @@ requirements:
- {{ compiler('c') }}
- make
test:
+ requires:
+ # use diffoscope for diffing on windows
+ - diffoscope # [win]
source_files:
- test/
+ - test/
commands:
# equivalent of upstream quicktest, cf.
# https://github.com/usnistgov/trec_eval/blob/v9.0.8/Makefile#L58-L70
+ {% if unix %}
- trec_eval test/qrels.test test/results.test | diff - test/out.test
- trec_eval -m all_trec test/qrels.test test/results.test | diff - test/out.test.a
- trec_eval -m all_trec -q test/qrels.test test/results.test | diff - test/out.test.aq
@@ -36,6 +40,11 @@ test:
- trec_eval -m qrels_jg -q -R qrels_jg test/qrels.123 test/results.test | diff - test/out.test.qrels_jg
- trec_eval -q -miprec_at_recall..10,.20,.25,.75,.50 -m P.5,7,3 -m recall.20,2000 -m Rprec_mult.5.0,0.2,0.35 -mutility.2,-1,0,0 -m 11pt_avg..25,.5,.75 -mndcg.1=3,2=9,4=4.5 -mndcg_cut.10,20,23.4 -msuccess.2,5,20 test/qrels.test test/results.test | diff - test/out.test.meas_params
- trec_eval -q -m all_trec -Z test/zscores_file test/qrels.test test/results.test | diff - test/out.test.aqZ
+ {% else %}
+ # only one test for windows; too much hassle to translate everything
+ - trec_eval test/qrels.test test/results.test > tmp
+ - diffoscope tmp test/out.test
+ {% endif %}
about:
home: https://github.com/usnistgov/trec_eval
