Megatest

howto.txt at [f802b44c08]
Login

File docs/manual/howto.txt artifact b3e9c89d1a part of check-in f802b44c08



How To Do Things
================

Tricks
------

This section is a compendium of a various useful tricks for debugging,
configuring and generally getting the most out of Megatest.

Limiting your running jobs
--------------------------

The following example will limit a test in the jobgroup "group1" to no more than 10 tests simultaneously.

In your testconfig:

----------------
[test_meta]
jobgroup group1
----------------

In your megatest.config:

---------------
[jobgroups]
group1 10
custdes 4
---------------

Limiting Job Runtime
--------------------

runtimlim can be set in megatest.config (affects all tests),
runconfigs (modifies for all tests based on a run) or in the
testconfig (affects only that test). The default in all cases is unlimited.

.megatest.config or runconfig
-------------------------
[setup]
# Default runtimelim 1d 1h 1m 10s
#
runtimelim 20m
-------------------------

.testconfig
-------------------------
[requirements]
runtimelim 1h 5m
-------------------------

Debugging Tricks
----------------

Examining The Environment
~~~~~~~~~~~~~~~~~~~~~~~~~

During Config File Processing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Organising Your Tests and Tasks
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

----------------------------
[tests-paths]
1 #{get misc parent}/simplerun/tests
----------------------------

-------------------
[setup]
-------------------

The runscript method is a brute force way to run scripts where the
user is responsible for setting STATE and STATUS

-------------------
runscript main.csh
-------------------

Debugging Server Problems
~~~~~~~~~~~~~~~~~~~~~~~~~

----------------
sudo lsof -i
sudo netstat -lptu
sudo netstat -tulpn
----------------