diff options
author | Andy Zhou <azhou@nicira.com> | 2014-04-01 00:47:01 -0700 |
---|---|---|
committer | Andy Zhou <azhou@nicira.com> | 2014-04-03 11:17:17 -0700 |
commit | eadd16449c6e5292603cf009d29ab0e249979717 (patch) | |
tree | 9fffd59e7f3668d844a9389c5ef75d73fa9c82d2 /tests/test-uuid.c | |
parent | 01fed651097a90ef9365ce6c2f16da2970a5444e (diff) | |
download | openvswitch-eadd16449c6e5292603cf009d29ab0e249979717.tar.gz |
unit-test: Link 29 test programs into ovstest
Improve link speed by linking 29 test programs into ovstest.
On my machine, running the following command against a fully
built tree:
$ touch lib/random.c; time make
Improve the overall build time from 7 seconds to 3.5 seconds.
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/test-uuid.c')
-rw-r--r-- | tests/test-uuid.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test-uuid.c b/tests/test-uuid.c index a13d7793e..2c1da90ed 100644 --- a/tests/test-uuid.c +++ b/tests/test-uuid.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira, Inc. + * Copyright (c) 2009, 2014 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,9 +17,10 @@ #include <config.h> #include "uuid.h" #include <stdio.h> +#include "ovstest.h" -int -main(int argc, char *argv[]) +static void +test_uuid_main(int argc, char *argv[]) { struct uuid uuid; @@ -34,6 +35,6 @@ main(int argc, char *argv[]) } printf(UUID_FMT"\n", UUID_ARGS(&uuid)); - - return 0; } + +OVSTEST_REGISTER("test-uuid", test_uuid_main); |