]> git.draconx.ca Git - cdecl99.git/blobdiff - test/testlib.c
Add a test case to check if libcdecl can parse its own output.
[cdecl99.git] / test / testlib.c
index e5143c20cc49a69805aa1d516d1b72151250d6a3..3c8bb8c03fc4f06333bbc0dab825e59a47c51891 100644 (file)
@@ -69,3 +69,12 @@ bool strict_strtoul(unsigned long *val, const char *str, int base)
 
        return true;
 }
+
+void test_print_version(const char *program)
+{
+       printf("%s (%s) %s\n", program, PACKAGE_NAME, PACKAGE_VERSION);
+       puts("Copyright (C) 2011 Nick Bowler.");
+       puts("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.");
+       puts("This is free software: you are free to change and redistribute it.");
+       puts("There is NO WARRANTY, to the extent permitted by law.");
+}