[gjs: 1/2] CI: run the GTK real tests (recently added)



commit 3a688bca1fbc52f654c466872d78d3114e3ba223
Author: Claudio André <claudioandre br gmail com>
Date:   Sun Jul 22 18:39:02 2018 -0300

    CI: run the GTK real tests (recently added)
    
    They were disabled.

 .gitlab-ci.yml                          |  1 +
 installed-tests/scripts/testExamples.sh | 12 +++++-------
 2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0c530130..9f04b99a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -161,6 +161,7 @@ with_logging:
     BUILD_OPTS: "CPPFLAGS='-DGJS_VERBOSE_ENABLE_PROPS=1 -DGJS_VERBOSE_ENABLE_MARSHAL=1 
-DGJS_VERBOSE_ENABLE_LIFECYCLE=1 -DGJS_VERBOSE_ENABLE_GI_USAGE=1 -DGJS_VERBOSE_ENABLE_CLOSURE=1 
-DGJS_VERBOSE_ENABLE_GSIGNAL=1'"
     TEST: "check"
     SCRIPTCHECK: "yes"
+    ENABLE_GTK: "yes"
   except:
     - schedules
 
diff --git a/installed-tests/scripts/testExamples.sh b/installed-tests/scripts/testExamples.sh
index e54280b9..f258c8cf 100755
--- a/installed-tests/scripts/testExamples.sh
+++ b/installed-tests/scripts/testExamples.sh
@@ -7,21 +7,19 @@ $gjs examples/gio-cat.js Makefile
 report "run the gio-cat.js example"
 
 if [[ -n "${ENABLE_GTK}" ]]; then
-    timeout 5s $gjs examples/calc.js
+    export graphical_gjs="xvfb-run -a --server-args='-screen 0 1024x768x24' dbus-run-session -- $gjs"
+
+    eval timeout 5s $graphical_gjs examples/calc.js
     report_timeout "run the calc.js example"
 
-    timeout 5s $gjs examples/gtk.js
+    eval timeout 5s $graphical_gjs examples/gtk.js
     report_timeout "run the gtk.js example"
 
-    timeout 5s $gjs examples/gtk-application.js
-    report_timeout "run the gtk-application.js example"
-
-    timeout 5s $gjs examples/gettext.js
+    eval timeout 5s $graphical_gjs examples/gettext.js
     report_timeout "run the gettext.js example"
 else
     skip "run the calc.js example" "running without GTK"
     skip "run the gtk.js example" "running without GTK"
-    skip "run the gtk-application.js example" "running without GTK"
     skip "run the gettext.js example" "running without GTK"
 fi
 echo "1..$total"


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