From 9e0de5fa6d691d1e5d646f526b3cf3b8f6a7ee8d Mon Sep 17 00:00:00 2001 From: Tarun Baghmar <Tarun.Baghmar@in.bosch.com> Date: Mon, 27 Apr 2020 08:57:47 +0000 Subject: [PATCH] T6600:Manual test case for flatpak mildenhall helloworld-app review incorporated 1. sdk-flatpak-build-helloworld-app.yaml: building the app by using mildenhall runtime. 2. sdk-flatpak-helloworld-app.yaml: running the helloworld-app present in the server. Signed-off-by: Tarun Baghmar <Tarun.Baghmar@in.bosch.com> --- .../sdk-flatpak-build-helloworld-app.yaml | 42 +++++++++++++++++++ test-cases/sdk-flatpak-helloworld-app.yaml | 29 +++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 test-cases/sdk-flatpak-build-helloworld-app.yaml create mode 100644 test-cases/sdk-flatpak-helloworld-app.yaml diff --git a/test-cases/sdk-flatpak-build-helloworld-app.yaml b/test-cases/sdk-flatpak-build-helloworld-app.yaml new file mode 100644 index 0000000..ea9970f --- /dev/null +++ b/test-cases/sdk-flatpak-build-helloworld-app.yaml @@ -0,0 +1,42 @@ +metadata: + name: sdk-flatpak-build-helloworld-app + format: "Apertis Test Definition 1.0" + image-types: + sdk: [ amd64 ] + image-deployment: + - APT + type: functional + exec-type: manual + priority: medium + maintainer: "Apertis Project" + 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 + + + expected: + - "Hello world app window should be visible" + +run: + steps: + - "Clone the helloworld-app" + - $ git clone https://gitlab.apertis.org/sample-applications/helloworld-app.git + - "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 " + - $ flatpak install -y org.apertis.mildenhall.Platform org.apertis.mildenhall.Sdk + - "Wait for installation to be completed" + - "Switch inside the helloworld-app directory" + - $ cd helloworld-app + - "Build the helloworld-app using mildenhall runtime" + - $ flatpak-builder --repo=repo --force-clean build-dir flatpak-recipe.yaml + - "Add remote for helloworld-app" + - $ flatpak --if-not-exists --user remote-add --no-gpg-verify hello-worldapp repo/ + - "Install the helloworld app" + - $ flatpak install -y hello-worldapp org.apertis.mildenhall.helloworld-app + - "Now run the helloworld app" + - $ flatpak run org.apertis.mildenhall.helloworld-app diff --git a/test-cases/sdk-flatpak-helloworld-app.yaml b/test-cases/sdk-flatpak-helloworld-app.yaml new file mode 100644 index 0000000..a96e222 --- /dev/null +++ b/test-cases/sdk-flatpak-helloworld-app.yaml @@ -0,0 +1,29 @@ +metadata: + name: sdk-flatpak-helloworld-app + format: "Apertis Test Definition 1.0" + image-types: + sdk: [ amd64 ] + image-deployment: + - APT + type: functional + exec-type: manual + priority: medium + maintainer: "Apertis Project" + description: "Install helloworld-app from the flatpak repo." + + pre-conditions: + - "Please uninstall the org.apertis.mildenhall.helloworld-app if already installed." + - $ flatpak uninstall org.apertis.mildenhall.helloworld-app + + + expected: + - "Hello world app window should be visible" + +run: + steps: + - $ flatpak --user remote-add --if-not-exists --no-gpg-verify apertis-mildenhall https://images.apertis.org/flatpak/mildenhall + - "Install the org.apertis.mildenhall.helloworld-app" + - $ flatpak install -y apertis-mildenhall org.apertis.mildenhall.helloworld-app + - "Wait for installation to be completed." + - "Now run the helloworld app" + - $ flatpak run org.apertis.mildenhall.helloworld-app -- GitLab