github.com/singularityware/singularity@v3.1.1+incompatible/etc/actions/test (about) 1 #!/bin/sh 2 3 for script in /.singularity.d/env/*.sh; do 4 if [ -f "$script" ]; then 5 . "$script" 6 fi 7 done 8 9 10 if test -n "${SINGULARITY_APPNAME:-}"; then 11 12 if test -x "/scif/apps/${SINGULARITY_APPNAME:-}/scif/test"; then 13 exec "/scif/apps/${SINGULARITY_APPNAME:-}/scif/test" "$@" 14 else 15 echo "No Singularity tests for contained app: ${SINGULARITY_APPNAME:-}" 16 exit 1 17 fi 18 elif test -x "/.singularity.d/test"; then 19 exec "/.singularity.d/test" "$@" 20 else 21 echo "No Singularity container test found, executing /bin/sh" 22 exec /bin/sh "$@" 23 fi