Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ import sys
|
||||
# To generate a baseline file, run this script with "--generate-baseline".
|
||||
|
||||
WREN_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
BENCHMARK_DIR = os.path.join(WREN_DIR, 'benchmark')
|
||||
BENCHMARK_DIR = os.path.join(WREN_DIR, 'test', 'benchmark')
|
||||
|
||||
# How many times to run a given benchmark.
|
||||
NUM_TRIALS = 10
|
||||
|
||||
+3
-2
@@ -11,7 +11,6 @@ import sys
|
||||
|
||||
# Runs the tests.
|
||||
WREN_DIR = dirname(dirname(realpath(__file__)))
|
||||
TEST_DIR = join(WREN_DIR, 'test')
|
||||
WREN_APP = join(WREN_DIR, 'bin', 'wrend')
|
||||
|
||||
EXPECT_PATTERN = re.compile(r'// expect: (.*)')
|
||||
@@ -243,7 +242,9 @@ def run_test(path):
|
||||
print(' ' + color.PINK + fail + color.DEFAULT)
|
||||
print('')
|
||||
|
||||
walk(TEST_DIR, run_test)
|
||||
|
||||
for dir in ['core', 'io', 'language', 'limit']:
|
||||
walk(join(WREN_DIR, 'test', dir), run_test)
|
||||
|
||||
print_line()
|
||||
if failed == 0:
|
||||
|
||||
Reference in New Issue
Block a user