Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorianer committed Oct 2, 2024
1 parent 28e0bf9 commit c0b1912
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/apt/install_ffmpeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

# Definition specific tests
check "ffmpeg" ffmpeg -version

# Report result
reportResults
1 change: 1 addition & 0 deletions test/apt/install_ffmpeg/Aptfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ffmpeg
5 changes: 5 additions & 0 deletions test/apt/install_ffmpeg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Builds an image with a preconfigured SUDOERS file
# Used to test the install script for JupyterLab which modifies this file
FROM mcr.microsoft.com/devcontainers/base:debian

COPY --chown=vscode Aptfile.dev /tmp/dev-container-features/apt_0/Aptfile.dev
14 changes: 14 additions & 0 deletions test/apt/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"install_ffmpeg": {
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "vscode",
"features": {
"apt": {
"version": "1",
"devFile": "Aptfile.dev"
}
}
}
}
3 changes: 3 additions & 0 deletions test/apt/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

set -e

0 comments on commit c0b1912

Please sign in to comment.