From owner-svn-src-all@FreeBSD.ORG Mon Aug 4 22:10:09 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 363A8F05 for ; Mon, 4 Aug 2014 22:10:09 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED1012243 for ; Mon, 4 Aug 2014 22:10:08 +0000 (UTC) Received: from ngie (uid 1347) (envelope-from ngie@FreeBSD.org) id 5577 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Mon, 04 Aug 2014 22:10:08 +0000 From: Garrett Cooper Date: Mon, 4 Aug 2014 22:10:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269534 - in head: etc/mtree lib/libmp lib/libmp/tests tools/regression/lib/libmp X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e004c0.5577.5ff813b@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2014 22:10:09 -0000 Author: ngie Date: Mon Aug 4 22:10:07 2014 New Revision: 269534 URL: http://svnweb.freebsd.org/changeset/base/269534 Log: Integrate lib/libmp into the build/kyua - Remove the .t wrapper - Fix -Wreturn-type warnings with clang This change has been tested on amd64/i386 Phabric: D530 Reviewed by: jmmv Approved by: jmmv (co-mentor) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Added: head/lib/libmp/tests/ head/lib/libmp/tests/Makefile (contents, props changed) head/lib/libmp/tests/legacy_test.c - copied, changed from r269429, head/tools/regression/lib/libmp/test-libmp.c Deleted: head/tools/regression/lib/libmp/ Modified: head/etc/mtree/BSD.tests.dist head/lib/libmp/Makefile Modified: head/etc/mtree/BSD.tests.dist ============================================================================== --- head/etc/mtree/BSD.tests.dist Mon Aug 4 22:03:58 2014 (r269533) +++ head/etc/mtree/BSD.tests.dist Mon Aug 4 22:10:07 2014 (r269534) @@ -85,6 +85,8 @@ .. libcrypt .. + libmp + .. .. libexec atf Modified: head/lib/libmp/Makefile ============================================================================== --- head/lib/libmp/Makefile Mon Aug 4 22:03:58 2014 (r269533) +++ head/lib/libmp/Makefile Mon Aug 4 22:10:07 2014 (r269534) @@ -1,5 +1,7 @@ # $FreeBSD$ +.include + LIB= mp SHLIB_MAJOR= 7 DPADD= ${LIBCRYPTO} @@ -13,4 +15,8 @@ CFLAGS+= -I${.CURDIR}/../../crypto VERSION_DEF= ${.CURDIR}/../libc/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include Added: head/lib/libmp/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libmp/tests/Makefile Mon Aug 4 22:10:07 2014 (r269534) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +TESTSDIR= ${TESTSBASE}/lib/libmp + +TAP_TESTS_C+= legacy_test + +DPADD+= ${LIBCRYPTO} ${LIBMP} +LDADD+= -lcrypto -lmp + +.include Copied and modified: head/lib/libmp/tests/legacy_test.c (from r269429, head/tools/regression/lib/libmp/test-libmp.c) ============================================================================== --- head/tools/regression/lib/libmp/test-libmp.c Sat Aug 2 06:56:00 2014 (r269429, copy source) +++ head/lib/libmp/tests/legacy_test.c Mon Aug 4 22:10:07 2014 (r269534) @@ -46,7 +46,7 @@ testmcmp(const MINT *mp1, const MINT *mp printf("not ok - %d %s\n", ++tnr, tname); } -static int +static void testsimpel(void) { const char str42[] = "2a"; @@ -74,7 +74,7 @@ testsimpel(void) mp_mfree(t2); } -static int +static void testgcd(void) { @@ -82,7 +82,7 @@ testgcd(void) testmcmp(t0, c5, "gcd0"); } -static int +static void testmsqrt(void) { @@ -94,7 +94,7 @@ testmsqrt(void) testmcmp(t1, c6, "msqrt3"); } -static int +static void testdiv(void) { short ro; @@ -121,7 +121,7 @@ testdiv(void) mp_mfree(t2); } -static int +static void testmult(void) { @@ -131,7 +131,7 @@ testmult(void) testmcmp(t0, c42, "mmult1"); } -static int +static void testpow(void) {