[tracker/sam/functional-tests-remove-generated-data] functional-tests: Remove stress tests



commit 0a4df434e8802e02b219e41f023f50877d38f111
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Aug 7 13:27:41 2019 +0200

    functional-tests: Remove stress tests
    
    Stress testing is good, but it should really be done as part of a
    separate project. It's not practical to run these tests on every
    commit. In fact, we already didn't, but we were still generating
    200MB of test data at build time to run them.
    
    This commit reduces the size of a tracker-miners+tracker build tree
    from >300MB to 55MB.

 tests/functional-tests/10-sqlite-misused.py        |  91 -------------
 tests/functional-tests/11-sqlite-batch-misused.py  | 112 ---------------
 tests/functional-tests/13-threaded-store.py        | 151 ---------------------
 .../functional-tests/common/utils/configuration.py |   7 -
 tests/functional-tests/meson.build                 |  11 +-
 tests/functional-tests/ttl/.gitignore              |   1 -
 tests/functional-tests/ttl/meson.build             |  54 --------
 7 files changed, 1 insertion(+), 426 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/configuration.py 
b/tests/functional-tests/common/utils/configuration.py
index 9fd8c1c64..1a327ab88 100644
--- a/tests/functional-tests/common/utils/configuration.py
+++ b/tests/functional-tests/common/utils/configuration.py
@@ -89,10 +89,3 @@ TEST_ONTOLOGIES_DIR = os.path.normpath(
 TRACKER_STORE_PATH = os.path.normpath(expandvars(config['TRACKER_STORE_PATH']))
 
 disableJournal = (len(config['disableJournal']) == 0)
-
-
-def generated_ttl_dir():
-    if TOP_BUILDDIR:
-        return os.path.join(TOP_BUILDDIR, 'tests', 'functional-tests', 'ttl')
-    else:
-        return 'ttl'
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index d74c0806f..c482fc3df 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -26,15 +26,6 @@ functional_tests = [
   '17-ontology-changes',
 ]
 
-subdir('ttl')
-functional_tests_with_test_data = [
-  '13-threaded-store',
-]
-
-# These tests are disabled by default as they are really slow.
-# '10-sqlite-misused',
-# '11-sqlite-batch-misused',
-
 config_json_full_path = join_paths(meson.current_build_dir(), 'configuration.json')
 dconf_profile_full_path = join_paths(meson.current_source_dir(), 'trackertest')
 
@@ -48,7 +39,7 @@ test_env.set('TRACKER_FUNCTIONAL_TEST_CONFIG', config_json_full_path)
 test_env.set('TRACKER_LANGUAGE_STOP_WORDS_DIR', tracker_uninstalled_stop_words_dir)
 test_env.set('TRACKER_TEST_DOMAIN_ONTOLOGY_RULE', tracker_uninstalled_domain_rule)
 
-foreach t: functional_tests + functional_tests_with_test_data
+foreach t: functional_tests
   test('functional-' + t, test_runner,
     args: './' + t + '.py',
     env: test_env,


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