[grilo-plugins] tests: Rename gamefaqs tests to games



commit 52defabf2de80c34504fb9f2229d4f64951553a7
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 19 18:40:17 2016 +0200

    tests: Rename gamefaqs tests to games
    
    As we want to use this test suite for all games.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766678

 configure.ac                                       |    2 +-
 tests/Makefile.am                                  |    2 +-
 tests/{gamefaqs => games}/Makefile.am              |   16 ++++++++--------
 .../data/kirby-images-page.data                    |    0
 tests/{gamefaqs => games}/data/network-data.ini    |    0
 tests/{gamefaqs => games}/data/resolve-kirby.data  |    0
 .../{gamefaqs => games}/data/resolve-strider.data  |    0
 .../data/strider-game-page.data                    |    0
 .../data/strider-images-page.data                  |    0
 .../test_gamefaqs.c => games/test_games.c}         |    2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 32ec398..224918b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1290,7 +1290,7 @@ AC_CONFIG_FILES([
   tests/local-metadata/Makefile
   tests/lua-factory/Makefile
   tests/lua-factory/sources/Makefile
-  tests/gamefaqs/Makefile
+  tests/games/Makefile
   tests/thetvdb/Makefile
   tests/tmdb/Makefile
   tests/vimeo/Makefile
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0ce9d91..0bf6a3f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -20,7 +20,7 @@ endif
 endif
 
 if LUA_FACTORY_PLUGIN
-SUBDIRS += lua-factory spotify-cover gamefaqs
+SUBDIRS += lua-factory spotify-cover games
 endif
 
 if TMDB_PLUGIN
diff --git a/tests/gamefaqs/Makefile.am b/tests/games/Makefile.am
similarity index 74%
rename from tests/gamefaqs/Makefile.am
rename to tests/games/Makefile.am
index 9cfc1af..00e6739 100644
--- a/tests/gamefaqs/Makefile.am
+++ b/tests/games/Makefile.am
@@ -8,22 +8,22 @@
 include $(top_srcdir)/gtester.mk
 
 TEST_PROGS +=  \
-   test_gamefaqs
+   test_games
 
-test_gamefaqs_defines =                                                                \
+test_games_defines =                                                           \
        -DLUA_FACTORY_PLUGIN_PATH=\""$(abs_top_builddir)/src/lua-factory/.libs/"\"      \
        -DLUA_SOURCES_PATH=\""$(abs_top_srcdir)/src/lua-factory/sources/"\"             \
-       -DGAMEFAQS_DATA_PATH=\""$(abs_top_srcdir)/tests/gamefaqs/data/"\"
+       -DGAMES_DATA_PATH=\""$(abs_top_srcdir)/tests/games/data/"\"
 
-test_gamefaqs_SOURCES =        \
-       test_gamefaqs.c
+test_games_SOURCES =   \
+       test_games.c
 
-test_gamefaqs_LDADD =  \
+test_games_LDADD =     \
        @DEPS_LIBS@
 
-test_gamefaqs_CFLAGS = \
+test_games_CFLAGS =    \
        @DEPS_CFLAGS@                                   \
-       $(test_gamefaqs_defines)
+       $(test_games_defines)
 
 # Distribute the tests data:
 dist_noinst_DATA =               \
diff --git a/tests/gamefaqs/data/kirby-images-page.data b/tests/games/data/kirby-images-page.data
similarity index 100%
rename from tests/gamefaqs/data/kirby-images-page.data
rename to tests/games/data/kirby-images-page.data
diff --git a/tests/gamefaqs/data/network-data.ini b/tests/games/data/network-data.ini
similarity index 100%
rename from tests/gamefaqs/data/network-data.ini
rename to tests/games/data/network-data.ini
diff --git a/tests/gamefaqs/data/resolve-kirby.data b/tests/games/data/resolve-kirby.data
similarity index 100%
rename from tests/gamefaqs/data/resolve-kirby.data
rename to tests/games/data/resolve-kirby.data
diff --git a/tests/gamefaqs/data/resolve-strider.data b/tests/games/data/resolve-strider.data
similarity index 100%
rename from tests/gamefaqs/data/resolve-strider.data
rename to tests/games/data/resolve-strider.data
diff --git a/tests/gamefaqs/data/strider-game-page.data b/tests/games/data/strider-game-page.data
similarity index 100%
rename from tests/gamefaqs/data/strider-game-page.data
rename to tests/games/data/strider-game-page.data
diff --git a/tests/gamefaqs/data/strider-images-page.data b/tests/games/data/strider-images-page.data
similarity index 100%
rename from tests/gamefaqs/data/strider-images-page.data
rename to tests/games/data/strider-images-page.data
diff --git a/tests/gamefaqs/test_gamefaqs.c b/tests/games/test_games.c
similarity index 98%
rename from tests/gamefaqs/test_gamefaqs.c
rename to tests/games/test_games.c
index 9462edb..5d19559 100644
--- a/tests/gamefaqs/test_gamefaqs.c
+++ b/tests/games/test_games.c
@@ -159,7 +159,7 @@ main(int argc, char **argv)
   g_setenv ("GRL_PLUGIN_PATH", LUA_FACTORY_PLUGIN_PATH, TRUE);
   g_setenv ("GRL_LUA_SOURCES_PATH", LUA_SOURCES_PATH, TRUE);
   g_setenv ("GRL_PLUGIN_LIST", "grl-lua-factory", TRUE);
-  g_setenv ("GRL_NET_MOCKED", GAMEFAQS_DATA_PATH "network-data.ini", TRUE);
+  g_setenv ("GRL_NET_MOCKED", GAMES_DATA_PATH "network-data.ini", TRUE);
 
   grl_init (&argc, &argv);
   g_test_init (&argc, &argv, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]