[gnome-autoar/wip/lantw/autoar-0.2] tests: Move programs not related to testing to a separate directory
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar/wip/lantw/autoar-0.2] tests: Move programs not related to testing to a separate directory
- Date: Tue, 17 Jan 2017 05:49:49 +0000 (UTC)
commit ca2ecf8c468e1a4893de2c50b1923cb8831fb0c9
Author: Ting-Wei Lan <lantw src gnome org>
Date: Tue Jan 17 04:38:28 2017 +0800
tests: Move programs not related to testing to a separate directory
There are several programs used for development and manual testing
put in the 'tests' directory. This is confusing for new developers
because the 'tests' directory is usually used to store automated test
programs and test cases. These programs are now put in the new 'tools'
directory, and their 'test-' prefix are also changed.
.gitignore | 11 ++--
Makefile.am | 59 +++++++++++++-----------
tests/test-create.c => tools/autoar-create.c | 0
tests/test-extract.c => tools/autoar-extract.c | 0
tests/test-ui.c => tools/autoar-gtk.c | 0
tests/test-pref.c => tools/autoar-pref.c | 0
6 files changed, 38 insertions(+), 32 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4bea694..74f005f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,12 +44,13 @@ gnome-autoar/*-enum-types.[ch]
gnome-autoar/gnome-autoar-*.pc
gnome-autoar/gnome-autoar-*.vapi
-tests/test-extract
tests/test-extract-unit
-tests/test-extract-memory
-tests/test-create
-tests/test-pref
-tests/test-ui
+
+tools/autoar-extract
+tools/autoar-extract-memory
+tools/autoar-create
+tools/autoar-pref
+tools/autoar-gtk
docs/reference/html
docs/reference/xml
diff --git a/Makefile.am b/Makefile.am
index 6fa210f..1252983 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -218,12 +218,6 @@ EXTRA_DIST += $(gsettings_SCHEMAS)
# Directory: tests
-noinst_PROGRAMS = \
- tests/test-extract \
- tests/test-extract-unit \
- tests/test-create \
- $(NULL)
-
test_cflags = \
$(GIO_CFLAGS) \
$(LIBARCHIVE_CFLAGS) \
@@ -236,24 +230,6 @@ test_libs = \
$(top_builddir)/gnome-autoar/libgnome-autoar-@API_VERSION@.la \
$(NULL)
-tests_test_extract_SOURCES = tests/test-extract.c
-tests_test_extract_CFLAGS = $(test_cflags)
-tests_test_extract_LDADD = $(test_libs)
-
-tests_test_extract_unit_SOURCES = tests/test-extract-unit.c
-tests_test_extract_unit_CFLAGS = $(test_cflags)
-tests_test_extract_unit_LDADD = $(test_libs)
-
-tests_test_create_SOURCES = tests/test-create.c
-tests_test_create_CFLAGS = $(test_cflags)
-tests_test_create_LDADD = $(test_libs)
-
-if ENABLE_GTK
-
-noinst_PROGRAMS += \
- tests/test-ui \
- $(NULL)
-
test_gtk_cflags = \
$(GTK_CFLAGS) \
-I$(top_srcdir) \
@@ -266,9 +242,38 @@ test_gtk_libs = \
$(top_builddir)/gnome-autoar/libgnome-autoar-@API_VERSION@.la \
$(NULL)
-tests_test_ui_SOURCES = tests/test-ui.c
-tests_test_ui_CFLAGS = $(test_gtk_cflags)
-tests_test_ui_LDADD = $(test_gtk_libs)
+noinst_PROGRAMS = \
+ tests/test-extract-unit \
+ $(NULL)
+
+tests_test_extract_unit_SOURCES = tests/test-extract-unit.c
+tests_test_extract_unit_CFLAGS = $(test_cflags)
+tests_test_extract_unit_LDADD = $(test_libs)
+
+
+# Directory: tools
+noinst_PROGRAMS += \
+ tools/autoar-extract \
+ tools/autoar-create \
+ $(NULL)
+
+tools_autoar_extract_SOURCES = tools/autoar-extract.c
+tools_autoar_extract_CFLAGS = $(test_cflags)
+tools_autoar_extract_LDADD = $(test_libs)
+
+tools_autoar_create_SOURCES = tools/autoar-create.c
+tools_autoar_create_CFLAGS = $(test_cflags)
+tools_autoar_create_LDADD = $(test_libs)
+
+if ENABLE_GTK
+
+noinst_PROGRAMS += \
+ tools/autoar-gtk \
+ $(NULL)
+
+tools_autoar_gtk_SOURCES = tools/autoar-gtk.c
+tools_autoar_gtk_CFLAGS = $(test_gtk_cflags)
+tools_autoar_gtk_LDADD = $(test_gtk_libs)
endif
diff --git a/tests/test-create.c b/tools/autoar-create.c
similarity index 100%
rename from tests/test-create.c
rename to tools/autoar-create.c
diff --git a/tests/test-extract.c b/tools/autoar-extract.c
similarity index 100%
rename from tests/test-extract.c
rename to tools/autoar-extract.c
diff --git a/tests/test-ui.c b/tools/autoar-gtk.c
similarity index 100%
rename from tests/test-ui.c
rename to tools/autoar-gtk.c
diff --git a/tests/test-pref.c b/tools/autoar-pref.c
similarity index 100%
rename from tests/test-pref.c
rename to tools/autoar-pref.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]