Skip to content

Commit 3848c53

Browse files
committed
[CHANGE] Added scripts for manual testing
1 parent 8ae8df6 commit 3848c53

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

bin/test_autogenerated

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o nounset
6+
7+
SCRIPT_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
8+
BASE_PATH=$( cd -- "$( dirname -- "${SCRIPT_PATH}" )" &> /dev/null && pwd )
9+
10+
BASE_IMAGE="${BASE_IMAGE:-mcr.microsoft.com/devcontainers/base:ubuntu}"
11+
12+
PARAM_FEATURES=
13+
14+
if [ $# -gt 0 ]; then
15+
PARAM_FEATURES="--features $@"
16+
fi
17+
18+
cd $BASE_PATH
19+
20+
devcontainer features test --skip-scenarios --skip-duplicated $PARAM_FEATURES --base-image $BASE_IMAGE .

bin/test_scenarios

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o nounset
6+
7+
SCRIPT_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
8+
BASE_PATH=$( cd -- "$( dirname -- "${SCRIPT_PATH}" )" &> /dev/null && pwd )
9+
10+
BASE_IMAGE="${BASE_IMAGE:-mcr.microsoft.com/devcontainers/base:ubuntu}"
11+
12+
PARAM_FEATURES=
13+
14+
if [ $# -gt 0 ]; then
15+
PARAM_FEATURES="--features $@"
16+
fi
17+
18+
cd $BASE_PATH
19+
20+
devcontainer features test --skip-autogenerated --skip-duplicated $PARAM_FEATURES .

0 commit comments

Comments
 (0)