mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
24 lines
469 B
Bash
Executable file
24 lines
469 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# author: Ole Schuett
|
|
|
|
if (($# < 1)); then
|
|
echo "usage: run_test.sh <test_name> [additional-docker-run-args]"
|
|
echo "example: run_test.sh python"
|
|
exit 1
|
|
fi
|
|
|
|
set -e
|
|
TESTNAME=$1
|
|
shift
|
|
echo "Running ${TESTNAME} ..."
|
|
|
|
CP2K_LOCAL=$(realpath ../../)
|
|
set -x
|
|
|
|
# SYS_PTRACE needed by LeakSanitizer.
|
|
${DOCKER:-docker} run -i --init --rm --cap-add=SYS_PTRACE --shm-size=1g \
|
|
--volume "${CP2K_LOCAL}:/mnt/cp2k/:ro" \
|
|
"$@" "img_cp2k_test_${TESTNAME}"
|
|
|
|
#EOF
|