Add testing android products
These must be added in the soong_injection code as opposed to just defined loosely in checked-in bzl files because the product_vars select statement must be updated to support the new platforms. Bug: 269577299 Test: b test --config=android //build/bazel/... Change-Id: I7bba9af214896dd3b5938bae70b7c0cea4f75e41
This commit is contained in:
@@ -56,12 +56,12 @@ build/soong/soong_ui.bash --make-mode BP2BUILD_VERBOSE=1 --skip-soong-tests bp2b
|
||||
|
||||
# Number of CppCompile actions with arch variant flag
|
||||
actions_with_arch_variant_num=$(call_bazel aquery --config=bp2build --config=ci --config=android \
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal.apex))' | grep -c \'-march=$ARCH_VARIANT_CFLAG\')
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal))' | grep -c \'-march=$ARCH_VARIANT_CFLAG\')
|
||||
|
||||
# Number of all CppCompile actions
|
||||
all_cppcompile_actions_num=0
|
||||
aquery_summary=$(call_bazel aquery --config=bp2build --config=ci --config=android --output=summary \
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal.apex))' \
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal))' \
|
||||
| egrep -o '.*opt-ST.*: ([0-9]+)$' \
|
||||
| cut -d: -f2 -)
|
||||
|
||||
@@ -82,7 +82,7 @@ if [ $CPU_VARIANT_CFLAG ]
|
||||
then
|
||||
# Number of CppCompiler actions with cpu variant flag
|
||||
actions_with_cpu_variant_num=$(call_bazel aquery --config=bp2build --config=ci --config=android \
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal.apex))' | grep -c "\-mcpu=$CPU_VARIANT_CFLAG")
|
||||
'mnemonic("CppCompile", deps(//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal))' | grep -c "\-mcpu=$CPU_VARIANT_CFLAG")
|
||||
|
||||
if [ $actions_with_cpu_variant_num -eq $all_cppcompile_actions_num ]
|
||||
then
|
||||
@@ -91,4 +91,4 @@ then
|
||||
echo "Error: number of CppCompile actions with cpu variant set: actual=$actions_with_cpu_variant_num, expected=$all_cppcompile_actions_num"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user