[gnome-games] flatpak: Add org.gnome.Games.UnitTests



commit f5f231acb320271b17783a4f9395768472c340f9
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Apr 12 15:56:45 2018 +0200

    flatpak: Add org.gnome.Games.UnitTests
    
    This flatpak will run a series of simple reference tests on Libretro
    cores.

 flatpak/org.gnome.Games.UnitTests.desktop         |   3 +
 flatpak/org.gnome.Games.UnitTests.json            |  85 ++++++++++++++++++++++
 flatpak/tests/240p-test-suite-nes.json            |  15 ++++
 flatpak/tests/240p-test-suite-pce.json            |  15 ++++
 flatpak/tests/240p-test-suite-snes.json           |  15 ++++
 flatpak/tests/bsnes_balanced.240pSuite.120.png    | Bin 0 -> 8460 bytes
 flatpak/tests/mednafen_pce_fast.240pSuite.120.png | Bin 0 -> 8981 bytes
 flatpak/tests/nestopia.240pee.120.png             | Bin 0 -> 6387 bytes
 flatpak/tests/test-data.json                      |  27 +++++++
 9 files changed, 160 insertions(+)
---
diff --git a/flatpak/org.gnome.Games.UnitTests.desktop b/flatpak/org.gnome.Games.UnitTests.desktop
new file mode 100644
index 0000000..1b09e94
--- /dev/null
+++ b/flatpak/org.gnome.Games.UnitTests.desktop
@@ -0,0 +1,3 @@
+[Desktop Entry]
+Name=org.gnome.Games.UnitTests
+Exec=games-unit-tests
diff --git a/flatpak/org.gnome.Games.UnitTests.json b/flatpak/org.gnome.Games.UnitTests.json
new file mode 100644
index 0000000..626287d
--- /dev/null
+++ b/flatpak/org.gnome.Games.UnitTests.json
@@ -0,0 +1,85 @@
+{
+    "app-id" : "org.gnome.Games.UnitTests",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "master",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "games-unit-tests",
+    "tags" : [
+        "nightly"
+    ],
+    "desktop-file-name-prefix" : "(Nightly) ",
+    "finish-args" : [
+        "--share=network",
+        "--share=ipc",
+        "--socket=x11",
+        "--socket=wayland",
+        "--device=dri",
+        "--socket=pulseaudio"
+    ],
+    "build-options" : {
+        "cflags" : "-O2 -g",
+        "cxxflags" : "-O2 -g",
+        "env" : {
+        }
+    },
+    "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-bsnes.json",
+        "libretro-cores/libretro-nestopia.json",
+        "libretro-cores/libretro-mednafen_pce_fast.json",
+        "tests/240p-test-suite-nes.json",
+        "tests/240p-test-suite-pce.json",
+        "tests/240p-test-suite-snes.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" : [
+                        "retro-reftest /app/lib/libretro/bsnes_balanced_libretro.so /app/tests/240pSuite.sfc 
-s 120 -v /app/tests/bsnes_balanced.240pSuite.120.png",
+                        "retro-reftest /app/lib/libretro/mednafen_pce_fast_libretro.so 
/app/tests/240pSuite.pce -s 120 -v /app/tests/mednafen_pce_fast.240pSuite.120.png",
+                        "retro-reftest /app/lib/libretro/nestopia_libretro.so /app/tests/240pee.nes -s 120 
-v /app/tests/nestopia.240pee.120.png"
+                    ],
+                    "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,
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/retro-gtk.git";
+                }
+            ]
+        }
+    ]
+}
diff --git a/flatpak/tests/240p-test-suite-nes.json b/flatpak/tests/240p-test-suite-nes.json
new file mode 100644
index 0000000..2d70d5e
--- /dev/null
+++ b/flatpak/tests/240p-test-suite-nes.json
@@ -0,0 +1,15 @@
+        {
+            "name" : "240p-test-suite-nes",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "mkdir -p /app/tests/",
+                "install -m644 -pD 240pee.nes /app/tests/240pee.nes"
+            ],
+            "sources" : [
+                {
+                    "type": "archive",
+                    "url": "https://downloads.sourceforge.net/testsuite240p/NES/240pee-0.08.2.zip";,
+                    "sha256": "b8ce480d2dc9dea10d5163bffc3dc1d86bbf7e31ac4d90f352e6d968550074ac"
+                }
+            ]
+        }
diff --git a/flatpak/tests/240p-test-suite-pce.json b/flatpak/tests/240p-test-suite-pce.json
new file mode 100644
index 0000000..8b720af
--- /dev/null
+++ b/flatpak/tests/240p-test-suite-pce.json
@@ -0,0 +1,15 @@
+        {
+            "name" : "240p-test-suite-pce",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "mkdir -p /app/tests/",
+                "install -m644 -pD 240pSuite.pce /app/tests/240pSuite.pce"
+            ],
+            "sources" : [
+                {
+                    "type": "archive",
+                    "url": 
"https://downloads.sourceforge.net/testsuite240p/PCE-TG16-SCD/240pSuite_1.04_HuCard.zip";,
+                    "sha256": "adddb8f29acea3f4ccac4699220babe68e73021a8a272d396277076ba3187f88"
+                }
+            ]
+        }
diff --git a/flatpak/tests/240p-test-suite-snes.json b/flatpak/tests/240p-test-suite-snes.json
new file mode 100644
index 0000000..7ae5785
--- /dev/null
+++ b/flatpak/tests/240p-test-suite-snes.json
@@ -0,0 +1,15 @@
+        {
+            "name" : "240p-test-suite-snes",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "mkdir -p /app/tests/",
+                "install -m644 -pD 240pSuite.sfc /app/tests/240pSuite.sfc"
+            ],
+            "sources" : [
+                {
+                    "type": "archive",
+                    "url": 
"https://downloads.sourceforge.net/testsuite240p/SNES_SFC/240pSuite-SNES-1.03.zip";,
+                    "sha256": "e503ae6ae740a217692ff395f3f31a5f89d365615a28c9644455acb1f0c651c0"
+                }
+            ]
+        }
diff --git a/flatpak/tests/bsnes_balanced.240pSuite.120.png b/flatpak/tests/bsnes_balanced.240pSuite.120.png
new file mode 100644
index 0000000..762b18d
Binary files /dev/null and b/flatpak/tests/bsnes_balanced.240pSuite.120.png differ
diff --git a/flatpak/tests/mednafen_pce_fast.240pSuite.120.png 
b/flatpak/tests/mednafen_pce_fast.240pSuite.120.png
new file mode 100644
index 0000000..1d7c266
Binary files /dev/null and b/flatpak/tests/mednafen_pce_fast.240pSuite.120.png differ
diff --git a/flatpak/tests/nestopia.240pee.120.png b/flatpak/tests/nestopia.240pee.120.png
new file mode 100644
index 0000000..53a9852
Binary files /dev/null and b/flatpak/tests/nestopia.240pee.120.png differ
diff --git a/flatpak/tests/test-data.json b/flatpak/tests/test-data.json
new file mode 100644
index 0000000..9087afb
--- /dev/null
+++ b/flatpak/tests/test-data.json
@@ -0,0 +1,27 @@
+        {
+            "name" : "test-data",
+            "buildsystem" : "simple",
+            "build-commands" : [
+                "mkdir -p /app/tests/",
+                "install -m644 -pD bsnes_balanced.240pSuite.120.png 
/app/tests/bsnes_balanced.240pSuite.120.png",
+                "install -m644 -pD mednafen_pce_fast.240pSuite.120.png 
/app/tests/mednafen_pce_fast.240pSuite.120.png",
+                "install -m644 -pD nestopia.240pee.120.png /app/tests/nestopia.240pee.120.png"
+            ],
+            "sources" : [
+                {
+                    "type" : "file",
+                    "path" : "bsnes_balanced.240pSuite.120.png",
+                    "dest-filename" : "bsnes_balanced.240pSuite.120.png"
+                },
+                {
+                    "type" : "file",
+                    "path" : "mednafen_pce_fast.240pSuite.120.png",
+                    "dest-filename" : "mednafen_pce_fast.240pSuite.120.png"
+                },
+                {
+                    "type" : "file",
+                    "path" : "nestopia.240pee.120.png",
+                    "dest-filename" : "nestopia.240pee.120.png"
+                }
+            ]
+        }


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