From 326b783ad92048432c4a8a70a35c8342b35128b0 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Fri, 29 Sep 2017 05:04:00 +0900 Subject: [PATCH] Tests are run with proper namespace configs by their locations Tests in /data/[nativetest|benchmarktest] run with namespace config for system and tests in /data/[nativetest|benchmarktest]/vendor run with namespace config for vendor. They no longer run in the 'test' namespace config which didn't impose any restriction for libraries. Bug: 67028906 Test: sailfish/marlin builds and boots Test: no VTS regression on system.img from GSI + vendor.img from marlin/sailfish Test: VtsKernelLibcutilsTest successful in above config Change-Id: I28cdef960d087565c8a22dca0e9a154fb1c3bb94 --- rootdir/etc/ld.config.txt | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index 7f86a950b..8afd4361e 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -7,10 +7,14 @@ dir.system = /system/bin/ dir.system = /system/xbin/ dir.vendor = /vendor/bin/ -dir.test = /data/nativetest/ -dir.test = /data/nativetest64/ -dir.test = /data/benchmarktest/ -dir.test = /data/benchmarktest64/ +dir.vendor = /data/nativetest/vendor +dir.vendor = /data/nativetest64/vendor +dir.vendor = /data/benchmarktest/vendor +dir.vendor = /data/benchmarktest64/vendor +dir.system = /data/nativetest +dir.system = /data/nativetest64 +dir.system = /data/benchmarktest +dir.system = /data/benchmarktest64 [system] additional.namespaces = sphal,vndk,rs @@ -121,12 +125,3 @@ namespace.default.isolated = false namespace.default.search.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl:/vendor/${LIB}:/system/${LIB}/vndk:/vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/system/${LIB} namespace.default.asan.search.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl:/data/asan/vendor/${LIB}:/vendor/${LIB}:/data/asan/system/${LIB}/vndk:/system/${LIB}/vndk:/data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/system/${LIB}:/system/${LIB} - -############################################################################### -# Namespace config for tests. No VNDK restriction is enforced for these tests. -############################################################################### -[test] -namespace.default.isolated = false -namespace.default.search.paths = /vendor/${LIB}:/vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/system/${LIB} - -namespace.default.asan.search.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}:/data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/system/${LIB}:/system/${LIB}