-
Notifications
You must be signed in to change notification settings - Fork 62
python3.10-http-server: Add test scripts #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
elisaarghir
wants to merge
2
commits into
unikraft:test
Choose a base branch
from
elisaarghir:test-python3.10
base: test
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Scripts for Python3.10-http-server on Unikraft | ||
|
|
||
| These are companions instruction to the main instructions in the [`README`](README.md). | ||
|
|
||
| Use scripts as quick actions for building and running Python3.10-http-server on Unikraft. | ||
|
|
||
| **Note**: Run scripts from the application directory. | ||
|
|
||
| ## Build for <plat> / <arch>: | ||
|
|
||
| ```console | ||
| ./scripts/build/<plat>.<arch> | ||
| ``` | ||
|
|
||
| e.g.: | ||
|
|
||
| ```console | ||
| ./scripts/build/qemu.x86_64 | ||
| ./scripts/build/qemu.arm64 | ||
| ./scripts/build/fc.x86_64 | ||
| ./scripts/build/xen.arm64 | ||
| ``` | ||
|
|
||
| ## Build for <plat> / <arch> using a different compiler | ||
|
|
||
| ```console | ||
| CC=/path/to/compiler ./scripts/build/<plat>.<arch> | ||
| ``` | ||
|
|
||
| e.g. | ||
|
|
||
| ```console | ||
| CC=/usr/bin/gcc-12 ./scripts/build/qemu.x86_64 | ||
| CC=/usr/bin/aarch64-linux-gnu-gcc-12 ./scripts/build/qemu.arm64 | ||
| CC=/usr/bin/clang ./scripts/build/qemu.x86_64 | ||
| CC=/usr/bin/clang ./scripts/build/qemu.arm64 | ||
| CC=/usr/bin/gcc-12 ./scripts/build/fc.x86_64 | ||
| CC=/usr/bin/aarch64-linux-gnu-gcc-12 ./scripts/build/fc.arm64 | ||
| CC=/usr/bin/clang ./scripts/build/fc.x86_64 | ||
| CC=/usr/bin/clang ./scripts/build/fc.arm64 | ||
| ``` | ||
|
|
||
| ## Run on <plat> / <arch> | ||
|
|
||
| ```console | ||
| ./scripts/run/<plat>.<arch> | ||
| ``` | ||
|
|
||
| e.g. | ||
|
|
||
| ```console | ||
| ./scripts/run/qemu.x86_64 | ||
| ./scripts/run/qemu.arm64 | ||
| ./scripts/run/fc.x86_64 | ||
| ./scripts/run/xen.arm64 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/fc.arm64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/fc.x86_64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/qemu.arm64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/qemu.x86_64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/xen.arm64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
|
||
| make distclean | ||
| UK_DEFCONFIG=$(pwd)/scripts/defconfig/xen.x86_64 make defconfig | ||
| touch Makefile.uk | ||
| make prepare | ||
| if test -z "$CC"; then | ||
| make -j $(nproc) | ||
| else | ||
| make CC="$CC" -j $(nproc) | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CONFIG_ARCH_ARM64=y | ||
| CONFIG_PLAT_FC=y | ||
| CONFIG_APPPYHTON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| CONFIG_ARCH_X86_64=y | ||
| CONFIG_PLAT_KVM=y | ||
| CONFIG_KVM_PLAT_FC=y | ||
| CONFIG_APPPYTHON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CONFIG_ARCH_ARM64=y | ||
| CONFIG_PLAT_KVM=y | ||
| CONFIG_APPPYTHON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CONFIG_ARCH_X86_64=y | ||
| CONFIG_PLAT_KVM=y | ||
| CONFIG_APPPYTHON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CONFIG_ARCH_ARM64=y | ||
| CONFIG_PLAT_XEN=y | ||
| CONFIG_APP_PYHTON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CONFIG_ARCH_X86_64=y | ||
| CONFIG_PLAT_XEN=y | ||
| CONFIG_APP_PYHTON3_HTTP_SERVER=y | ||
| CONFIG_LIBPYTHON3=y | ||
| CONFIG_LIBPYTHON3_MAIN_FUNCTION=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB=y | ||
| CONFIG_LIBPOSIX_VFS_FSTAB_BUILTIN_RAMFS=y | ||
| CONFIG_LIBRAMFS=y | ||
| CONFIG_LIBUKCPIO=y | ||
| CONFIG_LIBLWIP=y | ||
| CONFIG_LIBUKRANDOM=y | ||
| CONFIG_LIBUKRANDOM_GETRANDOM=y | ||
| CONFIG_STACK_SIZE_PAGE_ORDER=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_fc-arm64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_fc-arm64." 1>&2 | ||
| echo "Did you run ./build.fc.arm64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| # Remove previously created files. | ||
| rm -f firecracker.socket | ||
|
|
||
| firecracker-aarch64 \ | ||
| --api-sock firecracker.socket \ | ||
| --config-file fc.arm64.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_fc-x86_64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_fc-x86_64." 1>&2 | ||
| echo "Did you run ./build.fc.x86_64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| # Remove previously created files. | ||
| rm -f firecracker.socket | ||
|
|
||
| firecracker-x86_64 \ | ||
| --api-sock firecracker.socket \ | ||
| --config-file fc.x86_64.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_qemu-arm64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_qemu-arm64." 1>&2 | ||
| echo "Did you run ./build.qemu.arm64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| qemu-system-aarch64 \ | ||
| -machine virt -cpu max \ | ||
| -m 256M \ | ||
| -nographic \ | ||
| -netdev user,id=net0,hostfwd=tcp:127.0.0.1:18080-:8080 \ | ||
| -device virtio-net-device,netdev=net0 \ | ||
| -kernel workdir/build/python3.10-http-server_qemu-arm64 \ | ||
| -initrd ./initrd.cpio \ | ||
| -append 'rootfstype=ramfs console=ttyAMA0 \ | ||
| vfs.fstab=["initrd0:/:extract::ramfs=1"] \ | ||
| env.vars=[PYTHONHOME="/usr/local/lib/python3.10" PYTHONPATH="/usr/local/lib/python3.10"] \ | ||
| -- /app/http-server.py' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_qemu-x86_64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_qemu-x86_64." 1>&2 | ||
| echo "Did you run ./build.qemu.x86_64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| qemu-system-x86_64 \ | ||
| -machine accel=tcg -cpu max \ | ||
| -m 256M \ | ||
| -nographic \ | ||
| -netdev user,id=net0,hostfwd=tcp:127.0.0.1:8080-:8080 \ | ||
| -device virtio-net-pci,netdev=net0 \ | ||
| -kernel workdir/build/python3.10-http-server_qemu-x86_64 \ | ||
| -initrd ./initrd.cpio \ | ||
| -append 'rootfstype=ramfs console=ttyS0 \ | ||
| vfs.fstab=["initrd0:/:extract::ramfs=1"] \ | ||
| env.vars=[PYTHONHOME="/usr/local/lib/python3.10" PYTHONPATH="/usr/local/lib/python3.10"] \ | ||
| -- /app/http-server.py' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_xen-arm64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_xen-arm64." 1>&2 | ||
| echo "Did you run ./build.xen.arm64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| sudo xl create -c xen.arm64.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/sh | ||
|
|
||
| if test ! -f "workdir/build/python3.10-http-server_xen-x86_64"; then | ||
| echo "No kernel file workdir/build/python3.10-http-server_xen-x86_64." 1>&2 | ||
| echo "Did you run ./build.xen.x86_64 ?" 1>&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Generate root filesystem from Dockerfile. | ||
| rm -fr ./rootfs | ||
| docker build -o ./rootfs -f Dockerfile . | ||
|
|
||
| # Pack filesystem as an initial ramdisk CPIO file. | ||
| rm -f initrd.cpio | ||
| ../repos/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/ | ||
|
|
||
| sudo xl create -c xen.x86_64.cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /log/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Testing Python3.10 Http Server on Unikraft | ||
|
|
||
| These are companion instructions to the main instructions in the [`README`](../../README.md) and to the scripted run instructions in the [`scripts/README`](../README.md). | ||
| Use these scripts to test Python3.10 Http Server on Unikraft. | ||
|
|
||
| **Note**: Run scripts from the application directory. | ||
|
|
||
| Use the `all.sh` script to test all builds and all available runs: | ||
|
|
||
| ```console | ||
| ./scripts/test/all.sh | ||
| ``` | ||
|
|
||
| The command prints out a summary of the passed or failed tests. | ||
|
|
||
| Logs are stored in the `./scripts/test/log/` directory. | ||
|
|
||
| Use the `single.sh` script to only run a query test for a running instance. | ||
| That is, first run the instance, e.g: | ||
|
|
||
| ```console | ||
| ./scripts/run/qemu.x86_64 | ||
| ``` | ||
|
|
||
| And then query it with the `single.sh` script: | ||
|
|
||
| ```console | ||
| ./single.sh | ||
| ``` | ||
|
|
||
| The command prints out the output of the commands that query the instance. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include the path from the application directory:
Running
single.shfrom thetestdrectory will fail because it will not find the auxiliary scriptcommon.sh, it uses a relative path.