From owner-freebsd-testing@FreeBSD.ORG Fri Oct 31 21:52:43 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0008C758 for ; Fri, 31 Oct 2014 21:52:42 +0000 (UTC) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0FEB994 for ; Fri, 31 Oct 2014 21:52:42 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id eu11so8435459pac.23 for ; Fri, 31 Oct 2014 14:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=K46Mwbrn42d4s8wfWoTU+jybRcnPFtufjo/w8/fIjGg=; b=qTOFWPdXdUs+aSWa341isrzDNSwGe2KXRN+b3GKkphML+n1XmBKODUR6SI+/9SZXEu I0osEhjY5HzZCUU6SYSptbdQtgp8HQPqC3BkSfK3+UbqqSFLXG/dJV8lho/447zA198G rIRf6aBmVCyRZ5rLnCcwNLNgeXxPFHJoX0XONdRVnMhdxSeuYJGjRcy1EveRRdWB5oTx cb99YpQa/r/aHEzmklajFjrBOw8UgMJQ3t69glDy2YpzAlBAOqi7gseqHBvfXrVA0Yft V8zx2wlx/9ejpTm9iGI0wHiPFGzRR+vx0PdZrHWvhxkZEc/j5RZ8IbAuNb+qgH4HEhlB c1TA== X-Received: by 10.66.255.7 with SMTP id am7mr26661269pad.134.1414792361995; Fri, 31 Oct 2014 14:52:41 -0700 (PDT) Received: from ?IPv6:2601:8:ab80:7d6:34d4:4abd:64bb:590a? ([2601:8:ab80:7d6:34d4:4abd:64bb:590a]) by mx.google.com with ESMTPSA id cc2sm10750776pbd.62.2014.10.31.14.52.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 14:52:41 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_54A72C55-9A73-49FB-A2D5-9906B19B6EDE"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: help on testing for FreeBSD... From: Garrett Cooper In-Reply-To: <20141024230806.GO82214@funkthat.com> Date: Fri, 31 Oct 2014 14:52:40 -0700 Message-Id: <35585EB9-21D0-4AFC-8BA5-F2DD4968590F@gmail.com> References: <20141016001543.GD1852@funkthat.com> <69C71414-AE05-4AC2-B07D-23F5569C9FCA@gmail.com> <20141016003822.GE1852@funkthat.com> <20141016005248.GF1852@funkthat.com> <20141024230806.GO82214@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1878.6) Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2014 21:52:43 -0000 --Apple-Mail=_54A72C55-9A73-49FB-A2D5-9906B19B6EDE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 24, 2014, at 16:08, John-Mark Gurney wrote: > John-Mark Gurney wrote this message on Wed, Oct 15, 2014 at 17:52 = -0700: >> NGie Cooper wrote this message on Wed, Oct 15, 2014 at 17:46 -0700: >>> On Wed, Oct 15, 2014 at 5:38 PM, John-Mark Gurney = wrote: >>>> Garrett Cooper wrote this message on Wed, Oct 15, 2014 at 17:25 = -0700: >>>>> Hey jmg@ (-testing CCed)! >>>>=20 >>>> Sure, np... >>>>=20 >>>>> On Oct 15, 2014, at 17:15, John-Mark Gurney = wrote: >>>>>=20 >>>>>> Hello, >>>>>>=20 >>>>>> I'm working on testing parts of OpenCrypto. I have committed = some work >>>>>> to p4 at: >>>>>> = https://p4db.freebsd.org/depotTreeBrowser.cgi?FSPC=3D//depot/projects/open= crypto/tests/sys/opencrypto&HIDEDEL=3DNO >>>>>>=20 >>>>>> But it requires a few files to be installed... I'm not sure = where the >>>>>> best location to install these are and now best to install them? >>>>>=20 >>>>> I have a couple questions: >>>>> - Where would the source live in the tree? >>>>=20 >>>> Which source are you talking about? The python source? or the = source >>>> for the input data files? If you mean the later, it's where they = will >>>> be committed... They are taken from NIST's CAVP program = unchanged... >>>> I COULD possibly write a complicated rules to fetch and extract the >>>> files, but decided not to... >>>=20 >>> The bulk majority of the driver source (.c, .h, etc). >>=20 >> The code that I'm testing is in src/sys/opencrypto (and there are = other >> drivers that can get tested too, but it still goes through the = opencrypto >> code)... Hence why I put them in tests/sys/opencrypto... If that's = the >> wrong location, let me know and I can move them... >>=20 >>>>> - Why are they written in python? >>>>=20 >>>> Because I'm too lazy to write code in C... I had already written >>>> framework code in Python, and C doesn't have a standard function to >>>> decode hex.. :) And error handling it much easier in python... >>>=20 >>> I ask because we don't have a means for doing unittest level = execution >>> right now and not being written in something that's in base or >>> installed automatically (perl for instance) would mean that your = test >>> code wouldn't be run by default on jenkins runs. >>=20 >> Yeh... Though as a kld will have to be loaded, and a sysctl set as >> root, there's other issues to having it automaticly run as part of >> jenkins... >=20 > Hello, any help w/ this? I haven't received a response on how to > integrate my code.. If I don't get help w/ this soon, I will add it > to src/tools/regression, and call it a day... Sorry for not responding sooner. I=92m off today, so I=92ll be around = the usual channels on #efnet if you need to track me down. Also, I spotted this in passing while trying to see if we had any = arc4random testcases=85 http://svn.freebsd.org/base/head/contrib/netbsd-tests/crypto/opencrypto/ This might be more worthwhile to integrate than pursing a custom test = infrastructure/tests route as it=92s a part of NetBSD=92s open crypto = testsuite (there=92s probably going to be some API differences, but they = should be relatively small). Thank you! --Apple-Mail=_54A72C55-9A73-49FB-A2D5-9906B19B6EDE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUVASoAAoJEMZr5QU6S73eKWAIAIp95prBH6yfPaLIqbGUmedR LHn7Jdk9gtCADf+YEp82z8bVC/NpAQ2ml0+myFXpSusM19vxm0pyiEJggtDj6E88 fcqdulcufrltQxavu3uiQuxT4R+W//KMFpV+r1BpVeCelKOdw6TDhA+fa71seBGE ffkwK3BQSlYX/MyAos6NdfFRRTGTPAbwMycnWKzn+4zd/T7MUp5JiwvueMAtfgev 01Ctl1Ptp67s7A14t7yDWn/JGHUvvYcpBsvSbzox+6fgPf9Jt/Rj21n7G9hbeaAu Jt5wYRFPpv6dKA2PLzpzFrAZD8Gs3Iki0slrda2JSmv+4wfGNGUU2huxwCkdj9g= =elBq -----END PGP SIGNATURE----- --Apple-Mail=_54A72C55-9A73-49FB-A2D5-9906B19B6EDE--