[gtk/source-static-name: 1/2] testsuite: Set TEST_RESULT_DIR for tools tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/source-static-name: 1/2] testsuite: Set TEST_RESULT_DIR for tools tests
- Date: Wed, 28 Jul 2021 17:54:11 +0000 (UTC)
commit 47fc02ba7805a5ccb3c490303b5a39d1ebda4d29
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 28 13:21:03 2021 -0400
testsuite: Set TEST_RESULT_DIR for tools tests
testsuite/tools/meson.build | 1 +
testsuite/tools/simplify-3to4.in | 4 +++-
testsuite/tools/simplify.in | 4 +++-
testsuite/tools/validate.in | 4 +++-
4 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/testsuite/tools/meson.build b/testsuite/tools/meson.build
index 6ad367586f..582bce6fb8 100644
--- a/testsuite/tools/meson.build
+++ b/testsuite/tools/meson.build
@@ -23,6 +23,7 @@ if bash.found()
workdir: meson.current_build_dir(),
protocol: 'tap',
env: [
+ 'TEST_RESULT_DIR=@0@'.format(join_paths(meson.current_build_dir(), 'output')),
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
'GTK_A11Y=test',
diff --git a/testsuite/tools/simplify-3to4.in b/testsuite/tools/simplify-3to4.in
index 35b8a8272f..0a97f1afd8 100755
--- a/testsuite/tools/simplify-3to4.in
+++ b/testsuite/tools/simplify-3to4.in
@@ -2,7 +2,9 @@
GTK_BUILDER_TOOL=${GTK_BUILDER_TOOL:-gtk4-builder-tool}
TEST_DATA_DIR=${G_TEST_SRCDIR:-.}/simplify-data-3to4
-TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}
+TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}/simplify-3to4
+
+mkdir -p "$TEST_RESULT_DIR"
shopt -s nullglob
TESTS=( "$TEST_DATA_DIR"/*.ui )
diff --git a/testsuite/tools/simplify.in b/testsuite/tools/simplify.in
index e90437337b..12b4cea8ef 100755
--- a/testsuite/tools/simplify.in
+++ b/testsuite/tools/simplify.in
@@ -2,7 +2,9 @@
GTK_BUILDER_TOOL=${GTK_BUILDER_TOOL:-gtk4-builder-tool}
TEST_DATA_DIR=${G_TEST_SRCDIR:-.}/simplify-data
-TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}
+TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}/simplify
+
+mkdir -p "$TEST_RESULT_DIR"
shopt -s nullglob
TESTS=( "$TEST_DATA_DIR"/*.ui )
diff --git a/testsuite/tools/validate.in b/testsuite/tools/validate.in
index 82de80e31d..42048ef7b4 100755
--- a/testsuite/tools/validate.in
+++ b/testsuite/tools/validate.in
@@ -2,7 +2,9 @@
GTK_BUILDER_TOOL=${GTK_BUILDER_TOOL:-gtk4-builder-tool}
TEST_DATA_DIR=${G_TEST_SRCDIR:-.}/validate-data
-TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}
+TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}/validate
+
+mkdir -p "$TEST_RESULT_DIR"
shopt -s nullglob
TESTS=( "$TEST_DATA_DIR"/*.ui )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]