ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/SConscript
Revision: 1.2
Committed: Thu Mar 10 01:49:56 2016 UTC (8 years, 2 months ago) by schorsch
Branch: MAIN
Changes since 1.1: +5 -5 lines
Log Message:
SCons build system learns about platform architecture

File Contents

# User Rev Content
1 schorsch 1.1 # -*- coding: latin-1 -*-
2     import os
3     import sys
4     import run_all
5    
6     Import('env')
7    
8     def run_tests(target=None,source=None,env=None):
9     try:
10     oldenv = env['ENV']
11     ray = os.getcwd()
12 schorsch 1.2 bin = Dir(env['RAD_BUILDBIN']).get_abspath()
13     lib = Dir(env['RAD_BUILDLIB']).get_abspath()
14    
15 schorsch 1.1 test = os.path.join(ray, 'test')
16     if not test in sys.path:
17     sys.path.append(test)
18     oldpath = oldenv.get('PATH')
19 schorsch 1.2 #print oldpath
20 schorsch 1.1 newpath = os.pathsep.join((bin, oldpath))
21     newenv = {'PATH' : newpath, 'RAYPATH':lib }
22     env['ENV'] = newenv
23 schorsch 1.2 run_all.main(bindir=bin)
24 schorsch 1.1 finally:
25     env['ENV'] = oldenv
26    
27    
28     env.Command(None,'run_all.py',action=Action(run_tests))