apptainer test
linux
Run the testscript defined in an Apptainer container image. The testscript is defined in the `%test` section of the container's definition file.
More info →Options (3)
-B, --bindbooleanRun the testscript with a bind mount from host to container
Example:
apptainer test {{[-B|--bind]}} {{path/to/source}}:{{path/to/destination}} {{path/to/image.sif}}-C, --containallbooleanRun the testscript in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
Example:
apptainer test {{[-C|--containall]}} {{path/to/image.sif}}-h, --helpbooleanDisplay help
Example:
apptainer test {{[-h|--help]}}Examples (6)
Run the testscript of a container
apptainer test path/to/image.sifRun the testscript with a bind mount from host to container
apptainer test [-B|--bind] path/to/source:path/to/destination path/to/image.sifRun the testscript in fully isolated mode (contained filesystem, PID, IPC, and clean environment)
apptainer test [-C|--containall] path/to/image.sifRun the testscript with a writable temporary filesystem overlay
apptainer test --writable-tmpfs path/to/image.sifRun the testscript for a specific app within a container
apptainer test --app app_name path/to/image.sifDisplay help
apptainer test [-h|--help]made by @shridhargupta | data from tldr-pages