summaryrefslogtreecommitdiff
path: root/tests/bionic/libc/run-test_linaro.sh
blob: e913bf4b8bcb7cce8987751eabf4aaf09c5c6b69 (plain)
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
#############################################################################
# Copyright (c) 2013 Linaro
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#     Linaro <linaro-dev@lists.linaro.org>
#
# Usage:
#     This test script is used to run all stock bionic/libc tests in one go 
#     and capture results in LAVA.
#     Test sources are available at "system/extras/tests/bionic/libc" 
#############################################################################

TESTS="bench_locks bench_pthread_shared bench_pthread_static bench_stdio test_arc4random test_atomics test_clock test_clone test_cpu_set test_dlclose_destruction test_dlopen_null test_drand48 test_executable_destructor test_getaddrinfo test_getgrouplist test_gethostbyname test_gethostname test_libgen test_mutex test_netinet_icmp test_pthread_cleanup_push test_pthread_cond test_pthread_create test_pthread_getcpuclockid test_pthread_join test_pthread_mutex test_pthread_once test_pthread_rwlock test_relocs test_semaphore test_sem_post test_setjmp test_seteuid test_static_cpp_mutex test_static_executable_destructor test_static_init test_strftime_2039 test_strptime test_sysconf test_timer_create3 test_tm_zone test_udp test_vfprintf_leak"

# Rogue tests
#TESTS+= "test_cond test_thread_max test_timer_create test_timer_create2"

for TEST in $TESTS; do
	$TEST
	EXIT_STATUS=$?
	if [ $EXIT_STATUS -ne 0 ]; then
		echo "$TEST : FAIL"
	else
		echo "$TEST : PASS"
	fi
done

test_system date
EXIT_STATUS=$?
if [ $EXIT_STATUS -ne 0 ]; then
	echo "$TEST : FAIL"
else
	echo "$TEST : PASS"
fi