Skip to content

Commit 4d682a2

Browse files
Add installer test for Amazon Linux 2023 (#325)
1 parent da59efb commit 4d682a2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/test-install-on-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -eu
44

55
docker_image="${1}"
66

7-
docker run --pull=always -e OBS_PROJECT="${OBS_PROJECT:-}" -e CRYSTAL_VERSION="${CRYSTAL_VERSION:-}" --rm -v $(pwd)/scripts:/scripts -v $(pwd)/support:/support $docker_image /bin/sh -c "/support/test-install.sh ${@:2}"
7+
docker run --pull=always -e OBS_PROJECT="${OBS_PROJECT:-}" -e CRYSTAL_VERSION="${CRYSTAL_VERSION:-}" --rm -v $(pwd)/scripts:/scripts -v $(pwd)/support:/support -w / --entrypoint /bin/sh $docker_image -c "/support/test-install.sh ${@:2}"

packages/test/amazon.bats

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bats
2+
3+
@test "Amazon Linux 2023" {
4+
./test-install-on-docker.sh amazonlinux:2023
5+
}
6+
7+
# This image is stripped down and only comes with microdnf
8+
@test "Amazon Linux 2023 Lambda" {
9+
./test-install-on-docker.sh public.ecr.aws/lambda/provided:al2023
10+
}

0 commit comments

Comments
 (0)