Overview
Comment: | Tidied up example a bit |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.55 |
Files: | files | file ages | folders |
SHA1: |
bc7ba29bcdf9a78b32536c24fb13498f |
User & Date: | mrwellan on 2014-02-14 10:36:13 |
Other Links: | branch diff | manifest | tags |
Context
2014-02-14
| ||
12:43 | More tweaks to the example check-in: c4b6ef043a user: mrwellan tags: v1.55 | |
10:36 | Tidied up example a bit check-in: bc7ba29bcd user: mrwellan tags: v1.55 | |
10:08 | Minor tweaks to tests check-in: 5a8da02251 user: mrwellan tags: v1.55 | |
Changes
Modified example/megatest.config from [74845d7537] to [5b4c4e6406].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [fields] RUN_TYPE Can be: full or quick [setup] # Adjust max_concurrent_jobs to limit parallel jobs max_concurrent_jobs 50 # This is your link path, best to set it and then not change it linktree #{getenv PWD}/linktree # Job tools control how your jobs are launched [jobtools] launcher nbfind # As you run more tests you may need to add additional disks # the names are arbitrary but must be unique [disks] disk0 #{getenv PWD}/runs | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | [fields] CFG_TYPE This is the refdb to use. RUN_TYPE Can be: full or quick [setup] # Adjust max_concurrent_jobs to limit parallel jobs max_concurrent_jobs 50 # This is your link path, best to set it and then not change it linktree #{getenv PWD}/linktree # Job tools control how your jobs are launched [jobtools] launcher nbfind # As you run more tests you may need to add additional disks # the names are arbitrary but must be unique [disks] disk0 #{getenv PWD}/runs [include local.megatest.config] |
Modified example/runconfigs.config from [346ed47154] to [52dcfef0ef].
1 2 3 4 | [default] ALLTESTS see this variable # Your variables here are grouped by targets [SYSTEM/RELEASE] | | > > > | 1 2 3 4 5 6 7 8 9 | [default] ALLTESTS see this variable # Your variables here are grouped by targets [SYSTEM/RELEASE] [cfg/default] ANOTHERVAR only defined if target is SYSTEM_val/RELEASE_val [include local.runconfigs.config] |
Modified example/tests/diskspace/diskspace.sh from [cfc92056b3] to [99be1318a5].
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash -e diskareas=`mount | egrep 'ext|mfs|nfs'|grep -v proc | awk '{print $3}'` for dirname in $diskareas;do # measure the free space freespace=`df -k $dirname | grep $dirname | awk '{print $4}'` # get the minfree allowed from the refdb | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/bash -e diskareas=`mount | egrep 'ext|mfs|nfs'|grep -v proc | awk '{print $3}'` for dirname in $diskareas;do # measure the free space freespace=`df -k $dirname | grep $dirname | awk '{print $4}'` # get the minfree allowed from the refdb minfree=`refdb lookup $MT_RUN_AREA_HOME/$CFG_TYPE machines $TARGETHOST minfree` if [[ $freespace -lt $minfree ]];then echo "ERROR: available space $freespace is less than minimum allowed of $minfree on $dirname" else echo "INFO: space available of $freespace k on $dirname meets required minimum of $minfree." fi done |
Modified example/tests/diskspace/testconfig from [11749ed8ca] to [e3bae930a1].
1 2 3 4 5 6 7 8 9 10 11 | # Add steps here. Format is "stepname script" [ezsteps] hostname hostname diskspace diskspace.sh [requirements] waiton ping mode itemwait # Iteration for your tests are controlled by the items section [items] | | | 1 2 3 4 5 6 7 8 9 10 11 12 | # Add steps here. Format is "stepname script" [ezsteps] hostname hostname diskspace diskspace.sh [requirements] waiton ping mode itemwait # Iteration for your tests are controlled by the items section [items] TARGETHOST [system refdb getrownames $CFG_TYPE machines] |
Modified example/tests/ping/testconfig from [9f3aa87c4e] to [bcb5cfda73].
1 2 3 4 5 6 | # Add steps here. Format is "stepname script" [ezsteps] ping ping -c 5 $PINGHOST # Iteration for your tests are controlled by the items section [items] | | | 1 2 3 4 5 6 7 | # Add steps here. Format is "stepname script" [ezsteps] ping ping -c 5 $PINGHOST # Iteration for your tests are controlled by the items section [items] PINGHOST [system refdb getrownames $CFG_TYPE machines] |