summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-06-08 17:22:39 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-06-13 21:01:30 +0200
commit6662766552262231e2bececc15626e2b9e83241d (patch)
tree8e18d72d1a08de5a44b6e5dc662097f63ba60290
parente0a9fc50bfe9d1dccd0e360545a1768a6101db37 (diff)
downloadgjs-6662766552262231e2bececc15626e2b9e83241d.tar.gz
build: Do not use verbose GJS debug logging in tests by default
Avoid showing all the GJS debug topics information in logs when running meson test, while include them when using the 'verbose' setup that is now used by default in CI tests.
-rw-r--r--.gitlab-ci.yml10
-rw-r--r--meson.build3
2 files changed, 9 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d3b27a8..e3fe862f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,7 +71,7 @@ build_recommended:
stage: source_check
image: registry.gitlab.gnome.org/gnome/gjs:job-1740076_fedora.mozjs91-debug # pinned on purpose
variables:
- TEST_OPTS: --verbose --no-stdsplit --print-errorlogs
+ TEST_OPTS: --verbose --no-stdsplit --print-errorlogs --setup=verbose
except:
- schedules
@@ -83,7 +83,7 @@ sanitizer_gcc:
image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs91-debug
variables:
CONFIG_OPTS: -Db_sanitize=address,undefined
- TEST_OPTS: --timeout-multiplier=3
+ TEST_OPTS: --timeout-multiplier=3 --setup=verbose
except:
- schedules
@@ -97,7 +97,7 @@ sanitizer_thread_gcc:
image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs91-debug
variables:
CONFIG_OPTS: -Db_sanitize=thread
- TEST_OPTS: --timeout-multiplier=3
+ TEST_OPTS: --timeout-multiplier=3 --setup=verbose
except:
- schedules
@@ -128,6 +128,7 @@ build_minimal:
CONFIG_OPTS: >-
-Dbuildtype=release
-Dcairo=disabled -Dreadline=disabled -Dprofiler=disabled
+ TEST_OPTS: --setup=verbose
except:
- schedules
@@ -142,6 +143,7 @@ build_unity:
CONFIG_OPTS: >-
-Dprofiler=disabled
--unity on --unity-size=10000
+ TEST_OPTS: --setup=verbose
except:
- schedules
@@ -313,7 +315,7 @@ sanitizer_clang:
CC: clang
CXX: clang++
CONFIG_OPTS: -Db_sanitize=address,undefined -Db_lundef=false
- TEST_OPTS: --timeout-multiplier=3
+ TEST_OPTS: --timeout-multiplier=3 --setup=verbose
when: manual
except:
- schedules
diff --git a/meson.build b/meson.build
index 9f8cdacc..1edfb3ef 100644
--- a/meson.build
+++ b/meson.build
@@ -708,6 +708,9 @@ valgrind_args = [
'--error-exitcode=1'
]
+add_test_setup('quiet', env: ['GJS_DEBUG_TOPICS='], is_default: true)
+add_test_setup('verbose')
+
add_test_setup('valgrind', timeout_multiplier: 40, env: valgrind_environment,
exe_wrapper: ['valgrind'] + valgrind_args)