Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/SConscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright (c) 2017-2025 Arm Limited.
# Copyright (c) 2017-2026 Arm Limited.
#
# SPDX-License-Identifier: MIT
#
Expand Down Expand Up @@ -65,8 +65,9 @@ if not build_test_framework:
else:
SConscript('./framework/SConscript', duplicate=0)

Import("arm_compute_test_framework")
test_env.Append(LIBS = arm_compute_test_framework)
if test_env['validation_tests'] or test_env['benchmark_tests'] or test_env['benchmark_examples'] or test_env['profile']:
Import("arm_compute_test_framework")
test_env.Append(LIBS = arm_compute_test_framework)

# Disable floating-point expression contraction (e.g. fused multiply-add operations)
if not 'windows' in env['os']:
Expand Down
9 changes: 5 additions & 4 deletions tests/framework/SConscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Copyright (c) 2017-2022, 2024 Arm Limited.
# Copyright (c) 2017-2022, 2024, 2026 Arm Limited.
#
# SPDX-License-Identifier: MIT
#
Expand Down Expand Up @@ -95,7 +95,8 @@ if framework_env['HOST_OS'] == 'posix':
#Set up directory for temp files. To prevent permission issue, the temp files are in the same directory with output files
framework_env['TEMPFILEDIR'] = framework_env['build_dir']

arm_compute_test_framework = framework_env.StaticLibrary('arm_compute_test_framework', files)
if framework_env['validation_tests'] or framework_env['benchmark_tests'] or framework_env['benchmark_examples'] or framework_env['profile']:
arm_compute_test_framework = framework_env.StaticLibrary('arm_compute_test_framework', files)

Default(arm_compute_test_framework)
Export('arm_compute_test_framework')
Default(arm_compute_test_framework)
Export('arm_compute_test_framework')