From owner-freebsd-testing@FreeBSD.ORG Fri May 9 21:45:07 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7975DDD8; Fri, 9 May 2014 21:45:07 +0000 (UTC) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (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 C103D9BA; Fri, 9 May 2014 21:45:06 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id w61so4570613wes.12 for ; Fri, 09 May 2014 14:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FglI1ZPJhMbjh9yvUYeS7rsGAvq7BFgbzmoTqWAUzwI=; b=JW4ib6pXWNPweUhaOBnwxhx6o1CHx9fALJuDd9E6vTAMDq+f7nk1Qva10/U8eiEhDy jFRMdvW9uogM1c5UTFJaGbEKfp9Pn3TUNGqjdt/KX7eiqV2osOroiTDDkdFRhTHfzCpS +HbGWerno2qgv14mh4DU/sYYLos4FKYJHV6cl69bpWeYWTzBx1mBNy1WjQq8hx0UDehr doQIGVptd8myVxGVyleHw8qIp5iwqOKB4xUyVWViJhppolS9Dhh9tNWbl39nRUjsTddE UTwgYRZ8HCCnGRh5VV0U79fSB6kvwTjixTFmvR7k8Ccut1tTny049EEupTwSpaE+Cm+t hs8A== MIME-Version: 1.0 X-Received: by 10.180.85.10 with SMTP id d10mr5219533wiz.0.1399671905139; Fri, 09 May 2014 14:45:05 -0700 (PDT) Received: by 10.194.89.226 with HTTP; Fri, 9 May 2014 14:45:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 May 2014 14:45:05 -0700 Message-ID: Subject: Re: Adding Python Wrapper for ATF From: Garrett Cooper To: "Walker, Myron" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 21:45:07 -0000 On Fri, May 9, 2014 at 2:26 PM, Walker, Myron wro= te: > I have created a python wrapper atfpy-sh that will act as an atf program = and wrap a python module that contains unittest test cases. I have include= d a zip of the wrapper script and the man page for it. I believe it will b= e very efficient to create python unittest test cases and debug them in an = full IDE environment like eclipse and PyDev on any linux or unix desktop sy= stem against shared libraries that are common between operating systems. T= hen just add them to the FreeBSD source tree as ATF wrapped tests once they= are fully operational tests. > > See the attached zip for the atfpy-sh script, manpage, and an example uni= ttest python module. I was putting it under contrib/atf/atfpy-sh and addin= g a Makefile under usr.bin/atf/atfpy-sh to copy atfpy-sh to /usr/bin. Then= just stick the test file in a folder under /user/tests, modify the Kyuafil= e for the folder and it should work. > > I think this would make a great addition to ATF. I would really like to = be able to use it. Hi Myron, I think the attachment was stripped from the email. You might want to contact Alan Somers about his unittest backend for Kyua [1] and when it might be included in the devel/kyua-testers port; Julio manages the upstream source [2]. HTH! -Garrett 1. http://lists.freebsd.org/pipermail/freebsd-testing/2013-November/000107.= html 2. https://github.com/jmmv/kyua/