https://github.com/adc-connect/adcc
Raw File
Tip revision: 25e247a23cfcc06667dd404e79827a56be75c307 authored by Michael F. Herbst on 13 March 2020, 18:18:57 UTC
Bump version: 0.14.1 → 0.14.2
Tip revision: 25e247a
run_tests.sh
#!/bin/bash

PYDIR="adcc"

if [ ! -d "$PYDIR" ]; then
	echo "Could not find python adcc module directory $PYDIR" >&2
	exit 1
fi

PART="$1"
shift

echo "Notice: This script is poorly maintained. It should be replaced by setup.py stuff."
if [ "$PART" == "gdb_pytest" ]; then
	gdb --tui --ex "catch throw" --ex run --args python3 -m pytest "$PYDIR" "$@"
elif [ "$PART" == "valgrind_pytest" ]; then
	valgrind python3 -m pytest "$PYDIR" "$@"
	echo "Unknown part: $PART, known are: gdb_pytest valgrind_pytest" >&2
	exit 1
fi
back to top