summaryrefslogtreecommitdiff
path: root/tests/bionic/libc/README.TXT
blob: 7618f2b729cfccf64c6d093d0d457f3ae3c49278 (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
This directory contains a set of tests for Android's Bionic C library.

These sources are not distributed with Bionic itself because some of
these tests come from the GNU C Library, and are licensed under the
GNU Lesser General Public License (LGPL)

You must define the BIONIC_TESTS environment variable to build these
test programs. For example, do:

    cd system/extras/tests/bionic/libc
    mm BIONIC_TESTS=1

All test programs, except those in the 'other' directory, should exit
with a status code of 0 in case of success, and 1 in case of failure.

The directory layout is simple:

  common/
    Contains tests that can be compiled either with Bionic or another
    C library.

  glibc/
    Contains tests that come from the GNU C Library. However, they can
    be compiled with Bionic too.

  bionic/
    Contains tests that can *only* be compiled against Bionic

  other/
    Other unrelated tests. These are not run by the test runner
    program but will be installed to your device nevertheless.
    Put benchmarks and various debug/info stuff there.