aboutsummaryrefslogtreecommitdiff
path: root/tests/SConscript
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-11-01 15:10:51 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:45 +0000
commit01bbd5fd0af0847ac847c78c7064b3c9810a924a (patch)
tree3517e6808ab8f38504717e6a4e423f5caa89cb55 /tests/SConscript
parent645e837316a8e12eb1d48f1b9ca7eeb607c21bfc (diff)
downloadComputeLibrary-01bbd5fd0af0847ac847c78c7064b3c9810a924a.tar.gz
COMPMID-1737: Add support for install_dir
Note: Only ComputeLibrary files get copied over (Stub CL / GLES drivers don't, nor are the 3rdparty includes) utils/ files are not copied either (They're not part of the core library) Change-Id: I55e01c0ba4a5f7e649877fcdd11fdb0a51071b18 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/156339 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: bsgcomp <bsgcomp@arm.com>
Diffstat (limited to 'tests/SConscript')
-rw-r--r--tests/SConscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/SConscript b/tests/SConscript
index 2e265a13ce..ac826f848d 100644
--- a/tests/SConscript
+++ b/tests/SConscript
@@ -24,6 +24,7 @@ import os.path
Import('env')
Import('vars')
+Import('install_bin')
SConscript('./framework/SConscript', duplicate=0)
@@ -128,6 +129,7 @@ else:
if test_env['benchmark_tests']:
arm_compute_benchmark = test_env.Program('arm_compute_benchmark', files_benchmark + common_objects)
+ arm_compute_benchmark = install_bin(arm_compute_benchmark)
Depends(arm_compute_benchmark, arm_compute_test_framework)
Depends(arm_compute_benchmark, arm_compute_lib)
Default(arm_compute_benchmark)
@@ -139,6 +141,7 @@ if test_env['validation_tests']:
Depends(arm_compute_validation_framework , arm_compute_core_a)
arm_compute_validation = test_env.Program('arm_compute_validation', files_validation + common_objects, LIBS=[arm_compute_validation_framework] + test_env['LIBS'])
+ arm_compute_validation = install_bin(arm_compute_validation)
Depends(arm_compute_validation, arm_compute_validation_framework)
Depends(arm_compute_validation, arm_compute_test_framework)
Depends(arm_compute_validation, arm_compute_lib)
@@ -174,6 +177,7 @@ if test_env['validation_tests']:
#-Wl,--allow-shlib-undefined: Ignore dependencies of dependencies
prog = test_env.Program(example, [ test_env.Object(source=file, target=example), graph_utils]+ files_validate_examples, LIBS = test_env["LIBS"] + ["arm_compute_graph", arm_compute_validation_framework], LINKFLAGS=test_env["LINKFLAGS"]+['-Wl,--allow-shlib-undefined'] )
arm_compute_validate_examples += [ prog ]
+ arm_compute_validate_examples = install_bin(arm_compute_validate_examples)
Depends(arm_compute_validate_examples, arm_compute_validation_framework)
Depends(arm_compute_validate_examples, arm_compute_test_framework)
Depends(arm_compute_validate_examples, arm_compute_lib)
@@ -211,6 +215,7 @@ if test_env['benchmark_examples']:
#-Wl,--allow-shlib-undefined: Ignore dependencies of dependencies
prog = test_env.Program(example, [ test_env.Object(source=file, target=example), graph_utils, graph_params]+ files_benchmark_examples, LIBS = test_env["LIBS"] + ["arm_compute_graph"], LINKFLAGS=test_env["LINKFLAGS"]+['-Wl,--allow-shlib-undefined'] )
arm_compute_benchmark_examples += [ prog ]
+ arm_compute_benchmark_examples = install_bin(arm_compute_benchmark_examples)
Depends(arm_compute_benchmark_examples, arm_compute_test_framework)
Depends(arm_compute_benchmark_examples, arm_compute_lib)
Default(arm_compute_benchmark_examples)