[glom] tests: Move export tests to tests/export/.



commit 33cf0dc5ee18f39895c53bf8210e18a5264e4fda
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 10 09:35:08 2016 +0100

    tests: Move export tests to tests/export/.

 Makefile_tests.am                                  |   25 ++++++++++---------
 ...test_example_music_collection_with_big_num.glom |    0
 .../test_selfhosting_new_then_export.cc            |    0
 ...est_selfhosting_new_then_export_with_big_num.cc |    2 +-
 4 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/Makefile_tests.am b/Makefile_tests.am
index 23015b0..c4f5278 100644
--- a/Makefile_tests.am
+++ b/Makefile_tests.am
@@ -41,8 +41,6 @@ check_PROGRAMS =                                              \
        tests/test_selfhosting_new_from_example_float \
        tests/test_selfhosting_new_from_example_operator \
        tests/test_selfhosting_new_from_example_strangepath \
-       tests/test_selfhosting_new_then_export \
-       tests/test_selfhosting_new_then_export_with_big_num \
        tests/test_selfhosting_new_then_report \
        tests/test_selfhosting_new_then_report_summary \
        tests/test_selfhosting_new_then_image \
@@ -56,6 +54,8 @@ check_PROGRAMS =                                              \
        tests/test_selfhosting_sqlinjection \
        tests/test_conversions \
        tests/test_xml_utils \
+       tests/export/test_selfhosting_new_then_export \
+       tests/export/test_selfhosting_new_then_export_with_big_num \
        tests/import/test_parsing \
        tests/import/test_signals \
        tests/translations_po/test_document_export_po \
@@ -89,8 +89,6 @@ TESTS =       tests/test_document_load        \
        tests/test_selfhosting_new_from_example_operator \
        tests/test_selfhosting_new_from_example_in_locales.sh \
        tests/test_selfhosting_new_from_example_strangepath \
-       tests/test_selfhosting_new_then_export \
-       tests/test_selfhosting_new_then_export_with_big_num \
        tests/test_selfhosting_new_then_report \
        tests/test_selfhosting_new_then_report_summary \
        tests/test_selfhosting_new_then_backup_restore \
@@ -104,6 +102,8 @@ TESTS =     tests/test_document_load        \
        tests/test_selfhosting_sqlinjection \
        tests/test_conversions \
        tests/test_xml_utils \
+       tests/export/test_selfhosting_new_then_export \
+       tests/export/test_selfhosting_new_then_export_with_big_num \
        tests/import/test_parsing \
        tests/import/test_signals \
        tests/translations_po/test_document_export_po \
@@ -217,14 +217,15 @@ tests_python_test_python_module_CPPFLAGS = $(tests_cppflags)
 
 # Distribute the tests data:
 dist_noinst_DATA = \
+       tests/export/test_example_music_collection_with_big_num.glom \
        tests/import/data/albums.csv \
        tests/translations_po/data/test.po \
        tests/test_image.jpg \
        tests/test_image2.jpg \
        tests/test_image.pdf \
        tests/test_image2.pdf \
-       tests/test_example_music_collection_text_pk_fields.glom \
-       tests/test_example_music_collection_with_big_num.glom
+       tests/test_example_music_collection_text_pk_fields.glom
+
 
 # Let the .cc source code know about this path:
 glom_test_import_defines = -DGLOM_TESTS_IMPORT_DATA_NOTINSTALLED=\""$(abs_top_srcdir)/tests/import/data/"\"
@@ -309,13 +310,13 @@ tests_test_selfhosting_new_from_example_strangepath_SOURCES = tests/test_selfhos
 tests_test_selfhosting_new_from_example_strangepath_LDADD = $(tests_ldadd)
 tests_test_selfhosting_new_from_example_strangepath_CPPFLAGS = $(tests_cppflags)
 
-tests_test_selfhosting_new_then_export_SOURCES = tests/test_selfhosting_new_then_export.cc 
$(sources_test_selfhosting_utils)
-tests_test_selfhosting_new_then_export_LDADD = $(tests_ldadd)
-tests_test_selfhosting_new_then_export_CPPFLAGS = $(tests_cppflags)
+tests_export_test_selfhosting_new_then_export_SOURCES = tests/export/test_selfhosting_new_then_export.cc 
$(sources_test_selfhosting_utils)
+tests_export_test_selfhosting_new_then_export_LDADD = $(tests_ldadd)
+tests_export_test_selfhosting_new_then_export_CPPFLAGS = $(tests_cppflags)
 
-tests_test_selfhosting_new_then_export_with_big_num_SOURCES = 
tests/test_selfhosting_new_then_export_with_big_num.cc $(sources_test_selfhosting_utils)
-tests_test_selfhosting_new_then_export_with_big_num_LDADD = $(tests_ldadd)
-tests_test_selfhosting_new_then_export_with_big_num_CPPFLAGS = $(tests_cppflags)
+tests_export_test_selfhosting_new_then_export_with_big_num_SOURCES = 
tests/export/test_selfhosting_new_then_export_with_big_num.cc $(sources_test_selfhosting_utils)
+tests_export_test_selfhosting_new_then_export_with_big_num_LDADD = $(tests_ldadd)
+tests_export_test_selfhosting_new_then_export_with_big_num_CPPFLAGS = $(tests_cppflags)
 
 tests_test_selfhosting_new_then_report_SOURCES = tests/test_selfhosting_new_then_report.cc 
$(sources_test_selfhosting_utils)
 tests_test_selfhosting_new_then_report_LDADD = $(tests_ldadd)
diff --git a/tests/test_example_music_collection_with_big_num.glom 
b/tests/export/test_example_music_collection_with_big_num.glom
similarity index 100%
rename from tests/test_example_music_collection_with_big_num.glom
rename to tests/export/test_example_music_collection_with_big_num.glom
diff --git a/tests/test_selfhosting_new_then_export.cc b/tests/export/test_selfhosting_new_then_export.cc
similarity index 100%
rename from tests/test_selfhosting_new_then_export.cc
rename to tests/export/test_selfhosting_new_then_export.cc
diff --git a/tests/test_selfhosting_new_then_export_with_big_num.cc 
b/tests/export/test_selfhosting_new_then_export_with_big_num.cc
similarity index 94%
rename from tests/test_selfhosting_new_then_export_with_big_num.cc
rename to tests/export/test_selfhosting_new_then_export_with_big_num.cc
index 7158a2c..7a5ae72 100644
--- a/tests/test_selfhosting_new_then_export_with_big_num.cc
+++ b/tests/export/test_selfhosting_new_then_export_with_big_num.cc
@@ -30,7 +30,7 @@ static bool test(Glom::Document::HostingMode hosting_mode)
 {
   auto document = std::make_shared<Glom::Document>();
   const bool recreated = 
-    test_create_and_selfhost_from_test_example("test_example_music_collection_with_big_num.glom", document, 
hosting_mode);
+    test_create_and_selfhost_from_test_example("export/test_example_music_collection_with_big_num.glom", 
document, hosting_mode);
   if(!recreated)
   {
     std::cerr << G_STRFUNC << ": Recreation failed.\n";


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