xref: /titanic_50/usr/src/test/libc-tests/doc/README (revision 2d08521bd15501c8370ba2153b9cca4f094979d0)
1*2d08521bSGarrett D'Amore#
2*2d08521bSGarrett D'Amore# This file and its contents are supplied under the terms of the
3*2d08521bSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
4*2d08521bSGarrett D'Amore# You may only use this file in accordance with the terms of version
5*2d08521bSGarrett D'Amore# 1.0 of the CDDL.
6*2d08521bSGarrett D'Amore#
7*2d08521bSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
8*2d08521bSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
9*2d08521bSGarrett D'Amore# http://www.illumos.org/license/CDDL.
10*2d08521bSGarrett D'Amore#
11*2d08521bSGarrett D'Amore
12*2d08521bSGarrett D'Amore#
13*2d08521bSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
14*2d08521bSGarrett D'Amore# Copyright (c) 2012 by Delphix. All rights reserved.
15*2d08521bSGarrett D'Amore#
16*2d08521bSGarrett D'Amore
17*2d08521bSGarrett D'Amorelibc Unit Test Suite README
18*2d08521bSGarrett D'Amore
19*2d08521bSGarrett D'Amore1. What this Unit Test Suite tests
20*2d08521bSGarrett D'Amore2. Building and installing this Unit Test Suite
21*2d08521bSGarrett D'Amore3. Running this Unit Test Suite
22*2d08521bSGarrett D'Amore4. Test results
23*2d08521bSGarrett D'Amore
24*2d08521bSGarrett D'Amore--------------------------------------------------------------------------------
25*2d08521bSGarrett D'Amore
26*2d08521bSGarrett D'Amore1. What this Unit Test Suite tests
27*2d08521bSGarrett D'Amore
28*2d08521bSGarrett D'AmoreThis Unit Test Suite is for testing various libc interfaces.
29*2d08521bSGarrett D'Amore
30*2d08521bSGarrett D'Amore2. Building and installing this Unit Test Suite
31*2d08521bSGarrett D'Amore
32*2d08521bSGarrett D'AmoreThis Test Suite runs under the testrunner framework (which can be installed
33*2d08521bSGarrett D'Amoreas pkg:/system/test/testrunner). To build both this Unit Test Suite and the
34*2d08521bSGarrett D'Amoretestrunner without running a full nightly:
35*2d08521bSGarrett D'Amore
36*2d08521bSGarrett D'Amore	build_machine$ bldenv [-d] <your_env_file>
37*2d08521bSGarrett D'Amore	build_machine$ cd $SRC/test
38*2d08521bSGarrett D'Amore	build_machine$ dmake install
39*2d08521bSGarrett D'Amore	build_machine$ cd $SRC/pkg
40*2d08521bSGarrett D'Amore	build_machine$ dmake install
41*2d08521bSGarrett D'Amore
42*2d08521bSGarrett D'AmoreThen set the publisher on the test machine to point to your repository and
43*2d08521bSGarrett D'Amoreinstall the Utils Unit Test Suite.
44*2d08521bSGarrett D'Amore
45*2d08521bSGarrett D'Amore	test_machine# pkg install pkg:/system/test/libctest
46*2d08521bSGarrett D'Amore
47*2d08521bSGarrett D'AmoreNote, the framework will be installed automatically, as this test suite
48*2d08521bSGarrett D'Amoredepends on it.
49*2d08521bSGarrett D'Amore
50*2d08521bSGarrett D'AmoreAdditionally some text locales are required, specifically, en_US.UTF-8,
51*2d08521bSGarrett D'Amorede_DE.UTF-8, ja_JP.UTF-8, and ru_RU.UTF-8.  Again, these are listed as
52*2d08521bSGarrett D'Amoredependencies and will be automatically installed.
53*2d08521bSGarrett D'Amore
54*2d08521bSGarrett D'Amore3. Running this Unit Test Suite
55*2d08521bSGarrett D'Amore
56*2d08521bSGarrett D'AmoreThe pre-requisites for running the this Unit Test Suite are:
57*2d08521bSGarrett D'Amore	- Any user may perform these tests.
58*2d08521bSGarrett D'Amore	- The en_US.UTF-8, ja_JP.UTF-8, de_DE.UTF-8, and ru_RU.UTF-8 locales
59*2d08521bSGarrett D'Amore          must be installed.
60*2d08521bSGarrett D'Amore
61*2d08521bSGarrett D'AmoreOnce the pre-requisites are satisfied, simply run the ostest script:
62*2d08521bSGarrett D'Amore
63*2d08521bSGarrett D'Amore	test_machine$ /opt/util-tests/bin/libctest
64*2d08521bSGarrett D'Amore
65*2d08521bSGarrett D'Amore4. Test results
66*2d08521bSGarrett D'Amore
67*2d08521bSGarrett D'AmoreWhile the Unit Test Suite is running, one informational line is printed at
68*2d08521bSGarrett D'Amorethe end of each test, and a results summary is printed at the end of the run.
69*2d08521bSGarrett D'AmoreThe results summary includes the location of the complete logs, which is of the
70*2d08521bSGarrett D'Amoreform /var/tmp/test_results/<ISO 8601 date>.
71