Skip to content
Snippets Groups Projects
Commit 18dbcc63 authored by Ryan Gonzalez's avatar Ryan Gonzalez Committed by Emanuele Aina
Browse files

Reorganize the Flatpak-related test cases

This reorganizes and tweaks the Flatpak test cases to better express
their intent:

- Renames the `flatdeb-` prefix, which wasn't all that clear.
- Renames the legacy tests depending on mildenhall to match, and ensures
  they're tied to v2021.
- Rewords the contents of the tests to be more consistent and updated
  for the current state of things.
- Reworks the HMI demo test to use the app icon rather than launching
  from the CLI

https://phabricator.apertis.org/T8170



Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
parent 451891ee
No related branches found
No related tags found
1 merge request!356Reorganize the Flatpak-related test cases
Pipeline #320195 passed
Pipeline: apertis-test-cases-web

#320197

    atc_renderer/images/flatpak-demo-hmi-icon-screenshot.png

    26.6 KiB

    metadata:
    name: flatdeb-demo
    format: "Apertis Test Definition 1.0"
    image-types:
    hmi: [ amd64, armhf ]
    sdk: [ amd64, arm64, armhf ]
    image-deployment:
    - APT
    type: functional
    exec-type: manual
    priority: medium
    maintainer: "Apertis Project"
    description: "Test Flatpak demo application"
    expected:
    - "The Flatpak demo application can be installed and run on a clean system."
    - "@flatdeb-demo-screenshot.png"
    run:
    steps:
    - "Add the Apertis Flatpak repository (only needed on SDK images)"
    - $ flatpak --user remote-add apertis https://images.apertis.org/flatpak/repo/apertis.flatpakrepo
    - "Install the Flatpak demo application (only needed on SDK images)"
    - $ flatpak --user install org.apertis.demo.gnome_font_viewer//${APERTIS_RELEASE}
    - "Run the demo application:"
    - $ flatpak run org.apertis.demo.gnome_font_viewer
    metadata:
    name: sdk-flatpak-build-helloworld-app
    name: flatpak-build-mildenhall-helloworld-app
    format: "Apertis Test Definition 1.0"
    image-types:
    sdk: [ amd64 ]
    ......@@ -12,7 +12,6 @@ metadata:
    description: "Install mildenhall runtime, build helloworld-app using mildenhall runtime
    and run the helloworld-app."
    macro_install_packages_preconditions: flatpak-builder
    pre-conditions:
    - "Please uninstall the org.apertis.mildenhall.helloworld-app if already installed."
    - $ flatpak uninstall org.apertis.mildenhall.helloworld-app
    ......@@ -24,7 +23,7 @@ metadata:
    run:
    steps:
    - "Clone the helloworld-app"
    - $ git clone https://gitlab.apertis.org/sample-applications/helloworld-app.git
    - $ git clone https://gitlab.apertis.org/sample-applications/helloworld-app.git -b apertis/v2021
    - "Add remote for mildenall runtime:"
    - $ flatpak --user remote-add --if-not-exists --no-gpg-verify apertis-mildenhall https://images.apertis.org/flatpak/mildenhall
    - "Install the org.apertis.mildenhall.Platform org.apertis.mildenhall.Sdk "
    ......
    metadata:
    name: sdk-flatpak-demo
    name: flatpak-run-demo-cli-app
    format: "Apertis Test Definition 1.0"
    image-types:
    target: [ amd64 ]
    sdk: [ amd64 ]
    image-deployment:
    - APT
    ......@@ -9,10 +10,10 @@ metadata:
    exec-type: automated
    priority: medium
    maintainer: "Apertis Project"
    description: "Install and run org.apertis.demo.curl flatpak application."
    description: "Test a headless Flatpak demo application"
    expected:
    - "org.apertis.demo.curl is able to retrieve https://www.apertis.org."
    - "org.apertis.headless.curl is able to retrieve https://www.apertis.org."
    install:
    deps:
    ......@@ -26,4 +27,4 @@ run:
    - "# Enter test directory:"
    - cd apertis-tests
    - "# Execute the following command:"
    - common/run-test-in-systemd --user=user --basename -- sdk/automated/test-flatpak-demo.sh
    - common/run-test-in-systemd --user=user --basename -- flatpak/automated/test-flatpak-demo.sh
    metadata:
    name: flatdeb-example-app
    name: flatpak-run-demo-hmi-app
    format: "Apertis Test Definition 1.0"
    image-types:
    hmi: [ amd64, armhf ]
    ......@@ -10,11 +10,11 @@ metadata:
    exec-type: manual
    priority: medium
    maintainer: "Apertis Project"
    description: "Test Flatpak example application"
    description: "Test a graphical Flatpak demo application"
    expected:
    - "The Flatpak example application can be installed and run on a clean system."
    - "@flatdeb-demo-screenshot.png"
    - "The Flatpak application can be installed and run on a clean system."
    - "@flatpak-demo-hmi-screenshot.png"
    run:
    steps:
    ......@@ -22,5 +22,7 @@ run:
    - $ flatpak --user remote-add --if-not-exists apertis https://images.apertis.org/flatpak/repo/apertis.flatpakrepo
    - "Install the Flatpak example application (only needed on SDK images)"
    - $ flatpak --user install --reinstall org.apertis.hmi.gnome_font_viewer//${APERTIS_RELEASE}
    - "Run the example application:"
    - $ flatpak run org.apertis.hmi.gnome_font_viewer
    - "On the agl-compositor click on the menu icon"
    - "Observe that the Fonts app icon is visible"
    - "@flatpak-demo-hmi-icon-screenshot.png"
    - "Launch the Fonts app"
    metadata:
    name: sdk-flatpak-helloworld-app
    name: flatpak-run-mildenhall-helloworld-app
    format: "Apertis Test Definition 1.0"
    image-types:
    hmi: [ amd64 ]
    sdk: [ amd64 ]
    image-deployment:
    - APT
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment