build: Remove valgrind support

I never actually used this.  Testing with valgrind should happen
manually if needed.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-01-02 10:31:32 -05:00
parent 694d3f0316
commit a371e832dd
2 changed files with 1 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import os
# Configuration variables
CONFIG_VERSION = "6.3"
CONFIG_DEBUG = True
CONFIG_TEST_VALGRIND = False
# Set up default environment
@ -15,7 +14,6 @@ if CONFIG_DEBUG == True:
class OEnvironment(Environment):
Debug = False
Version = 0
Valgrind = False
def __init__(self, CCFLAGS = CONFIG_CCFLAGS):
Environment.__init__(self, CCFLAGS = CCFLAGS)
@ -25,7 +23,6 @@ class OEnvironment(Environment):
self.Append(LINKCOMSTR = "Linking $TARGET")
self.Debug = CONFIG_DEBUG
self.Version = CONFIG_VERSION
self.Valgrind = CONFIG_TEST_VALGRIND
def UsePackage(self, name):
self.ParseConfig("pkg-config --cflags --libs %s" % name)

View File

@ -4,9 +4,6 @@ Import("test_env")
test_env.DEBUG = True
valgrind = ""
if test_env.Valgrind == True:
valgrind = "valgrind -q --error-exitcode=42"
res = []
def all_tests_enabled(dir):
@ -32,8 +29,6 @@ def get_test_obj(name, dir):
return None
def generic_test(name, dir, objs, extra):
global valgrind
obj = get_test_obj(name, dir)
test_objs = extra
if obj != None:
@ -41,7 +36,7 @@ def generic_test(name, dir, objs, extra):
test_objs = extra + objs
exe = test_env.Program(name, [ "%s.cpp" % name ] + test_objs)
test = Command("%s.fake" % name, [], "%s tests/%s/%s" % (valgrind, dir, name))
test = Command("%s.fake" % name, [], "tests/%s/%s" % (dir, name))
Alias("tests/%s/%s" % (dir, name), test)
Depends(test, exe)