tor_free(s);
}
-#define ENT(x) { #x, test_ ## x, 0, 0 }
-#define SUBENT(x,y) { #x "/" #y, test_ ## x ## _ ## y, 1, 0 }
+#define DISABLED(x) { #x, x, 0, 0, 0 }
+#define ENT(x) { #x, test_ ## x, 0, 0, 1 }
+#define SUBENT(x,y) { #x "/" #y, test_ ## x ## _ ## y, 1, 0, 1 }
static struct {
const char *test_name;
ENT(rend_fns),
SUBENT(rend_fns, v2),
ENT(geoip),
+
+ DISABLED(bench_aes),
+ DISABLED(bench_dmap),
{ NULL, NULL, 0, 0, 0 },
};
if (!any_selected) {
for (i = 0; test_array[i].test_name; ++i) {
- test_array[i].selected = 1;
+ test_array[i].selected = test_array[i].is_default;
}
}
crypto_seed_rng(1);
- if (0) {
- bench_aes();
- return 0;
- }
-
- if (0) {
- bench_dmap();
- return 0;
- }
-
atexit(remove_directory);
printf("Running Tor unit tests on %s\n", get_uname());