Artifact
d540a4aeeb1d35ef5aec5cb80abfa62f20249111:
0000: 23 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 70 # This file is p
0010: 61 72 74 20 6f 66 20 4d 65 67 61 74 65 73 74 2e art of Megatest.
0020: 0a 23 20 0a 23 20 20 20 20 20 4d 65 67 61 74 65 .# .# Megate
0030: 73 74 20 69 73 20 66 72 65 65 20 73 6f 66 74 77 st is free softw
0040: 61 72 65 3a 20 79 6f 75 20 63 61 6e 20 72 65 64 are: you can red
0050: 69 73 74 72 69 62 75 74 65 20 69 74 20 61 6e 64 istribute it and
0060: 2f 6f 72 20 6d 6f 64 69 66 79 0a 23 20 20 20 20 /or modify.#
0070: 20 69 74 20 75 6e 64 65 72 20 74 68 65 20 74 65 it under the te
0080: 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55 20 47 rms of the GNU G
0090: 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 eneral Public Li
00a0: 63 65 6e 73 65 20 61 73 20 70 75 62 6c 69 73 68 cense as publish
00b0: 65 64 20 62 79 0a 23 20 20 20 20 20 74 68 65 20 ed by.# the
00c0: 46 72 65 65 20 53 6f 66 74 77 61 72 65 20 46 6f Free Software Fo
00d0: 75 6e 64 61 74 69 6f 6e 2c 20 65 69 74 68 65 72 undation, either
00e0: 20 76 65 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 version 3 of th
00f0: 65 20 4c 69 63 65 6e 73 65 2c 20 6f 72 0a 23 20 e License, or.#
0100: 20 20 20 20 28 61 74 20 79 6f 75 72 20 6f 70 74 (at your opt
0110: 69 6f 6e 29 20 61 6e 79 20 6c 61 74 65 72 20 76 ion) any later v
0120: 65 72 73 69 6f 6e 2e 0a 23 20 0a 23 20 20 20 20 ersion..# .#
0130: 20 4d 65 67 61 74 65 73 74 20 69 73 20 64 69 73 Megatest is dis
0140: 74 72 69 62 75 74 65 64 20 69 6e 20 74 68 65 20 tributed in the
0150: 68 6f 70 65 20 74 68 61 74 20 69 74 20 77 69 6c hope that it wil
0160: 6c 20 62 65 20 75 73 65 66 75 6c 2c 0a 23 20 20 l be useful,.#
0170: 20 20 20 62 75 74 20 57 49 54 48 4f 55 54 20 41 but WITHOUT A
0180: 4e 59 20 57 41 52 52 41 4e 54 59 3b 20 77 69 74 NY WARRANTY; wit
0190: 68 6f 75 74 20 65 76 65 6e 20 74 68 65 20 69 6d hout even the im
01a0: 70 6c 69 65 64 20 77 61 72 72 61 6e 74 79 20 6f plied warranty o
01b0: 66 0a 23 20 20 20 20 20 4d 45 52 43 48 41 4e 54 f.# MERCHANT
01c0: 41 42 49 4c 49 54 59 20 6f 72 20 46 49 54 4e 45 ABILITY or FITNE
01d0: 53 53 20 46 4f 52 20 41 20 50 41 52 54 49 43 55 SS FOR A PARTICU
01e0: 4c 41 52 20 50 55 52 50 4f 53 45 2e 20 20 53 65 LAR PURPOSE. Se
01f0: 65 20 74 68 65 0a 23 20 20 20 20 20 47 4e 55 20 e the.# GNU
0200: 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c General Public L
0210: 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 20 icense for more
0220: 64 65 74 61 69 6c 73 2e 0a 23 20 0a 23 20 20 20 details..# .#
0230: 20 20 59 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 You should hav
0240: 65 20 72 65 63 65 69 76 65 64 20 61 20 63 6f 70 e received a cop
0250: 79 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e y of the GNU Gen
0260: 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 eral Public Lice
0270: 6e 73 65 0a 23 20 20 20 20 20 61 6c 6f 6e 67 20 nse.# along
0280: 77 69 74 68 20 4d 65 67 61 74 65 73 74 2e 20 20 with Megatest.
0290: 49 66 20 6e 6f 74 2c 20 73 65 65 20 3c 68 74 74 If not, see <htt
02a0: 70 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f p://www.gnu.org/
02b0: 6c 69 63 65 6e 73 65 73 2f 3e 2e 0a 0a 5b 66 69 licenses/>...[fi
02c0: 65 6c 64 73 5d 0a 53 59 53 54 45 4d 20 54 45 58 elds].SYSTEM TEX
02d0: 54 0a 52 45 4c 45 41 53 45 20 54 45 58 54 0a 0a T.RELEASE TEXT..
02e0: 5b 73 65 74 75 70 5d 0a 23 20 41 64 6a 75 73 74 [setup].# Adjust
02f0: 20 6d 61 78 5f 63 6f 6e 63 75 72 72 65 6e 74 5f max_concurrent_
0300: 6a 6f 62 73 20 74 6f 20 6c 69 6d 69 74 20 68 6f jobs to limit ho
0310: 77 20 6d 75 63 68 20 79 6f 75 20 6c 6f 61 64 20 w much you load
0320: 79 6f 75 72 20 6d 61 63 68 69 6e 65 73 0a 6d 61 your machines.ma
0330: 78 5f 63 6f 6e 63 75 72 72 65 6e 74 5f 6a 6f 62 x_concurrent_job
0340: 73 20 35 30 0a 0a 23 20 55 6e 63 6f 6d 6d 65 6e s 50..# Uncommen
0350: 74 20 74 68 69 73 20 74 6f 20 6d 61 6b 65 20 74 t this to make t
0360: 68 65 20 69 6e 2d 6d 65 6d 20 64 62 20 69 6e 74 he in-mem db int
0370: 6f 20 61 20 64 69 73 6b 20 62 61 73 65 64 20 64 o a disk based d
0380: 62 20 28 73 6c 6f 77 65 72 20 62 75 74 20 67 6f b (slower but go
0390: 6f 64 20 66 6f 72 20 64 65 62 75 67 29 0a 23 20 od for debug).#
03a0: 62 65 20 61 77 61 72 65 20 74 68 61 74 20 73 6f be aware that so
03b0: 6d 65 20 75 6e 69 74 20 74 65 73 74 73 20 77 69 me unit tests wi
03c0: 6c 6c 20 66 61 69 6c 20 77 69 74 68 20 74 68 69 ll fail with thi
03d0: 73 20 64 75 65 20 74 6f 20 70 65 72 73 69 73 74 s due to persist
03e0: 65 6e 74 20 64 61 74 61 0a 23 0a 23 20 74 6d 70 ent data.#.# tmp
03f0: 64 62 20 2f 74 6d 70 0a 0a 23 20 54 68 69 73 20 db /tmp..# This
0400: 69 73 20 79 6f 75 72 20 6c 69 6e 6b 20 70 61 74 is your link pat
0410: 68 2c 20 79 6f 75 20 63 61 6e 20 6d 6f 76 65 20 h, you can move
0420: 69 74 20 62 75 74 20 69 74 20 69 73 20 67 65 6e it but it is gen
0430: 65 72 61 6c 6c 79 20 62 65 74 74 65 72 20 74 6f erally better to
0440: 20 6b 65 65 70 20 69 74 20 73 74 61 62 6c 65 0a keep it stable.
0450: 6c 69 6e 6b 74 72 65 65 20 23 7b 67 65 74 65 6e linktree #{geten
0460: 76 20 4d 54 5f 52 55 4e 5f 41 52 45 41 5f 48 4f v MT_RUN_AREA_HO
0470: 4d 45 7d 2f 2e 2e 2f 73 69 6d 70 6c 65 6c 69 6e ME}/../simplelin
0480: 6b 73 0a 0a 23 20 56 61 6c 69 64 20 76 61 6c 75 ks..# Valid valu
0490: 65 73 20 66 6f 72 20 73 74 61 74 65 20 61 6e 64 es for state and
04a0: 20 73 74 61 74 75 73 20 66 6f 72 20 73 74 65 70 status for step
04b0: 73 2c 20 4e 42 2f 2f 20 49 74 20 69 73 20 6e 6f s, NB// It is no
04c0: 74 20 72 65 63 6f 6d 6d 65 6e 64 65 64 20 79 6f t recommended yo
04d0: 75 20 75 73 65 20 74 68 69 73 0a 5b 76 61 6c 69 u use this.[vali
04e0: 64 76 61 6c 75 65 73 5d 0a 73 74 61 74 65 20 73 dvalues].state s
04f0: 74 61 72 74 20 65 6e 64 20 63 6f 6d 70 6c 65 74 tart end complet
0500: 65 64 0a 0a 23 20 4a 6f 62 20 74 6f 6f 6c 73 20 ed..# Job tools
0510: 61 72 65 20 6d 6f 72 65 20 61 64 76 61 6e 63 65 are more advance
0520: 64 20 77 61 79 73 20 74 6f 20 63 6f 6e 74 72 6f d ways to contro
0530: 6c 20 68 6f 77 20 79 6f 75 72 20 6a 6f 62 73 20 l how your jobs
0540: 61 72 65 20 6c 61 75 6e 63 68 65 64 0a 5b 6a 6f are launched.[jo
0550: 62 74 6f 6f 6c 73 5d 0a 75 73 65 73 68 65 6c 6c btools].useshell
0560: 20 79 65 73 0a 6c 61 75 6e 63 68 65 72 20 6e 62 yes.launcher nb
0570: 66 69 6e 64 0a 0a 23 20 59 6f 75 20 63 61 6e 20 find..# You can
0580: 6f 76 65 72 72 69 64 65 20 65 6e 76 69 72 6f 6e override environ
0590: 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 73 20 66 ment variables f
05a0: 6f 72 20 61 6c 6c 20 79 6f 75 72 20 74 65 73 74 or all your test
05b0: 73 20 68 65 72 65 0a 5b 65 6e 76 2d 6f 76 65 72 s here.[env-over
05c0: 72 69 64 65 5d 0a 45 58 41 4d 50 4c 45 5f 56 41 ride].EXAMPLE_VA
05d0: 52 20 65 78 61 6d 70 6c 65 20 76 61 6c 75 65 0a R example value.
05e0: 0a 23 20 41 73 20 79 6f 75 20 72 75 6e 20 6d 6f .# As you run mo
05f0: 72 65 20 74 65 73 74 73 20 79 6f 75 20 6d 61 79 re tests you may
0600: 20 6e 65 65 64 20 74 6f 20 61 64 64 20 61 64 64 need to add add
0610: 69 74 69 6f 6e 61 6c 20 64 69 73 6b 73 2c 20 74 itional disks, t
0620: 68 65 20 6e 61 6d 65 73 20 61 72 65 20 61 72 62 he names are arb
0630: 69 74 72 61 72 79 20 62 75 74 20 6d 75 73 74 20 itrary but must
0640: 62 65 20 75 6e 69 71 75 65 0a 5b 64 69 73 6b 73 be unique.[disks
0650: 5d 0a 64 69 73 6b 30 20 23 7b 67 65 74 65 6e 76 ].disk0 #{getenv
0660: 20 4d 54 5f 52 55 4e 5f 41 52 45 41 5f 48 4f 4d MT_RUN_AREA_HOM
0670: 45 7d 2f 2e 2e 2f 73 69 6d 70 6c 65 72 75 6e 73 E}/../simpleruns
0680: 0a .