[gnome-games/wip/exalm/tests] flatpak: Add Test extension
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/tests] flatpak: Add Test extension
- Date: Sat, 17 Nov 2018 18:58:22 +0000 (UTC)
commit 7a4e3ad6d4bf7e5cd30e84b1726172b300ad0c49
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Nov 17 23:57:59 2018 +0500
flatpak: Add Test extension
.../libretro-cores/test/advanced_tests.libretro | 8 ++
flatpak/libretro-cores/test/button_test.libretro | 8 ++
flatpak/libretro-cores/test/cruzes.libretro | 8 ++
flatpak/libretro-cores/test/libretro-samples.json | 86 ++++++++++++++++++++++
flatpak/libretro-cores/test/samples-Makefile | 29 ++++++++
flatpak/libretro-cores/test/test.libretro | 8 ++
.../test/testaudio_callback.libretro | 8 ++
.../test/testaudio_no_callback.libretro | 8 ++
.../test/testaudio_playback_wav.libretro | 8 ++
flatpak/libretro-cores/test/testgl.libretro | 8 ++
.../test/testgl_compute_shaders.libretro | 8 ++
flatpak/libretro-cores/test/testgl_ff.libretro | 8 ++
flatpak/libretro-cores/test/testsw.libretro | 8 ++
flatpak/libretro-cores/test/testsw_vram.libretro | 8 ++
flatpak/org.gnome.Games.LibretroPlugin.Test.json | 28 +++++++
15 files changed, 239 insertions(+)
---
diff --git a/flatpak/libretro-cores/test/advanced_tests.libretro
b/flatpak/libretro-cores/test/advanced_tests.libretro
new file mode 100644
index 00000000..867df4ed
--- /dev/null
+++ b/flatpak/libretro-cores/test/advanced_tests.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Advanced Tests
+Module=advanced_tests_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/button_test.libretro
b/flatpak/libretro-cores/test/button_test.libretro
new file mode 100644
index 00000000..a18be60d
--- /dev/null
+++ b/flatpak/libretro-cores/test/button_test.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Button Test
+Module=button_test_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/cruzes.libretro b/flatpak/libretro-cores/test/cruzes.libretro
new file mode 100644
index 00000000..4322626e
--- /dev/null
+++ b/flatpak/libretro-cores/test/cruzes.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Cruzes
+Module=cruzes_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/libretro-samples.json
b/flatpak/libretro-cores/test/libretro-samples.json
new file mode 100644
index 00000000..28cf3248
--- /dev/null
+++ b/flatpak/libretro-cores/test/libretro-samples.json
@@ -0,0 +1,86 @@
+ {
+ "name": "libretro-samples",
+ "no-autogen": true,
+ "make-args": [
+ "--makefile=Makefile",
+ "prefix=/app"
+ ],
+ "make-install-args": [
+ "--makefile=Makefile",
+ "prefix=/app"
+ ],
+ "post-install": [
+ "mkdir -p /app/lib/libretro/extra.d/Test",
+ "install -m644 -p advanced_tests.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p button_test.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p cruzes.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p test.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testaudio_callback.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testaudio_no_callback.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testaudio_playback_wav.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testgl.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testgl_compute_shaders.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testgl_ff.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testsw.libretro /app/lib/libretro/extra.d/Test",
+ "install -m644 -p testsw_vram.libretro /app/lib/libretro/extra.d/Test"
+ ],
+ "sources": [
+ {
+ "type": "git",
+ "url": "https://github.com/libretro/libretro-samples.git"
+ },
+ {
+ "type": "file",
+ "path": "samples-Makefile",
+ "dest-filename": "Makefile"
+ },
+ {
+ "type": "file",
+ "path": "advanced_tests.libretro"
+ },
+ {
+ "type": "file",
+ "path": "button_test.libretro"
+ },
+ {
+ "type": "file",
+ "path": "cruzes.libretro"
+ },
+ {
+ "type": "file",
+ "path": "test.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testaudio_callback.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testaudio_no_callback.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testaudio_playback_wav.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testgl.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testgl_compute_shaders.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testgl_ff.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testsw.libretro"
+ },
+ {
+ "type": "file",
+ "path": "testsw_vram.libretro"
+ }
+ ]
+ }
diff --git a/flatpak/libretro-cores/test/samples-Makefile b/flatpak/libretro-cores/test/samples-Makefile
new file mode 100644
index 00000000..4746e9bb
--- /dev/null
+++ b/flatpak/libretro-cores/test/samples-Makefile
@@ -0,0 +1,29 @@
+NULL=
+
+CORES= \
+ audio/audio_callback/testaudio_callback_libretro.so \
+ audio/audio_no_callback/testaudio_no_callback_libretro.so \
+ audio/audio_playback_wav/testaudio_playback_wav_libretro.so \
+ input/button_test/button_test_libretro.so \
+ tests/cruzes/cruzes_libretro.so \
+ tests/test_advanced/advanced_tests_libretro.so \
+ tests/test/test_libretro.so \
+ video/opengl/libretro_test_gl_compute_shaders/testgl_compute_shaders_libretro.so \
+ video/opengl/libretro_test_gl_fixedfunction/testgl_ff_libretro.so \
+ video/opengl/libretro_test_gl_shaders/testgl_libretro.so \
+ video/software/rendering_direct_to_vram/testsw_vram_libretro.so \
+ video/software/rendering/testsw_libretro.so \
+ $(NULL)
+
+LIBRETRODIR=$(DESTDIR)$(prefix)/lib/libretro/extra.d/Test/
+
+all: $(CORES)
+
+%.so:
+ make -C $(@D)
+
+install:
+ mkdir -p $(LIBRETRODIR)
+ for core in $(CORES); do \
+ install -p -m755 $$core $(LIBRETRODIR) ; \
+ done
diff --git a/flatpak/libretro-cores/test/test.libretro b/flatpak/libretro-cores/test/test.libretro
new file mode 100644
index 00000000..a76949a3
--- /dev/null
+++ b/flatpak/libretro-cores/test/test.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Test
+Module=test_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testaudio_callback.libretro
b/flatpak/libretro-cores/test/testaudio_callback.libretro
new file mode 100644
index 00000000..706fdf09
--- /dev/null
+++ b/flatpak/libretro-cores/test/testaudio_callback.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Audio Test (Callback)
+Module=testaudio_callback_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testaudio_no_callback.libretro
b/flatpak/libretro-cores/test/testaudio_no_callback.libretro
new file mode 100644
index 00000000..792038de
--- /dev/null
+++ b/flatpak/libretro-cores/test/testaudio_no_callback.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Audio Test (No Callback)
+Module=testaudio_no_callback_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testaudio_playback_wav.libretro
b/flatpak/libretro-cores/test/testaudio_playback_wav.libretro
new file mode 100644
index 00000000..74c01b5f
--- /dev/null
+++ b/flatpak/libretro-cores/test/testaudio_playback_wav.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Audio Test (WAV Playback)
+Module=testaudio_playback_wav_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testgl.libretro b/flatpak/libretro-cores/test/testgl.libretro
new file mode 100644
index 00000000..f2477cee
--- /dev/null
+++ b/flatpak/libretro-cores/test/testgl.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=OpenGL Test (Shaders)
+Module=testgl_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testgl_compute_shaders.libretro
b/flatpak/libretro-cores/test/testgl_compute_shaders.libretro
new file mode 100644
index 00000000..b85b4dae
--- /dev/null
+++ b/flatpak/libretro-cores/test/testgl_compute_shaders.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=OpenGL Test (Compute Shaders)
+Module=testgl_compute_shaders_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testgl_ff.libretro b/flatpak/libretro-cores/test/testgl_ff.libretro
new file mode 100644
index 00000000..099f5288
--- /dev/null
+++ b/flatpak/libretro-cores/test/testgl_ff.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=OpenGL Test (Fixed Function)
+Module=testgl_ff_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testsw.libretro b/flatpak/libretro-cores/test/testsw.libretro
new file mode 100644
index 00000000..35933242
--- /dev/null
+++ b/flatpak/libretro-cores/test/testsw.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Software Rendering Test
+Module=testsw_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/libretro-cores/test/testsw_vram.libretro
b/flatpak/libretro-cores/test/testsw_vram.libretro
new file mode 100644
index 00000000..91519457
--- /dev/null
+++ b/flatpak/libretro-cores/test/testsw_vram.libretro
@@ -0,0 +1,8 @@
+[Libretro]
+Type=Game
+Version=1.0
+Name=Software Rendering Test (Direct to VRAM)
+Module=testsw_vram_libretro.so
+LibretroVersion=1
+Authors=Team Libretro;
+License=MIT;
diff --git a/flatpak/org.gnome.Games.LibretroPlugin.Test.json
b/flatpak/org.gnome.Games.LibretroPlugin.Test.json
new file mode 100644
index 00000000..a6301f2a
--- /dev/null
+++ b/flatpak/org.gnome.Games.LibretroPlugin.Test.json
@@ -0,0 +1,28 @@
+{
+ "id": "org.gnome.Games.LibretroPlugin.Test",
+ "runtime": "org.gnome.GamesDevel",
+ "runtime-version": "master",
+ "build-extension": true,
+ "sdk": "org.gnome.Sdk",
+ "tags": ["nightly"],
+ "finish-args": [
+ /* Needed to find the ROMs */
+ "--filesystem=home:ro"
+ ],
+ "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": [
+ /* Emulator cores for libretro */
+ "libretro-cores/test/libretro-samples.json"
+ /* End libretro cores */
+ ]
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]