diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-10-31 21:02:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-10-31 21:02:30 +0000 |
commit | b5a1af6f999820564ead4867b1e5d5574778ee56 (patch) | |
tree | 8323d870699994f8b75001f961fd5e1780c0f76a /pjlib/src/pjlib-test/main_mod.c |
initial import
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@1 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test/main_mod.c')
-rw-r--r-- | pjlib/src/pjlib-test/main_mod.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pjlib/src/pjlib-test/main_mod.c b/pjlib/src/pjlib-test/main_mod.c new file mode 100644 index 00000000..45410184 --- /dev/null +++ b/pjlib/src/pjlib-test/main_mod.c @@ -0,0 +1,33 @@ +/* $Header: /pjproject-0.3/pjlib/src/pjlib-test/main_mod.c 2 10/29/05 11:51a Bennylp $
+ */
+/*
+ * $Log: /pjproject-0.3/pjlib/src/pjlib-test/main_mod.c $
+ *
+ * 2 10/29/05 11:51a Bennylp
+ * Version 0.3-pre2.
+ *
+ * 1 10/05/05 5:12p Bennylp
+ * Created.
+ *
+ */
+#include "test.h"
+#include <linux/module.h>
+#include <linux/kernel.h>
+
+int init_module(void)
+{
+ printk(KERN_INFO "PJLIB test module loaded. Starting tests...\n");
+
+ test_main();
+
+ /* Prevent module from loading. We've finished test anyway.. */
+ return 1;
+}
+
+void cleanup_module(void)
+{
+ printk(KERN_INFO "PJLIB test module unloading...\n");
+}
+
+MODULE_LICENSE("GPL");
+
|