[gnome-games/wip/exalm/yaml] flatpak: Convert unit-tests manifest to yaml



commit c6c97889884586f05894b272ac334421e9b5ede0
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Oct 8 22:39:18 2018 +0500

    flatpak: Convert unit-tests manifest to yaml
    
    Use the fact gnome-builder cannot use yaml manifests to hide it.
    
    Also update CI.

 .gitlab-ci.yml                         |   2 +-
 flatpak/org.gnome.Games.UnitTests.json | 108 ---------------------------------
 flatpak/org.gnome.Games.UnitTests.yml  |  86 ++++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 109 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e38f334..f2dc830d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ flatpak:tests:
   image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
   stage: test
   variables:
-    MANIFEST_PATH: "flatpak/org.gnome.Games.UnitTests.json"
+    MANIFEST_PATH: "flatpak/org.gnome.Games.UnitTests.yml"
   script:
     - flatpak-builder unit-tests ${MANIFEST_PATH}
     - xvfb-run -a -s "-screen 0 1024x768x24" flatpak-builder --run unit-tests ${MANIFEST_PATH} 
games-unit-tests
diff --git a/flatpak/org.gnome.Games.UnitTests.yml b/flatpak/org.gnome.Games.UnitTests.yml
new file mode 100644
index 00000000..90c53478
--- /dev/null
+++ b/flatpak/org.gnome.Games.UnitTests.yml
@@ -0,0 +1,86 @@
+app-id: org.gnome.Games.UnitTests
+runtime: org.gnome.Platform
+runtime-version: master
+sdk: org.gnome.Sdk
+command: games-unit-tests
+tags:
+  - devel
+  - development
+  - nightly
+desktop-file-name-prefix: "(Development) "
+finish-args:
+  - --share=network
+  - --share=ipc
+  - --socket=x11
+  - --socket=wayland
+  - --device=dri
+  - --socket=pulseaudio
+build-options:
+  cflags: -O2 -g
+  cxxflags: -O2 -g
+cleanup:
+  - /include
+  - /lib/pkgconfig
+  - /share/pkgconfig
+  - /share/aclocal
+  - /man
+  - /share/man
+  - /share/gtk-doc
+  - '*.la'
+  - '*.a'
+  - /lib/girepository-1.0
+  - /share/dbus-1
+  - /share/doc
+  - /share/gir-1.0
+modules:
+  - libretro-cores/libretro-blastem.json
+  - libretro-cores/libretro-bsnes-mercury.json
+  - libretro-cores/libretro-desmume2015.json
+  - libretro-cores/libretro-gambatte.json
+  - libretro-cores/libretro-mednafen_pce_fast.json
+  - libretro-cores/libretro-mgba.json
+  - libretro-cores/libretro-nestopia.json
+  - libretro-cores/libretro-pcsx_rearmed.json
+  - libretro-cores/libretro-stella.json
+  - medias/240p-test-suite-md.json
+  - medias/240p-test-suite-nes.json
+  - medias/240p-test-suite-pce.json
+  - medias/240p-test-suite-ps1.json
+  - medias/240p-test-suite-snes.json
+  - medias/hunchy.json
+  - medias/openmaze.json
+  - medias/pong-ds.json
+  - medias/the-nomad-2-trapped.json
+  - tests/test-data.json
+
+  - name: games-unit-tests
+    buildsystem: simple
+    build-commands:
+      - mkdir -p /app/bin/
+      - install -m755 -pD games-unit-tests /app/bin/games-unit-tests
+      - install -m755 -pD org.gnome.Games.UnitTests.desktop 
/app/share/applications/org.gnome.Games.UnitTests.desktop
+    sources:
+      - type: script
+        commands:
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/blastem.240pSuite.test 2>&1 
| diff /app/tests/blastem.240pSuite.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest 
/app/tests/bsnes_mercury_balanced.240pSuite.test 2>&1 | diff 
/app/tests/bsnes_mercury_balanced.240pSuite.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/desmume2015.pong-ds.test
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/gambatte.OpenMAZE.test 2>&1 
| diff /app/tests/gambatte.OpenMAZE.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest 
/app/tests/mednafen_pce_fast.240pSuite.test 2>&1 | diff /app/tests/mednafen_pce_fast.240pSuite.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/mgba.nomad2_full.test 2>&1 
| diff /app/tests/mgba.nomad2_full.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/nestopia.240pee.test 2>&1 | 
diff /app/tests/nestopia.240pee.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest 
/app/tests/pcsx_rearmed.240pTestSuitePS1.test 2>&1 | diff /app/tests/pcsx_rearmed.240pTestSuitePS1.expected -
+          - /app/libexec/installed-tests/retro-gtk-0.14/retro-reftest /app/tests/stella.hunchy.test 2>&1 | 
diff /app/tests/stella.hunchy.expected -
+        dest-filename: games-unit-tests
+      - type: file
+        path: org.gnome.Games.UnitTests.desktop
+        dest-filename: org.gnome.Games.UnitTests.desktop
+
+  - name: retro-gtk
+    buildsystem: meson
+    builddir: true
+    config-opts:
+      - -Dinstall-tests=true
+    sources:
+      - type: git
+        url: https://gitlab.gnome.org/GNOME/retro-gtk.git


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