unit-test: Link 29 test programs into ovstest
[sliver-openvswitch.git] / tests / test-file_name.c
index 3d4eaf1..9d2aca1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2010 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 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.
 #include <config.h>
 #include "util.h"
 #include <stdlib.h>
+#include "ovstest.h"
 
-int
-main(int argc, char *argv[])
+static void
+test_filename_main(int argc, char *argv[])
 {
     int i;
 
@@ -34,6 +35,6 @@ main(int argc, char *argv[])
         puts(base);
         free(base);
     }
-
-    return 0;
 }
+
+OVSTEST_REGISTER("test-file_name", test_filename_main);