Fix name of test, fix clean target

Since this is a trivial change, [skip ci]
This commit is contained in:
Ben Wiederhake 2016-01-01 13:57:25 +01:00
parent f41571934a
commit 0a349cc38e
3 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
PLUGIN_TESTS:=inittest
PLUGIN_TESTS:=probetest
PLUGIN_TEST_BINS:=$(addprefix test/bin/,${PLUGIN_TESTS})
test/bin:

View file

@ -23,11 +23,11 @@
#include <purple.h>
// 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;