Revision: 921 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=921&view=rev Author: yurand Date: 2009-09-08 10:35:13 +0000 (Tue, 08 Sep 2009)
Log Message: ----------- GeanyVC: restore unit tests
Modified Paths: -------------- trunk/geany-plugins/build/geanyvc.m4 trunk/geany-plugins/geanyvc/Makefile.am trunk/geany-plugins/po/POTFILES.in
Added Paths: ----------- trunk/geany-plugins/geanyvc/tests/ trunk/geany-plugins/geanyvc/tests/Makefile.am trunk/geany-plugins/geanyvc/tests/unittests.c trunk/geany-plugins/po/POTFILES.skip
Modified: trunk/geany-plugins/build/geanyvc.m4 =================================================================== --- trunk/geany-plugins/build/geanyvc.m4 2009-09-07 19:01:24 UTC (rev 920) +++ trunk/geany-plugins/build/geanyvc.m4 2009-09-08 10:35:13 UTC (rev 921) @@ -19,5 +19,6 @@ AC_CONFIG_FILES([ geanyvc/Makefile geanyvc/src/Makefile + geanyvc/tests/Makefile ]) ])
Modified: trunk/geany-plugins/geanyvc/Makefile.am =================================================================== --- trunk/geany-plugins/geanyvc/Makefile.am 2009-09-07 19:01:24 UTC (rev 920) +++ trunk/geany-plugins/geanyvc/Makefile.am 2009-09-08 10:35:13 UTC (rev 921) @@ -1,4 +1,4 @@ include $(top_srcdir)/build/vars.auxfiles.mk
-SUBDIRS = src +SUBDIRS = src tests plugin = geanyvc
Added: trunk/geany-plugins/geanyvc/tests/Makefile.am =================================================================== --- trunk/geany-plugins/geanyvc/tests/Makefile.am (rev 0) +++ trunk/geany-plugins/geanyvc/tests/Makefile.am 2009-09-08 10:35:13 UTC (rev 921) @@ -0,0 +1,8 @@ +if UNITTESTS +include $(top_srcdir)/build/vars.build.mk +INCLUDES = $(GEANY_CFLAGS) -DUNITTESTS +TESTS=unittests +noinst_PROGRAMS=unittests +unittests_SOURCES = unittests.c ../src/utils.c +unittests_LDADD = @GEANY_LIBS@ $(INTLLIBS) @CHECK_LIBS@ +endif
Added: trunk/geany-plugins/geanyvc/tests/unittests.c =================================================================== --- trunk/geany-plugins/geanyvc/tests/unittests.c (rev 0) +++ trunk/geany-plugins/geanyvc/tests/unittests.c 2009-09-08 10:35:13 UTC (rev 921) @@ -0,0 +1,30 @@ +#include <stdlib.h> +#include <stdio.h> +#include <check.h> +#include <string.h> + +#include <gtk/gtk.h> +#include "geany.h" + +extern TCase *utils_test_case_create(); + +Suite * +my_suite(void) +{ + Suite *s = suite_create("VC"); + TCase *tc_utils = utils_test_case_create(); + suite_add_tcase(s, tc_utils); + return s; +} + +int +main(void) +{ + int nf; + Suite *s = my_suite(); + SRunner *sr = srunner_create(s); + srunner_run_all(sr, CK_NORMAL); + nf = srunner_ntests_failed(sr); + srunner_free(sr); + return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; +}
Modified: trunk/geany-plugins/po/POTFILES.in =================================================================== --- trunk/geany-plugins/po/POTFILES.in 2009-09-07 19:01:24 UTC (rev 920) +++ trunk/geany-plugins/po/POTFILES.in 2009-09-08 10:35:13 UTC (rev 921) @@ -10,6 +10,9 @@ #codenav codenav/src/codenavigation.c
+#codenav +geanydoc/src/geanydoc.c + #geanygdb geanygdb/src/gdb-io-break.c geanygdb/src/gdb-io-envir.c
Added: trunk/geany-plugins/po/POTFILES.skip =================================================================== --- trunk/geany-plugins/po/POTFILES.skip (rev 0) +++ trunk/geany-plugins/po/POTFILES.skip 2009-09-08 10:35:13 UTC (rev 921) @@ -0,0 +1,5 @@ + + +#geanyvc +geanyvc/src/commit.glade +
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.