xref: /titanic_41/usr/src/test/libc-tests/doc/README (revision f6b4772895723520478c07851d85477a1824b99a)
162c3776aSGarrett D'Amore#
262c3776aSGarrett D'Amore# This file and its contents are supplied under the terms of the
362c3776aSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
462c3776aSGarrett D'Amore# You may only use this file in accordance with the terms of version
562c3776aSGarrett D'Amore# 1.0 of the CDDL.
662c3776aSGarrett D'Amore#
762c3776aSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
862c3776aSGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
962c3776aSGarrett D'Amore# http://www.illumos.org/license/CDDL.
1062c3776aSGarrett D'Amore#
1162c3776aSGarrett D'Amore
1262c3776aSGarrett D'Amore#
1362c3776aSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
1462c3776aSGarrett D'Amore# Copyright (c) 2012 by Delphix. All rights reserved.
1562c3776aSGarrett D'Amore#
1662c3776aSGarrett D'Amore
1762c3776aSGarrett D'Amorelibc Unit Test Suite README
1862c3776aSGarrett D'Amore
1962c3776aSGarrett D'Amore1. What this Unit Test Suite tests
2062c3776aSGarrett D'Amore2. Building and installing this Unit Test Suite
2162c3776aSGarrett D'Amore3. Running this Unit Test Suite
2262c3776aSGarrett D'Amore4. Test results
2362c3776aSGarrett D'Amore
2462c3776aSGarrett D'Amore--------------------------------------------------------------------------------
2562c3776aSGarrett D'Amore
2662c3776aSGarrett D'Amore1. What this Unit Test Suite tests
2762c3776aSGarrett D'Amore
28*f6b47728SGarrett D'AmoreThis Unit Test Suite is for testing various libc interfaces.  The suite
29*f6b47728SGarrett D'Amorewill test both 32 and 64 bit versions, provided that your kernel supports
30*f6b47728SGarrett D'Amoreboth.
3162c3776aSGarrett D'Amore
3262c3776aSGarrett D'Amore2. Building and installing this Unit Test Suite
3362c3776aSGarrett D'Amore
3462c3776aSGarrett D'AmoreThis Test Suite runs under the testrunner framework (which can be installed
3562c3776aSGarrett D'Amoreas pkg:/system/test/testrunner). To build both this Unit Test Suite and the
3662c3776aSGarrett D'Amoretestrunner without running a full nightly:
3762c3776aSGarrett D'Amore
3862c3776aSGarrett D'Amore	build_machine$ bldenv [-d] <your_env_file>
3962c3776aSGarrett D'Amore	build_machine$ cd $SRC/test
4062c3776aSGarrett D'Amore	build_machine$ dmake install
4162c3776aSGarrett D'Amore	build_machine$ cd $SRC/pkg
4262c3776aSGarrett D'Amore	build_machine$ dmake install
4362c3776aSGarrett D'Amore
4462c3776aSGarrett D'AmoreThen set the publisher on the test machine to point to your repository and
4562c3776aSGarrett D'Amoreinstall the Utils Unit Test Suite.
4662c3776aSGarrett D'Amore
4762c3776aSGarrett D'Amore	test_machine# pkg install pkg:/system/test/libctest
4862c3776aSGarrett D'Amore
4962c3776aSGarrett D'AmoreNote, the framework will be installed automatically, as this test suite
5062c3776aSGarrett D'Amoredepends on it.
5162c3776aSGarrett D'Amore
5262c3776aSGarrett D'AmoreAdditionally some text locales are required, specifically, en_US.UTF-8,
5362c3776aSGarrett D'Amorede_DE.UTF-8, ja_JP.UTF-8, and ru_RU.UTF-8.  Again, these are listed as
5462c3776aSGarrett D'Amoredependencies and will be automatically installed.
5562c3776aSGarrett D'Amore
5662c3776aSGarrett D'Amore3. Running this Unit Test Suite
5762c3776aSGarrett D'Amore
5862c3776aSGarrett D'AmoreThe pre-requisites for running the this Unit Test Suite are:
5962c3776aSGarrett D'Amore	- Any user may perform these tests.
60*f6b47728SGarrett D'Amore	- The en_US.UTF-8, en_GB.ISO8859-15, ja_JP.UTF-8, de_DE.UTF-8, and
61*f6b47728SGarrett D'Amore	  ru_RU.UTF-8 locales must be installed.
6262c3776aSGarrett D'Amore
63*f6b47728SGarrett D'AmoreOnce the pre-requisites are satisfied, simply run the libctest script:
6462c3776aSGarrett D'Amore
65*f6b47728SGarrett D'Amore	test_machine$ /opt/libc-tests/bin/libctest
6662c3776aSGarrett D'Amore
6762c3776aSGarrett D'Amore4. Test results
6862c3776aSGarrett D'Amore
6962c3776aSGarrett D'AmoreWhile the Unit Test Suite is running, one informational line is printed at
7062c3776aSGarrett D'Amorethe end of each test, and a results summary is printed at the end of the run.
7162c3776aSGarrett D'AmoreThe results summary includes the location of the complete logs, which is of the
7262c3776aSGarrett D'Amoreform /var/tmp/test_results/<ISO 8601 date>.
73