From 3ad17f26182311f44760c7ba51feb6f4c3ea44cf Mon Sep 17 00:00:00 2001 From: Marc Hanheide Date: Thu, 22 Feb 2024 15:48:57 +0100 Subject: [PATCH] add tests --- .github/workflows/test.yaml | 2 +- test/desktop-lite/test.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/desktop-lite/test.sh diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 200ce96..9379fd6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,7 +17,7 @@ jobs: # - hello - desktop-lite baseImage: - - debian:latest + # - debian:latest - ubuntu:latest - mcr.microsoft.com/devcontainers/base:ubuntu steps: diff --git a/test/desktop-lite/test.sh b/test/desktop-lite/test.sh new file mode 100644 index 0000000..9009aa9 --- /dev/null +++ b/test/desktop-lite/test.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "desktop-init-exists" bash -c "ls /usr/local/share/desktop-init.sh" +check "log-exists" bash -c "ls /tmp/container-init.log" +check "fluxbox-exists" bash -c "ls -la ~/.fluxbox" + +# Report result +reportResults \ No newline at end of file