tests: Enable glibc malloc debugging features in testsuite.
[cascardo/ovs.git] / tests / atlocal.in
1 # -*- shell-script -*-
2 HAVE_OPENSSL='@HAVE_OPENSSL@'
3 HAVE_PYTHON='@HAVE_PYTHON@'
4 PERL='@PERL@'
5
6 if test x"$PYTHON" = x; then
7     PYTHON='@PYTHON@'
8 fi
9
10 PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
11 export PYTHONPATH
12
13 PYTHONIOENCODING=utf_8
14 export PYTHONIOENCODING
15
16 # PYTHONDONTWRITEBYTECODE=yes keeps Python 2.6+ from creating .pyc and .pyo
17 # files.  Creating .py[co] works OK for any given version of Open
18 # vSwitch, but it causes trouble if you switch from a version with
19 # foo/__init__.py into an (older) version with plain foo.py, since
20 # foo/__init__.pyc will cause Python to ignore foo.py.
21 #
22 # Python before version 2.6 always creates .pyc files, so if you develop
23 # with such an older version then you're out of luck.
24 PYTHONDONTWRITEBYTECODE=yes
25 export PYTHONDONTWRITEBYTECODE
26
27 if test $HAVE_PYTHON = yes; then
28     if python -m argparse 2>/dev/null; then
29         :
30     else
31         PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat
32         export PYTHONPATH
33     fi
34 fi
35
36 # Enable glibc malloc debugging features.
37 MALLOC_CHECK_=2
38 MALLOC_PERTURB_=165
39 export MALLOC_CHECK_
40 export MALLOC_PERTURB_