[tracker/sam/tests-eat-my-data] tests: Use libeatmydata to speed up tests



commit 73cc18c794f76311c983d90de5a259c2fee73de3
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Feb 12 00:22:32 2020 +0100

    tests: Use libeatmydata to speed up tests
    
    This will hopefully fix https://gitlab.gnome.org/GNOME/tracker/issues/145

 .gitlab-ci.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b2e4f463..be792644e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,12 @@ stages:
   stage: test
 
   script:
+    - |
+      wget https://github.com/stewartsmith/libeatmydata/archive/libeatmydata-105.tar.gz
+      tar xf libeatmydata-105.tar.gz
+      cd libeatmydata-105
+      ./configure --prefix=/usr
+      make install
     - su tracker -c 'mkdir build'
     - su tracker -c 'cd build; meson .. -Db_lto=true -Db_coverage=true'
     - su tracker -c 'cd build; ninja'
@@ -30,7 +36,7 @@ stages:
       # We limit `meson test` to 4 parallel test processes. The default is to
       # have one test process per CPU, but our tests are mostly IO bound
       # and we get timeouts and failures if we try to run 32 of them at once.
-      su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
+      su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 eatmydata meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
 
   after_script:
     - |


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