fix tests, they need an extra file (relatively large compared to the main

distfile, and with no copyright info) so there's a manual step to fetch that.
(set TEST_IS_INTERACTIVE).
This commit is contained in:
sthen 2015-10-10 13:00:04 +00:00
parent 50e0d03ebb
commit 97d3ab1a75
2 changed files with 20 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/10/10 12:33:16 sthen Exp $
# $OpenBSD: Makefile,v 1.2 2015/10/10 13:00:04 sthen Exp $
SHARED_ONLY= Yes
@ -20,7 +20,15 @@ MASTER_SITES= http://download-mirror.savannah.gnu.org/releases/linphone/plugins/
CONFIGURE_STYLE= gnu
# there are tests, but need a separate (35MB) download, and fixing
NO_TEST= Yes
# Use bundled libtool for the tests only; otherwise they fail to link.
TEST_FLAGS= LIBTOOL="/bin/sh ../../libtool"
TEST_IS_INTERACTIVE= Yes
pre-test:
@if ! [ -d ${WRKSRC}/test/patterns ]; then echo; echo \
">>> Tests require an additional download. Please fetch"; echo \
">>> http://www.belledonne-communications.com/downloads/bcg729-patterns.zip"; echo \
">>> and unzip it in ${WRKSRC}/test"; \
echo; exit 1; fi
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-test_testCampaignAll,v 1.1 2015/10/10 13:00:04 sthen Exp $
--- test/testCampaignAll.orig Sat Oct 10 13:44:54 2015
+++ test/testCampaignAll Sat Oct 10 13:45:03 2015
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
# This script check if we have the tests patterns and download them if needed
# then run all available tests