Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Copy the attached stability-test.sh to your test VM. Then check that dhcp zone and server are running after reboot and run tests. To do this you should put the number of cycles in parameters of the test script

The test script could be run in 3 modes:

  • for a specific number of iterations

In this case you have to put the -i option and enter the number of iterations, for example, to set 10 iterations:

Code Block
./stability-test.sh -i 10
  • to work for the specific period of time

In this case you have to put the -d option and enter the time duration in the HH:MM[:SS] format, for example, to work for 10 hours and 15 minutes:

Code Block
./stability-test.sh -d 10:15

or, for example to work for 20 seconds:

Code Block
./stability-test.sh <N>

...

-d 00:00:20
  • and finally to stop at the specified date and time

In this case you have to put the -t and enter the date and time of stop in the HH:MM[:SS] [DAY-MONTH_YEAR] format, for example, to work from the start to 17:00 of 8th of August 2023 year you will enter:

Code Block
./stability-test.sh -t 17:00 8-AUG-2023

If date is omitted, and only time is entered, it’s supposed that date is the current one. I.e. to stop today at 19:00 you will enter:

Code Block
./stability-test.sh -t 19:00

You can run tests not only sequentially but randomly as well. To do this you have put the -s option at he end of command line, for example:

Code Block
./stability-test.sh -d 00:00:20 -s

And finally you can run one specific test instead of the whole set. To do this you have to put its name at the end of the command line. The name can be one of libc, elf, os, util or net, for example:

Code Block
./stability-test.sh

...

 -d 00:00:20 elf
Info

Note : The -s option and the test name are mutually exclusive, you can’t use them together.

And now after script is finished the common logs will be placed to /var/tmp/elf-stability.<ISO TIME>.txt, /var/tmp/libc-stability.<ISO TIME>.txt, /var/tmp/os-stability.<ISO TIME>.txt, /var/tmp/util-stability.<ISO TIME>.txt and /var/tmp/net-stability.<ISO TIME>.txt files. And you will find logs about separate cycles in elf.<N>.txt, libc-test.<N>.txt, ostest-test.<N>.txt, util-test.<N>.txt and net-test.<N>.txt form in the /var/tmp folder, where <N> - is a cycle number.

...