Changeset 1434 for TI05-delivery


Ignore:
Timestamp:
22/08/06 10:14:22 (13 years ago)
Author:
spascoe
Message:

Added a script to run some tests using a remote client.

Location:
TI05-delivery/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/examples/deliveryd.py

    r1289 r1434  
    7474''' 
    7575 
    76 n = len(open('/var/log/bbftpd/bbftpd.log').readlines()) 
     76logfile = './bbftpd.log' 
     77n = len(open(logfile).readlines()) 
    7778pid = server.start(AuthHandler(), ['-l', 'DEBUG']) 
    7879print 'Server process started at pid = %d' % pid 
    79 print 'Monitoring /var/log/bbftpd/bbftpd.log' 
     80print 'Monitoring %s' % logfile 
    8081 
    8182try: 
    8283    while 1: 
    83         newlines = open('/var/log/bbftpd/bbftpd.log').readlines()[n:] 
     84        newlines = open(logfile).readlines()[n:] 
    8485        n += len(newlines) 
    8586        for line in newlines: 
  • TI05-delivery/trunk/test/runclient.py

    r1345 r1434  
    99from glob import glob 
    1010 
    11 HOME = os.path.abspath(os.getenv('NDG_DELIVERY_HOME', os.curdir)) 
     11#HOME = os.path.abspath(os.getenv('NDG_DELIVERY_HOME', os.curdir)) 
     12HOME = os.path.abspath(os.path.dirname(__file__)+'/..') 
    1213BUILDDIR = glob('%s/build/lib.*' % HOME)[0] 
    1314VERSION = open('%s/VERSION' % HOME).read() 
Note: See TracChangeset for help on using the changeset viewer.