packaging: Disable dumpsys test during building ASAN 02/317802/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20250108.170434 accepted/tizen/unified/x/20250109.095246 accepted/tizen/unified/x/asan/20250113.002258
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 8 Jan 2025 05:55:18 +0000 (14:55 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 8 Jan 2025 06:13:45 +0000 (15:13 +0900)
Current ASAN base is using QEMU 9.2. There is a known issue about
O_LARGEFILE
- Refer : https://gitlab.com/qemu-project/qemu/-/commit/741df485e8aec3f509a4e26c975e4cdc94239c88

So it's always failing during building ASAN with QEMU 9.2.
ASAN doesn't need to check unittest at building time.
Do disable unittest if asan is defined.

[   97s] Test project /home/abuild/rpmbuild/BUILD/dumpsys-2.0.16/tests
[   97s]     Start 1: test_dumpsys_client_user_api
[   97s] 1/4 Test #1: test_dumpsys_client_user_api .....   Passed    0.14 sec
[   97s]     Start 2: test_dumpsys_service
[   98s] 2/4 Test #2: test_dumpsys_service .............***Failed    0.22 sec
[   98s]     Start 3: test_dumpsys_client_system_api
[   98s] 3/4 Test #3: test_dumpsys_client_system_api ...   Passed    0.17 sec

Change-Id: I2745033fdb06656dfffc0a9180fb06dccd5a67af
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
packaging/dumpsys.spec

index 8b89a035dc1ec5bf7b83a229f1c7f9ed21289a94..421c44c17aa2a8d7fc5692b5ddd0d130bce20360 100644 (file)
@@ -1,6 +1,6 @@
 %define on_off() %{expand:%%{?with_%{1}:ON}%%{!?with_%{1}:OFF}}
 
-%if "%{?profile}" == "tv"
+%if "%{?profile}" == "tv" || "%{?asan}" == "1"
 %undefine _with_tests
 %else
 %define _with_tests on