diff --git a/library/bun b/library/bun new file mode 100644 index 00000000000000..1d3c55531e8732 --- /dev/null +++ b/library/bun @@ -0,0 +1,14 @@ +Maintainers: Jarred Sumner (@Jarred-Sumner), + Ashcon Partovi (@Electroid) + +GitRepo: https://github.com/oven-sh/bun.git +GitFetch: refs/heads/main +GitCommit: 37293cb26a8239d4f387218a1fdadc522787835f + +Tags: latest, debian, 0.5.7, 0.5.7-debian, 0.5, 0.5-debian +Architectures: amd64, arm64v8 +Directory: dockerhub/debian + +Tags: debian-slim, 0.5.7-debian-slim, 0.5-debian-slim +Architectures: amd64, arm64v8 +Directory: dockerhub/debian-slim diff --git a/test/tests/bun-hello-world/container.js b/test/tests/bun-hello-world/container.js new file mode 100644 index 00000000000000..d4285704dbcc65 --- /dev/null +++ b/test/tests/bun-hello-world/container.js @@ -0,0 +1 @@ +console.log("Hello from Bun!"); diff --git a/test/tests/bun-hello-world/expected-std-out.txt b/test/tests/bun-hello-world/expected-std-out.txt new file mode 100644 index 00000000000000..c8acdff0d2489d --- /dev/null +++ b/test/tests/bun-hello-world/expected-std-out.txt @@ -0,0 +1 @@ +Hello from Bun! diff --git a/test/tests/bun-hello-world/run.sh b/test/tests/bun-hello-world/run.sh new file mode 120000 index 00000000000000..25097a4d71ca73 --- /dev/null +++ b/test/tests/bun-hello-world/run.sh @@ -0,0 +1 @@ +../run-node-in-container.sh \ No newline at end of file diff --git a/test/tests/run-bun-in-container.sh b/test/tests/run-bun-in-container.sh new file mode 100755 index 00000000000000..ceb1e4b0c2de21 --- /dev/null +++ b/test/tests/run-bun-in-container.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")" +runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")" + +source "$runDir/run-in-container.sh" "$testDir" "$1" bun ./container.js diff --git a/test/tests/run-node-in-container.sh b/test/tests/run-node-in-container.sh index 5b38ec5db22822..ceb1e4b0c2de21 100755 --- a/test/tests/run-node-in-container.sh +++ b/test/tests/run-node-in-container.sh @@ -4,4 +4,4 @@ set -e testDir="$(readlink -f "$(dirname "$BASH_SOURCE")")" runDir="$(dirname "$(readlink -f "$BASH_SOURCE")")" -source "$runDir/run-in-container.sh" "$testDir" "$1" node ./container.js +source "$runDir/run-in-container.sh" "$testDir" "$1" bun ./container.js