]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - testsuite/test-loaded.c
testsuite: fix test_array_sort pointers inderection
[thirdparty/kmod.git] / testsuite / test-loaded.c
index 81c9e5ae9f18f08c9af68d6560c7e961449cc515..9d5814f23ffc6cb8f379855233620c1275d60b88 100644 (file)
@@ -1,28 +1,29 @@
 /*
- * Copyright (C) 2012  ProFUSION embedded systems
+ * Copyright (C) 2012-2013  ProFUSION embedded systems
  *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
 #include <errno.h>
-#include <unistd.h>
 #include <inttypes.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
-#include <libkmod.h>
+#include <unistd.h>
+
+#include <libkmod/libkmod.h>
 
 #include "testsuite.h"
 
@@ -77,19 +78,14 @@ static int loaded_1(const struct test *t)
 
        return EXIT_SUCCESS;
 }
-static DEFINE_TEST(loaded_1,
+DEFINE_TEST(loaded_1,
        .description = "check if list of module is created",
        .config = {
                [TC_ROOTFS] = TESTSUITE_ROOTFS "test-loaded/",
        },
        .need_spawn = true,
        .output = {
-               .stdout = TESTSUITE_ROOTFS "test-loaded/correct.txt",
+               .out = TESTSUITE_ROOTFS "test-loaded/correct.txt",
        });
 
-static const struct test *tests[] = {
-       &sloaded_1,
-       NULL,
-};
-
-TESTSUITE_MAIN(tests);
+TESTSUITE_MAIN();