3 import os, subprocess, sys, time
5 MNTDIR = '/mnt/bluesky'
6 SERVER = 'c09-45.sysnet.ucsd.edu'
9 def setup_client(self, export):
10 subprocess.check_call(['mount', '-t', 'nfs',
11 '-o', 'vers=3,tcp,rw,soft,intr',
14 def cleanup_client(self):
15 subprocess.check_call(['umount', '-f', MNTDIR])
17 def run(self, export):
18 self.setup_client(export)
20 results = self.run_test()
26 def setup_server(self):
27 subprocess.call(['ssh', SERVER, ''])
29 class SerialStat(TestClient):
30 """Call stat() on a set of files sequentially and measure the response time
34 files = [MNTDIR + "/file-%d" % (i,) for i in range(8)]
40 times.append(time.time() - start)
44 if __name__ == '__main__':
46 print test.run('niniel.sysnet.ucsd.edu:/export')