mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 07:03:00 -04:00
Add --enable-developer probe to feature-test
System tests that depend on log output, instrumentation, or other
behaviour only present in developer builds can use this probe to detect
the build configuration at runtime.
Assisted-by: Claude:claude-opus-4-7
(cherry picked from commit 113980d4b0)
This commit is contained in:
parent
b58c9546e3
commit
bb450eed70
1 changed files with 9 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ usage(void) {
|
|||
fprintf(stderr, "usage: feature-test <arg>\n");
|
||||
fprintf(stderr, "args:\n");
|
||||
fprintf(stderr, "\t--edns-version\n");
|
||||
fprintf(stderr, "\t--enable-developer\n");
|
||||
fprintf(stderr, "\t--enable-dnsrps\n");
|
||||
fprintf(stderr, "\t--enable-dnstap\n");
|
||||
fprintf(stderr, "\t--enable-querytrace\n");
|
||||
|
|
@ -75,6 +76,14 @@ main(int argc, char **argv) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "--enable-developer") == 0) {
|
||||
#ifdef DEVELOPER_MODE
|
||||
return 0;
|
||||
#else /* ifdef DEVELOPER_MODE */
|
||||
return 1;
|
||||
#endif /* ifdef DEVELOPER_MODE */
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "--enable-dnsrps") == 0) {
|
||||
#ifdef USE_DNSRPS
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue