From owner-freebsd-testing@FreeBSD.ORG Fri May 9 21:26:48 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 E2B10656 for ; Fri, 9 May 2014 21:26:47 +0000 (UTC) Received: from mailuogwhop.emc.com (mailuogwhop.emc.com [168.159.213.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailuogwprd03.lss.emc.com", Issuer "RSA Corporate Server CA v2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8ED6A838 for ; Fri, 9 May 2014 21:26:46 +0000 (UTC) Received: from maildlpprd06.lss.emc.com (maildlpprd06.lss.emc.com [10.253.24.38]) by mailuogwprd03.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s49LQj8h006533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 May 2014 17:26:45 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s49LQj8h006533 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=isilon.com; s=jan2013; t=1399670805; bh=2IOQTZZiaFK+NrvqiJETp/qHs/w=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=KzO7fo1rGYNr43dE0YFJgcfT8qObhFKpwD72oNnKHP+1qZsv6tOdjeYy9IvbOJrGa +EdqZS8bPgxdOSAc5Iq7J7hY+BXY7GUNT5ZuJ/if+/4EpYu8pLt79pV00Zv9jbs9KQ 2owMamSl5ler3ijsp+Mbtq8aBPbAHAnMTweEujYw= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s49LQj8h006533 Received: from mailusrhubprd51.lss.emc.com (mailusrhubprd51.lss.emc.com [10.106.48.24]) by maildlpprd06.lss.emc.com (RSA Interceptor) for ; Fri, 9 May 2014 14:26:30 -0700 Received: from mxhub26.corp.emc.com (mxhub26.corp.emc.com [10.254.110.182]) by mailusrhubprd51.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s49LQUcn025173 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 9 May 2014 17:26:30 -0400 Received: from MXHUB108.corp.emc.com (10.253.58.24) by mxhub26.corp.emc.com (10.254.110.182) with Microsoft SMTP Server (TLS) id 8.3.327.1; Fri, 9 May 2014 17:26:29 -0400 Received: from MX103CL02.corp.emc.com ([169.254.6.81]) by MXHUB108.corp.emc.com ([10.253.58.24]) with mapi id 14.03.0158.001; Fri, 9 May 2014 17:22:12 -0400 From: "Walker, Myron" To: "freebsd-testing@freebsd.org" Subject: Adding Python Wrapper for ATF Thread-Topic: Adding Python Wrapper for ATF Thread-Index: Ac9rzNPnQAl3MGTjRV+kuWlhlaRiVw== Date: Fri, 9 May 2014 21:26:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.7.181.135] MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd51.lss.emc.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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:26:48 -0000 I have created a python wrapper atfpy-sh that will act as an atf program an= d wrap a python module that contains unittest test cases. I have included = a zip of the wrapper script and the man page for it. I believe it will be = very efficient to create python unittest test cases and debug them in an fu= ll IDE environment like eclipse and PyDev on any linux or unix desktop syst= em against shared libraries that are common between operating systems. The= n just add them to the FreeBSD source tree as ATF wrapped tests once they a= re fully operational tests. See the attached zip for the atfpy-sh script, manpage, and an example unitt= est python module. I was putting it under contrib/atf/atfpy-sh and adding = a Makefile under usr.bin/atf/atfpy-sh to copy atfpy-sh to /usr/bin. Then j= ust stick the test file in a folder under /user/tests, modify the Kyuafile = 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. Thanks, Myron