aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/SConstruct37
1 files changed, 21 insertions, 16 deletions
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct
index d07b17d..d06b5b6 100644
--- a/linden/indra/SConstruct
+++ b/linden/indra/SConstruct
@@ -91,11 +91,12 @@ opts.AddOptions(
91 BoolOption('GSTREAMER', 'Enabled GStreamer support', True), 91 BoolOption('GSTREAMER', 'Enabled GStreamer support', True),
92 BoolOption('COLORGCC', 'Enabled colorgcc', True), 92 BoolOption('COLORGCC', 'Enabled colorgcc', True),
93 EnumOption('GRID', 'Client package\'s default grid', 'default', 93 EnumOption('GRID', 'Client package\'s default grid', 'default',
94 allowed_values=('default', 'aditi', 'agni', 'dmz', 'durga', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak', 'yami')), 94 allowed_values=('default', 'aditi', 'agni', 'durga', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak', 'yami')),
95 EnumOption('CHANNEL', 'Client package\'s default channel', 'Release', 95 EnumOption('CHANNEL', 'Client package\'s default channel', 'Release',
96 allowed_values=('Release', 'Release Candidate', 'WindLight')), 96 allowed_values=('Release', 'Release Candidate', 'WindLight')),
97 BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True), 97 BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True),
98 BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), 98 BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False),
99 BoolOption('RUNTESTS', 'Run tests at end of compilation', True),
99 BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line 100 BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line
100) 101)
101optenv = Environment(options = opts) 102optenv = Environment(options = opts)
@@ -111,6 +112,7 @@ enable_colorgcc = optenv['COLORGCC']
111grid = optenv['GRID'] 112grid = optenv['GRID']
112channel = optenv['CHANNEL'] 113channel = optenv['CHANNEL']
113standalone = optenv['STANDALONE'] 114standalone = optenv['STANDALONE']
115runtests = optenv['RUNTESTS']
114opensource = standalone or optenv['OPENSOURCE'] 116opensource = standalone or optenv['OPENSOURCE']
115enable_fmod = not opensource and optenv['FMOD'] 117enable_fmod = not opensource and optenv['FMOD']
116elfio = optenv['ELFIO'] 118elfio = optenv['ELFIO']
@@ -811,21 +813,24 @@ for build_target in targets:
811 internal_libs + external_libs) 813 internal_libs + external_libs)
812 814
813 # Run tests 815 # Run tests
814 test_results_file = 'test/test_results' + file_suffix + '.txt' 816 if runtests:
815 env.Command(test_results_file, 817 test_results_file = 'test/test_results' + file_suffix + '.txt'
816 test_executable, 818 env.Command(test_results_file,
817 "$SOURCE 2>&1") # tee masks segfaults 819 test_executable,
818 Depends(test_results_file, test_executable) 820 "$SOURCE 2>&1") # tee masks segfaults
819 Default(test_results_file) 821 Depends(test_results_file, test_executable)
820 822 Default(test_results_file)
821 test_script = 'test/test.py' 823
822 script_test_results = 'test/script_test_result' + file_suffix + '.txt' 824 test_script = 'test/test.py'
823 env.Command(script_test_results, 825 script_test_results = 'test/script_test_result' + file_suffix + '.txt'
824 test_script, 826 env.Command(script_test_results,
825 "$SOURCE 2>&1") # tee masks segfaults 827 test_script,
826 828 "$SOURCE 2>&1") # tee masks segfaults
827 Depends(script_test_results, test_results_file) 829
828 Default(script_test_results) 830 Depends(script_test_results, test_results_file)
831 Default(script_test_results)
832 else:
833 print '============= SKIPPING TESTS ============='
829 834
830######### 835#########
831# DONE # 836# DONE #