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 :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

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'
else:
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:
open(str(target[0]),'w').write("PASS\n")
else:
open(str(target[0]),'w').write("FAIL\n")
......
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