Module: xenomai-head Branch: master Commit: 77ffcacdcd3af3f7f6ad21721a4f9b2f50d75941 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=77ffcacdcd3af3f7f6ad21721a4f9b2f50d75941
Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org> Date: Wed Jan 26 22:38:28 2011 +0100 testsuite: add help text for xeno-test --- src/testsuite/xeno-test/dohell | 8 +++--- src/testsuite/xeno-test/xeno-test-run-wrapper | 1 - src/testsuite/xeno-test/xeno-test-run.c | 6 ++-- src/testsuite/xeno-test/xeno-test.in | 32 ++++++++++++++++++++++++- 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/testsuite/xeno-test/dohell b/src/testsuite/xeno-test/dohell index cdece39..9423270 100644 --- a/src/testsuite/xeno-test/dohell +++ b/src/testsuite/xeno-test/dohell @@ -4,14 +4,14 @@ usage() { cat <<EOF $0 [ -b path ] [ -s server ] [ -p port ] [ -m mntpoint ] [ -l path | seconds ] -Generate load, using: +Generate load, using an assorted set of commands and optionnaly: - hackbench if the path to the hackbench binary is specified with -b; - nc to send TCP data to "server" port "port" if -s is specified (if -p is not specified, the port 9, aka discard is used); - dd to write data under "mntpoint" if -m is specified. -- during the runtime of the LTP test if the path to the LTP installation -directory is specifed with -l -- or during "seconds" seconds + +during the runtime of the LTP test if the path to the LTP installation +directory is specifed with -l or during "seconds" seconds. EOF } diff --git a/src/testsuite/xeno-test/xeno-test-run-wrapper b/src/testsuite/xeno-test/xeno-test-run-wrapper index d12d6a5..a0efb95 100644 --- a/src/testsuite/xeno-test/xeno-test-run-wrapper +++ b/src/testsuite/xeno-test/xeno-test-run-wrapper @@ -16,5 +16,4 @@ wait_load() } script="$1"; shift -set -- ${1+"$@"} source $script diff --git a/src/testsuite/xeno-test/xeno-test-run.c b/src/testsuite/xeno-test/xeno-test-run.c index e1db488..8964e3f 100644 --- a/src/testsuite/xeno-test/xeno-test-run.c +++ b/src/testsuite/xeno-test/xeno-test-run.c @@ -36,7 +36,7 @@ static const char *scriptname; static volatile int sigexit; static sigset_t sigchld_mask; static struct child *first_child; -static char *loadcmd = "exec dd if=/dev/zero of=/dev/null"; +static char *loadcmd = "exec dohell 900"; static fd_set inputs; static struct child script, load; @@ -474,8 +474,8 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if (!strcmp(argv[argc - 1], "-h") - || !strcmp(argv[argc - 1], "--help")) { + if (!strcmp(argv[1], "-h") + || !strcmp(argv[1], "--help")) { usage(argv[0]); exit(EXIT_SUCCESS); } diff --git a/src/testsuite/xeno-test/xeno-test.in b/src/testsuite/xeno-test/xeno-test.in index 4636856..324a339 100644 --- a/src/testsuite/xeno-test/xeno-test.in +++ b/src/testsuite/xeno-test/xeno-test.in @@ -1,10 +1,40 @@ #! @XENO_TEST_DIR@/xeno-test-run +usage() +{ + cat <<EOF +xeno-test [ -l "load command" ] [ latency options ] + +Run a basic test/benchmark of Xenomai on your platform, by first starting a +few unit tests, then running the latency test under the load generated by +"load-command". + +By default, the load command is "dohell 900", which will generate load during +15 minutes. To generate a more realistic load see dohell help. + +Any other option passed on the command line is passed to the latency test. + +Example: +xeno-test -l "dohell -s 192.168.0.5 -m /mnt -l /ltp" -t 2 + +Will generate load including network load using the server at IP address +192.168.0.5, some I/O under the moint point /mnt, and the LTP testsuite +installed under the /ltp directory, and use the latency test by measuring the +timer irq latency. +EOF +} + +if [ "$1" = "-h" -o "$1" = "--help" ]; then + usage + exit 0 +fi + set -e arith check-vdso -clocktest -T 10 +clocktest -T 30 +switchtest -T 30 cond-torture-native cond-torture-posix mutex-torture-native _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git