Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :

Commit b38f526e authored by Ludovic Courtès's avatar Ludovic Courtès

tests: Add '.exe' extension to executable file names on Windows.

parent a4a6bc31
import os
import os, sys
Import('env', 'ALTA_LIBS')
env = env.Clone()
......@@ -14,13 +14,20 @@ env.Alias('tests', env.Program('./build/data-io-test', 'data-io.cpp'))
test_file = File('Kirby2.dat').srcnode().abspath
test_data_directory = os.path.dirname(test_file)
def executable(file):
'''Append '.exe' to FILE if needed.'''
if sys.platform.startswith('win'):
return file + '.exe'
return file
# Inspired by <http://www.scons.org/wiki/UnitTests>.
def run_unit_test(env, target, source):
program = str(source[0].abspath)
envvars = os.environ
envvars['TEST_DATA_DIRECTORY'] = test_data_directory
if os.spawnle(os.P_WAIT, program, program, envvars) == 0:
if os.spawnle(os.P_WAIT, executable(program), program, envvars) == 0:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment