diff --git a/Makefile.in b/Makefile.in index de5cd65..b1f2242 100644 --- a/Makefile.in +++ b/Makefile.in @@ -164,7 +164,9 @@ debug: install clean-here: rm -rf ${DIR_LIST} config.log config.status $(PRPL_C_OBJS) $(PRPL_LIBNAME) po/*.mo -.PHONY: clean +-include test/Makefile + +.PHONY: clean clean-test clean: clean-here tgl/Makefile +make -C tgl clean @@ -178,5 +180,3 @@ ifneq ($(shell cat commit.h |grep -c ${GIT_COMMIT}), 1) echo '# define GIT_COMMIT "${GIT_COMMIT}"' >> ${GIT_COMMIT_H} echo '#endif' >> ${GIT_COMMIT_H} endif - --include test/Makefile diff --git a/test/Makefile b/test/Makefile index 90f36a3..04ba015 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,4 @@ -PLUGIN_TESTS:=inittest +PLUGIN_TESTS:=probetest PLUGIN_TEST_BINS:=$(addprefix test/bin/,${PLUGIN_TESTS}) test/bin: diff --git a/test/inittest.c b/test/probetest.c similarity index 83% rename from test/inittest.c rename to test/probetest.c index b4a0e61..9f32c45 100644 --- a/test/inittest.c +++ b/test/probetest.c @@ -23,11 +23,11 @@ #include -// Just try to call the init function. If that's successful, then probably a lot of stuff works. -int main(int argc, char **argv) { +// Just try to probe (pre-load) the plugin. If that's successful, then probably a lot of stuff works. +int main (int argc, char **argv) { assert(argc == 2); - printf ("Running inittest on %s.\n", argv[1]); - PurplePlugin *tgp = purple_plugin_probe(argv[1]); + printf ("Running probetest on %s.\n", argv[1]); + PurplePlugin *tgp = purple_plugin_probe (argv[1]); if (!tgp) { printf ("Looks like there was a problem! Aborting.\n"); return 1;