Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kboshold committed Jul 31, 2024
1 parent 56fc6d5 commit e3bd959
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/neovim-source/install_neovim_bookworm_0_9.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

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

# Feature-specific tests
check "Version starts with '0.9.'" bash -c "nvim -v | head -n1 | grep -q '^NVIM v0.9.' && exit 0 || exit 1"

# Report results
reportResults
11 changes: 11 additions & 0 deletions test/neovim-source/install_neovim_bookworm_stable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

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

# Feature-specific tests
check "version" nvim --version

# Report results
reportResults
10 changes: 10 additions & 0 deletions test/neovim-source/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"install_neovim_bookworm_stable": {
"image": "mcr.microsoft.com/devcontainers/base:1-bookworm",
"features": {
"neovim-source": {
"version": "stable"
}
}
}
}
11 changes: 11 additions & 0 deletions test/neovim-source/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

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

# Feature-specific tests
check "version" nvim --version

# Report results
reportResults

0 comments on commit e3bd959

Please sign in to comment.