summaryrefslogtreecommitdiffstats
path: root/systemtest/testOutputGen.awk
blob: f29b1040f9cafc12bc38a253bee9783ea7ce774c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BEGIN                           { testSection = 0; }
# ignore empty lines
/^$/                            { next; }

# ignore oid lines
/^ *Oid\.*:*/                   { next; }

# turn on flag 
/^-- Testbed start block.*/     { testSection = 1; }

# turn off flag 
/^-- Testbed end block.*/       { testSection = 0; }

# print lines in test section
testSection==1                  { print $0; next; }

# print lines starting with -- Testbed
/^-- Testbed .*/                 { print $0; }