renamed the package to libgedcom-dev
[gedcom-parse.git] / t / set_testenv
1 # Use this script to set certain test environments, as follows:
2 #  . set_testenv valgrind
3 #  . set_testenv ddd
4 # To clear the test environment:
5 #  . set_testenv
6 # To show the test environment:
7 #  . set_testenv print
8
9 testenv=$1
10
11 case "$testenv" in
12   valgrind)
13     echo "Setting test environment for valgrind"
14     export GEDCOM_TESTENV='valgrind --leak-check=yes --show-reachable=yes --num-callers=20'
15     unset  GEDCOM_NOOPTS ;;
16
17   ddd)
18     echo "Setting test environment for ddd"
19     export GEDCOM_TESTENV='ddd'
20     export GEDCOM_NOOPTS=1 ;;
21
22   print)
23     echo "GEDCOM_TESTENV='$GEDCOM_TESTENV'"
24     echo "GEDCOM_NOOPTS=$GEDCOM_NOOPTS" ;;
25
26   "")
27     echo "Clearing test environment"
28     unset GEDCOM_TESTENV
29     unset GEDCOM_NOOPTS ;;
30
31   *)
32     echo "Unknown test environment: $testenv" ;;
33 esac