run the tests locally (over TCP loopback), or edit llecho.sh to
specify the SERVER and CLIENT names. You would then set up as normal:
- # for a single system, or for a remote server
+ # if you are using a remote server, first run:
server# ../utils/lconf echo.xml
-Launch the test script via:
+Configure the client (or if you are running a single system only):
- client# sh runregression-net.sh echo.xml
+ client# ../utils/lconf echo.xml
+ client# sh runregression-net.sh
3. runtests
export PATH=/sbin:/usr/sbin:$SRCDIR:$PATH
-REFORMAT="--reformat"
ERROR=
SRC=/etc
[ "$COUNT" ] || COUNT=1000
[ "$LCONF" ] || LCONF=$SRCDIR/../utils/lconf
-OSCMT="`mount | awk '/ lustre_lite / { print $3 }'`"
+OSCMT="`mount | awk '/ lustre_lite / { print $3 }' | tail -1`"
if [ -z "$OSCMT" ]; then
- $LCONF $REFORMAT $@ || exit 1
+ [ -z "$*" ] && fail "usage: $0 [--reformat] <conf>.xml" 1
+ $LCONF $@ || exit 1
trap "$LCONF --cleanup $@" 0
OSCMT="`mount | awk '/ lustre_lite / { print $3 }'`"
- [ -z "$OSCMT" ] && echo "no lustre filesystem mounted" 2>&1 && exit 1
- exit $RC
+ [ -z "$OSCMT" ] && fail "no lustre filesystem mounted" 1
fi
# let's start slowly here...
}
if (argc >= 4) {
- if (argv[3][0] == 't' && thread)
- objid = strtoull(argv[3] + 1, &end, 0) + thread - 1;
- else
+ if (argv[3][0] == 't') {
+ objid = strtoull(argv[3] + 1, &end, 0);
+ if (thread)
+ objid += thread - 1;
+ } else
objid = strtoull(argv[3], &end, 0);
if (*end) {
fprintf(stderr, "error: %s: invalid objid '%s'\n",
for (i = 1, next_count = verbose; i <= count; i++) {
data.ioc_obdo1.o_id = objid;
+ data.ioc_obdo1.o_mode = S_IFREG;
data.ioc_obdo1.o_valid = 0xffffffff;
rc = ioctl(fd, OBD_IOC_GETATTR, &data);
SHMEM_BUMP();
}
/* make each thread write to a different offset */
- if (argv[1][0] == 't' && thread) {
- thr_offset = thread - 1;
+ if (argv[1][0] == 't') {
count = strtoull(argv[1] + 1, &end, 0);
+ if (thread)
+ thr_offset = thread - 1;
} else
count = strtoull(argv[1], &end, 0);
}
}
if (argc >= 6) {
- if (argv[5][0] == 't' && thread)
- objid = strtoull(argv[5] + 1, &end, 0) + thread - 1;
- else
+ if (argv[5][0] == 't') {
+ objid = strtoull(argv[5] + 1, &end, 0);
+ if (thread)
+ objid += thread - 1;
+ } else
objid = strtoull(argv[5], &end, 0);
if (*end) {
fprintf(stderr, "error: %s: bad objid '%s'\n",