Skip to content

Commit

Permalink
test: add basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed May 12, 2024
1 parent 2307dde commit a8a3e57
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/r-dependent-packages/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Package: foo
Version: 0.0.0.9000
Suggests:
curl
12 changes: 12 additions & 0 deletions test/r-dependent-packages/r-ver-default.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e

# Optional: Import test library bundled with the devcontainer CLI
source dev-container-features-test-lib

# Feature-specific tests
check "R cli package" R -q -e 'names(installed.packages()[, 3])' | grep curl

# Report result
reportResults
8 changes: 8 additions & 0 deletions test/r-dependent-packages/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"r-ver-default": {
"image": "rocker/r-ver:4",
"features": {
"r-dependent-packages": {}
}
}
}

0 comments on commit a8a3e57

Please sign in to comment.