1 A variety of tests can be run or environments set up.
6 llsetup.sh marcus-echo-server.cfg
8 with marcus-echo-server.cfg:
18 runregression-net marcus-echo-client.cfg
20 with marcus-echo-client.cfg:
27 If things are alright it goes through all the tests single threaded,
28 multithreaded, getattr and brw (both read and write).
30 2. How to build .cfg scripts:
31 The various .cfg scripts in the tests/ directory can be used as building
32 blocks for full configurations. For example, the above configurations are:
34 cat elan-server.cfg obdecho.cfg > marcus-echo-server.cfg
35 cat elan-client.cfg client-echo.cfg > marcus-echo-client.cfg
37 You _could_ specify multiple .cfg files as the parameters to llsetup if
38 you are doing something uncommon, but it is probably just easer to build
39 a whole config file in one shot, edit it as needed, and use that file instead.
41 For a loopback setup with a mounted filesystem, you could do something like:
43 cat net-local.cfg mds.cfg obdext2.cfg client-mount.cfg > uml.cfg
45 The order of the specified .cfg files does not matter.
47 Since the .cfg script is a shell script, you can add conditional setup in
48 case you want to avoid changing your configuration if you need to run on
49 a different host. You could, for example, have marcus-echo-server.cfg:
52 HOST=`hostname | sed "s/\..*//"`
54 dev*) LOCALHOST=`echo $HOST | sed "s/dev//"`
64 You would, of course, need a marcus-echo-client.cfg to match.
68 The runtests script does a series of simple file-based tests using
69 a filesystem. You need to use a configuration which includes a real
70 OST and MDS setup, and an OSC mount. For example, a configuration
71 marcus-obd-server.cfg:
87 As with the echo test, you run "sh llsetup.sh marcus-obd-server.cfg" on
88 the server to configure it.
90 For marcus-obd-client.cfg you only need to include the client data:
100 You run the test via "sh runtests marcus-obd-client.cfg".