-
Notifications
You must be signed in to change notification settings - Fork 1
/
lava-wrapper-finder-gtest
executable file
·76 lines (73 loc) · 3.02 KB
/
lava-wrapper-finder-gtest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/system/bin/sh
# Copyright (c) 2012 Zygmunt Krynicki <[email protected]>
#
# A wrapper finder for lava-wrapper that knows about google test-based tests.
#
# This file should be placed in /system/bin as lava-wrapper-finder-gtest
#
# If executable, it may be executed with a single argument, an absolute path to
# a test executable. For each such execution it must either print a pathname to
# a wrapper script on stdout or print nothing.
#
# This particular wrapper finder "detects" several well-known executables that
# use the gtest framework and instructs lava-wrapper to use lava-gest-wrapper
# to run them
for supported_test in \
/data/nativetest/BufferQueue_test \
/data/nativetest/SurfaceTexture_test/SurfaceTexture_test \
/data/nativetest/gtest-death-test_test \
/data/nativetest/gtest-filepath_test \
/data/nativetest/gtest-linked_ptr_test \
/data/nativetest/gtest-message_test \
/data/nativetest/gtest-options_test \
/data/nativetest/gtest-port_test \
/data/nativetest/gtest-test-part_test \
/data/nativetest/gtest-typed-test2_test \
/data/nativetest/gtest-typed-test_test \
/data/nativetest/gtest_environment_test \
/data/nativetest/gtest_prod_test \
/data/nativetest/gtest_repeat_test \
/data/nativetest/gtest_stress_test \
/data/nativetest/webrtc_apm_unit_test/webrtc_apm_unit_test \
/data/nativetest/dalvik-vm-unit-tests/dalvik-vm-unit-tests \
/data/nativetest/ion-unit-tests/ion-unit-tests \
/data/nativetest/libgui_test/libgui_test \
/data/nativetest/BasicHashtable_test/BasicHashtable_test \
/data/nativetest/BlobCache_test/BlobCache_test \
/system/bin/EGL_test \
/data/nativetest/InputChannel_test/InputChannel_test \
/data/nativetest/InputDispatcher_test/InputDispatcher_test \
/data/nativetest/InputEvent_test/InputEvent_test \
/data/nativetest/InputPublisherAndConsumer_test/InputPublisherAndConsumer_test \
/data/nativetest/InputReader_test/InputReader_test \
/data/nativetest/Looper_test/Looper_test \
/data/nativetest/ObbFile_test/ObbFile_test \
/data/nativetest/String8_test/String8_test \
/data/nativetest/Unicode_test/Unicode_test \
/system/bin/Vector_test \
/data/nativetest/ZipFileRO_test/ZipFileRO_test \
/system/bin/keymaster_test \
;
do
if [ "$1" = "$supported_test" ]; then
echo "/system/bin/lava-gtest-wrapper"
exit 0
fi
done
# Unsupported tests:
# NOTE: not gtest, seems to require an argument
# /data/nativetest/webrtc_apm_process_test/webrtc_apm_process_test \
# XXX: hangs without a monitor attached to output
# /system/bin/SurfaceMediaSource_test \
# NOTE: not gtest
# /system/bin/asan/clone_test \
# NOTE: not gtest
# /system/bin/asan/large_func_test \
# NOTE: not gtest, sadly, needs investigation (no output)
# /system/bin/skia_test \
# NOTE: not gtest, fails instantly
# /system/bin/sync_test \
# NOTE: not gtest, requires argument
# /system/bin/verifier_test \
# NOTE: not gtest
# /system/bin/asan_test \