Mercurial > irccd
diff tests/test-plugin-hangman.c @ 1037:8f8ce47aba8a
make: switch to GNU make
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 27 Apr 2021 09:22:16 +0200 |
parents | a35537c50f09 |
children | d8db515adbd4 |
line wrap: on
line diff
--- a/tests/test-plugin-hangman.c Mon Apr 12 11:16:18 2021 +0200 +++ b/tests/test-plugin-hangman.c Tue Apr 27 09:22:16 2021 +0200 @@ -21,7 +21,6 @@ #define GREATEST_USE_ABBREVS 0 #include <greatest.h> -#include <irccd/compat.h> #include <irccd/conn.h> #include <irccd/js-plugin.h> #include <irccd/log.h> @@ -63,7 +62,7 @@ (void)udata; server = irc_server_new("test", "t", "t", "t", "127.0.0.1", 6667); - plugin = js_plugin_open("hangman", CMAKE_SOURCE_DIR "/plugins/hangman/hangman.js"); + plugin = js_plugin_open("hangman", TOP "/plugins/hangman/hangman.js"); if (!plugin) errx(1, "could not load plugin"); @@ -79,7 +78,7 @@ irc_plugin_set_template(plugin, "wrong-letter", "wrong-letter=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{letter}"); irc_plugin_set_template(plugin, "wrong-player", "wrong-player=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{letter}"); irc_plugin_set_template(plugin, "wrong-word", "wrong-word=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{word}"); - irc_plugin_set_option(plugin, "file", SOURCE "/data/words.conf"); + irc_plugin_set_option(plugin, "file", TOP "/tests/data/words.conf"); irc_plugin_set_option(plugin, "collaborative", "false"); irc_plugin_load(plugin);