|
|
| 42 |
interesting_config_items = [ |
42 |
interesting_config_items = [ |
| 43 |
"NS3_BUILDDIR", |
43 |
"NS3_BUILDDIR", |
| 44 |
"NS3_MODULE_PATH", |
44 |
"NS3_MODULE_PATH", |
| 45 |
"ENABLE_NSC", |
45 |
"NSC_ENABLED", |
| 46 |
"ENABLE_REAL_TIME", |
46 |
"ENABLE_REAL_TIME", |
| 47 |
"ENABLE_EXAMPLES", |
47 |
"ENABLE_EXAMPLES", |
| 48 |
"ENABLE_PYTHON_BINDINGS", |
48 |
"ENABLE_PYTHON_BINDINGS", |
| 49 |
] |
49 |
] |
| 50 |
|
50 |
|
| 51 |
ENABLE_NSC = False |
51 |
NSC_ENABLED = False |
| 52 |
ENABLE_REAL_TIME = False |
52 |
ENABLE_REAL_TIME = False |
| 53 |
ENABLE_EXAMPLES = True |
53 |
ENABLE_EXAMPLES = True |
| 54 |
|
54 |
|
|
|
| 68 |
"ns3-tcp-interoperability", |
68 |
"ns3-tcp-interoperability", |
| 69 |
] |
69 |
] |
| 70 |
|
70 |
|
|
|
71 |
# |
| 72 |
# There are some special cases for test suites that fail when NSC is |
| 73 |
# missing. |
| 74 |
# |
| 75 |
core_nsc_missing_skip_tests = [ |
| 76 |
"ns3-tcp-cwnd", |
| 77 |
"nsc-tcp-loss", |
| 78 |
"ns3-tcp-interoperability", |
| 79 |
] |
| 80 |
|
| 71 |
# |
81 |
# |
| 72 |
# A list of examples to run as smoke tests just to ensure that they remain |
82 |
# A list of examples to run as smoke tests just to ensure that they remain |
| 73 |
# buildable and runnable over time. Also a condition under which to run |
83 |
# buildable and runnable over time. Also a condition under which to run |
|
|
| 128 |
|
138 |
|
| 129 |
("tcp/star", "True", "True"), |
139 |
("tcp/star", "True", "True"), |
| 130 |
("tcp/tcp-large-transfer", "True", "True"), |
140 |
("tcp/tcp-large-transfer", "True", "True"), |
| 131 |
("tcp/tcp-nsc-lfn", "ENABLE_NSC == True", "True"), |
141 |
("tcp/tcp-nsc-lfn", "NSC_ENABLED == True", "False"), |
| 132 |
("tcp/tcp-nsc-zoo", "ENABLE_NSC == True", "True"), |
142 |
("tcp/tcp-nsc-zoo", "NSC_ENABLED == True", "False"), |
| 133 |
("tcp/tcp-star-server", "True", "True"), |
143 |
("tcp/tcp-star-server", "True", "True"), |
| 134 |
|
144 |
|
| 135 |
("topology-read/topology-read --input=../../examples/topology-read/Inet_small_toposample.txt", "True", "True"), |
145 |
("topology-read/topology-read --input=../../examples/topology-read/Inet_small_toposample.txt", "True", "True"), |
|
|
| 1210 |
if options.valgrind and test in core_valgrind_skip_tests: |
1220 |
if options.valgrind and test in core_valgrind_skip_tests: |
| 1211 |
job.set_is_skip(True) |
1221 |
job.set_is_skip(True) |
| 1212 |
|
1222 |
|
|
|
1223 |
# Skip tests that will fail if NSC is missing. |
| 1224 |
if not NSC_ENABLED and test in core_nsc_missing_skip_tests: |
| 1225 |
job.set_is_skip(True) |
| 1226 |
|
| 1213 |
if options.verbose: |
1227 |
if options.verbose: |
| 1214 |
print "Queue %s" % test |
1228 |
print "Queue %s" % test |
| 1215 |
|
1229 |
|
|
|
| 1227 |
# on NSC being configured by waf, that example should have a condition |
1241 |
# on NSC being configured by waf, that example should have a condition |
| 1228 |
# that evaluates to true if NSC is enabled. For example, |
1242 |
# that evaluates to true if NSC is enabled. For example, |
| 1229 |
# |
1243 |
# |
| 1230 |
# ("tcp-nsc-zoo", "ENABLE_NSC == True"), |
1244 |
# ("tcp-nsc-zoo", "NSC_ENABLED == True"), |
| 1231 |
# |
1245 |
# |
| 1232 |
# In this case, the example "tcp-nsc-zoo" will only be run if we find the |
1246 |
# In this case, the example "tcp-nsc-zoo" will only be run if we find the |
| 1233 |
# waf configuration variable "ENABLE_NSC" to be True. |
1247 |
# waf configuration variable "NSC_ENABLED" to be True. |
| 1234 |
# |
1248 |
# |
| 1235 |
# We don't care at all how the trace files come out, so we just write them |
1249 |
# We don't care at all how the trace files come out, so we just write them |
| 1236 |
# to a single temporary directory. |
1250 |
# to a single temporary directory. |
|
|
| 1650 |
global options |
1664 |
global options |
| 1651 |
options = parser.parse_args()[0] |
1665 |
options = parser.parse_args()[0] |
| 1652 |
signal.signal(signal.SIGINT, sigint_hook) |
1666 |
signal.signal(signal.SIGINT, sigint_hook) |
| 1653 |
|
1667 |
|
| 1654 |
return run_tests() |
1668 |
return run_tests() |
| 1655 |
|
1669 |
|
| 1656 |
if __name__ == '__main__': |
1670 |
if __name__ == '__main__': |