summaryrefslogtreecommitdiffstats
path: root/debian/tests/libgit2_test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/tests/libgit2_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/tests/libgit2_test.c b/debian/tests/libgit2_test.c
new file mode 100644
index 0000000..18b37e6
--- /dev/null
+++ b/debian/tests/libgit2_test.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <git2.h>
+
+int main (int argc, char** argv)
+{
+ int major = 0;
+ int minor = 0;
+ int rev = 0;
+ git_libgit2_version(&major, &minor, &rev);
+ printf("Version %d.%d.%d\n", major, minor, rev);
+ return 0;
+};