Lines 1119-1124
def build(ctx):
Link Here
|
1119 |
ctx.manpage(8, "ntpclients/ntpsnmpd-man.adoc") |
1119 |
ctx.manpage(8, "ntpclients/ntpsnmpd-man.adoc") |
1120 |
|
1120 |
|
1121 |
# Skip running unit tests on a cross compile build |
1121 |
# Skip running unit tests on a cross compile build |
|
|
1122 |
from waflib import Options |
1122 |
if not ctx.env.ENABLE_CROSS: |
1123 |
if not ctx.env.ENABLE_CROSS: |
1123 |
# Force re-running of tests. Same as 'waf --alltests' |
1124 |
# Force re-running of tests. Same as 'waf --alltests' |
1124 |
if ctx.cmd == "check": |
1125 |
if ctx.cmd == "check": |
Lines 1127-1132
def build(ctx):
Link Here
|
1127 |
# Print log if -v is supplied |
1128 |
# Print log if -v is supplied |
1128 |
if verbose > 0: |
1129 |
if verbose > 0: |
1129 |
ctx.add_post_fun(test_print_log) |
1130 |
ctx.add_post_fun(test_print_log) |
|
|
1131 |
elif Options.options.no_tests: |
1132 |
return |
1130 |
|
1133 |
|
1131 |
# Test binaries |
1134 |
# Test binaries |
1132 |
ctx.add_post_fun(bin_test) |
1135 |
ctx.add_post_fun(bin_test) |
Lines 1140-1146
def build(ctx):
Link Here
|
1140 |
ctx.add_post_fun(bin_test_summary) |
1143 |
ctx.add_post_fun(bin_test_summary) |
1141 |
else: |
1144 |
else: |
1142 |
pprint("YELLOW", "Unit test runner skipped on a cross-compiled build.") |
1145 |
pprint("YELLOW", "Unit test runner skipped on a cross-compiled build.") |
1143 |
from waflib import Options |
|
|
1144 |
Options.options.no_tests = True |
1146 |
Options.options.no_tests = True |
1145 |
|
1147 |
|
1146 |
if ctx.cmd == "build": |
1148 |
if ctx.cmd == "build": |
1147 |
- |
|
|