From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 22 15:31:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD8F91065683 for ; Tue, 22 Jul 2008 15:31:15 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2358FC2E for ; Tue, 22 Jul 2008 15:31:15 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1188036fgb.35 for ; Tue, 22 Jul 2008 08:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SlTtD5FPHjv8JT2VaLssvsZ049y9ANF86+dn6CDjNg8=; b=uEEOvtHI03SlsDwQIznazn1gXeD7Z05pdqx0eyDi1Y9lXX5GDk9puAeJ81DDzKXkrU fYgnILFnhUnb5vaXuQu161dFehuViMpcifaTncNkXvFD5oRddxVEJe6UayXssgmLY+kJ +DncmgRH5BLJOMLqbzVNO5uZTI7rDqK/O21RI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Thb3gmDcxG2pFxKo+MFpWvzXIHIMpZUZeaQ1jVPvLZP4MzS+efn6n/sB2fhxOA/+63 PuOd3pwjHixQx5Ea8mPq9KBZEk/0iaVLF/f4F/262bhMSiqYDEqPFzHI4JNpWdebtJOv yCb/vx7aWvnn2HTNaSA58nbFtuVI9HWTeQHtM= Received: by 10.86.63.19 with SMTP id l19mr6417084fga.60.1216740673025; Tue, 22 Jul 2008 08:31:13 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Tue, 22 Jul 2008 08:31:12 -0700 (PDT) Message-ID: <7d6fde3d0807220831u185d6c6dlbb6a92cdbedb6be@mail.gmail.com> Date: Tue, 22 Jul 2008 08:31:12 -0700 From: "Garrett Cooper" To: "Alexander Leidinger" In-Reply-To: <20080722111038.21404k434075zx8g@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d6fde3d0807212343i69526416h35a3d961fac0c9d9@mail.gmail.com> <20080722111038.21404k434075zx8g@webmail.leidinger.net> Cc: jkoshy@freebsd.org, FreeBSD Hackers Subject: Re: TET and other testing framework for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 15:31:15 -0000 On Tue, Jul 22, 2008 at 2:10 AM, Alexander Leidinger wrote: > Quoting "Garrett Cooper" (from Mon, 21 Jul 2008 > 23:43:11 -0700): > >> Hi Joseph (and hackers), >> I'm contacting Joseph primarily because I saw his name listed >> under the TET page (http://wiki.freebsd.org/TetIntegration) as a >> contact and was wondering whether or not there was any interest to >> integrate test suites outside of TET into FreeBSD, but I'm also >> involving hackers@ because there might be some references that someone >> can provide me for other @freebsd folks. > > AFAIK there's no TET stuff for FreeBSD available in public. So I would say > it's more having regression tests available (making them compile and run on > FreeBSD, having a look at the failing tests and see if it is a problem with > the test or with FreeBSD ... see below for my experience with the LTP) at > all, than integrating them. Ok. Sounds like a reasonable requirement for any test infrastructure. >> I ask because my work with LTP (Linux Test Project : >> http://ltp.sf.net) for Cisco has allowed me some insight into using >> OpenPOSIX and Ballista testing frameworks, which may prove helpful in >> the release testing cause, and could help in detecting faults earlier >> on, thus helping expedite the release process a bit more and >> increasing confidence and interest in FreeBSD. > > Do you have any URLs or whatever besides the LTP one (where those are > integrated) to get those tests from an official point instead from cutting > it out of the LTP? I've contacted the PI and he said the the project is essentially dead from his end (not enough resources to maintain, grad students `slaves' left the project and got jobs =), etc). Currently the best way to grab the sources is just to peel away the snapshot from LTP as it's the only publicly and most available copy online (I believe that there've been a few fixes tossed into Ballista as-is). Funny thing is that a lot of groups contributed to the project, it's GPL based, yet nothing has changed in the source for quite some time... >> I'm pretty sure I have the blessings of the Ballista project's >> principal investigator to relicense it under the BSD / GPL license, >> it's currently a 'dead project' and he gave his blessings to post the >> source up on Sourceforge, but I'll double check to make sure I have >> his AOK before doing so... > > I think it would be beneficial so the what this produces on FreeBSD (the > license doesn't matter here) before we go and talk about integration (here > the license matters). Indeed. >> I'm also working on getting tst_res (1.) dually licensed from >> the LTP folks with a BSD / GPL license to allow for better inclusion >> into FreeBSD's infrastructure, to ensure that we have a deterministic >> means of dealing with testcases and reporting. >> Just wondering what, if any, interest would be in adopting and >> applying this work to FreeBSD for the good of the community. > > If this is what is used in the LTP to run some tests, I have to say it does > not look mature. I've run the LTP a lot in FreeBSD (native linux binaries, > http://wiki.FreeBSD.org/linux-kernel/ltp ... LTP not run and updated the > page since a long time) to test the linux compatibility layer, and the are > several places where tests fail and no output is produced or even the > summary said the test passed. I even opened bug reports at the LTP page on > SF, but it seems nobody was interested in those reports. tst_res consists of the functions: tst_res tst_resm tst_brk tst_brkm tst_brkloop tst_brkloopm tst_exit which (thanks to some feedback) has finally made it up onto its own online manpage: http://ltp.sourceforge.net/ltpmantemp.php?file=man3/tst_res.html This is the simple output and behavior modification API's that produce messages like (according to the sample on the manpage): tsttcs01 1 PASS : Able to create MAXUP processes tsttcs01 2 FAIL : Too many processes (MAXUP+1) created tsttcs01 3 BROK : tabinfo(PROCTAB, &tbs) failed; errno = 13: Permission denied tsttcs01 4-10 BROK : Remaining cases broken tsttcs01 0 WARN : cleanup(): kill(0, SIGALRM) failed; errno = 3: No such process > There are also some other ideas, like using the protocol the perl test > suites use, to be able to use existing perl stuff to generate reports and > overviews out of the generated logs (AFAIR this was the idea behind some > changes to the existing regression tests a long time ago). I have yet to really explore Test::Harness, but while I like Perl and I'm sure that Test::Harness is as good as people laud it to be, I find dealing with Perl to be cumbersome as they tend to break some stuff between releases =(... Cheers, -Garrett