[Clam-devel] CLAM & Testfarm: some comments and questions

Hernán Ordiales h at ordia.com.ar
Wed Nov 12 18:00:45 PST 2008


hi all, i'm back after the mentor summit where i had the opportunity
to meet david (finally not also parumi, what a pity!)

Trying to get a testfarm client working i noticed some things. I got
it working locally but i'd like to send the data to the main testfarm
server, specially to test some pyclam related things.

First, i'm not sure if it's possible to connect to the server beyond
the LAN where it is, is possible? which url should i use? i tried many
ones with no success (http://clam.iua.upf.edu/testfarm/, some IP based
from scripts, etc)

About the client example in the repo, seems the script is hardcoded to
look for testfarm in ~/testfarm/src, so why not look for it in the
standard installed path?

To achieve this i had to import, after installing it with 'sudo python
install.py' of course, in this way (i'm sending the patch as an
atachment)
from testfarm.task import *
from testfarm.project import Project
from testfarm.client import Client
from testfarm.runner import Runner

I had to comment the line 'from commands import getoutput' because i
couldn't find the 'commands' module in any place (neither testfarm nor
clam repo)
i also had to comment the 'first_run_always = False' line at the end
of the script to get it working

are you using a different version than the one at testfarm repo?


If someone wants to test pyclam, these are the tasks you need to add
to the testfarm client:

clam.add_subtask('pyCLAM update', [
    'cd %(sandbox)s/CLAM/pyclam'%localDefinitions,
    {CMD:'svn log -r BASE:HEAD', INFO: lambda x:x },
    './generate_bindings.py && scons',
] )
clam.add_subtask('pyCLAM Unit Tests', [
    'cd %(sandbox)s/CLAM/pyclam'%localDefinitions,
    'cd test',
    {INFO : lambda x:startTimer() },
    {CMD: './UnitTestsSuite.py'},
    {STATS : lambda x:{'exectime_unittests' : ellapsedTime()} },
] )

cheers!
-- 
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testfarm_client.patch
Type: text/x-diff
Size: 715 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20081113/737c720e/attachment-0009.patch>


More information about the clam-devel mailing list