diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-26 10:06:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-01-26 10:06:46 +0000 |
commit | 57d6cf3c8765c511a80e8b873500d213cc884ac7 (patch) | |
tree | b02d175434ed6760acef188e3431fab477fa19fd /src/nat/test_nat.c | |
parent | 8384033b4d63e8dff136dc67e9b207401a49246d (diff) | |
download | gnunet-57d6cf3c8765c511a80e8b873500d213cc884ac7.tar.gz gnunet-57d6cf3c8765c511a80e8b873500d213cc884ac7.zip |
initial changes to get the nat test to run
Diffstat (limited to 'src/nat/test_nat.c')
-rw-r--r-- | src/nat/test_nat.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/nat/test_nat.c b/src/nat/test_nat.c index c71623c2e..9fab3a9ba 100644 --- a/src/nat/test_nat.c +++ b/src/nat/test_nat.c | |||
@@ -136,12 +136,31 @@ main (int argc, char *const argv[]) | |||
136 | GNUNET_GETOPT_OPTION_END | 136 | GNUNET_GETOPT_OPTION_END |
137 | }; | 137 | }; |
138 | 138 | ||
139 | GNUNET_log_setup ("test-nat", "DEBUG", NULL); | 139 | char *const argv_prog[] = { |
140 | "test-nat", | ||
141 | "-c", | ||
142 | "test-nat.conf", | ||
143 | "-L", | ||
144 | #if VERBOSE | ||
145 | "DEBUG", | ||
146 | #else | ||
147 | "WARNING", | ||
148 | #endif | ||
149 | NULL | ||
150 | }; | ||
151 | |||
152 | GNUNET_log_setup ("test-nat", | ||
153 | #if VERBOSE | ||
154 | "DEBUG", | ||
155 | #else | ||
156 | "WARNING", | ||
157 | #endif | ||
158 | NULL); | ||
140 | 159 | ||
141 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 160 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
142 | "Testing NAT library, timeout set to %d seconds\n", TIMEOUT); | 161 | "Testing NAT library, timeout set to %d seconds\n", TIMEOUT); |
143 | 162 | ||
144 | GNUNET_PROGRAM_run (argc, argv, "test-nat", "nohelp", options, &run, NULL); | 163 | GNUNET_PROGRAM_run (5, argv_prog, "test-nat", "nohelp", options, &run, NULL); |
145 | 164 | ||
146 | return 0; | 165 | return 0; |
147 | } | 166 | } |