12d08521bSGarrett D'Amore# 22d08521bSGarrett D'Amore# This file and its contents are supplied under the terms of the 32d08521bSGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0. 42d08521bSGarrett D'Amore# You may only use this file in accordance with the terms of version 52d08521bSGarrett D'Amore# 1.0 of the CDDL. 62d08521bSGarrett D'Amore# 72d08521bSGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this 82d08521bSGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at 92d08521bSGarrett D'Amore# http://www.illumos.org/license/CDDL. 102d08521bSGarrett D'Amore# 112d08521bSGarrett D'Amore 122d08521bSGarrett D'Amore# 132d08521bSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org> 142d08521bSGarrett D'Amore# Copyright (c) 2012 by Delphix. All rights reserved. 152d08521bSGarrett D'Amore# 162d08521bSGarrett D'Amore 172d08521bSGarrett D'Amorelibc Unit Test Suite README 182d08521bSGarrett D'Amore 192d08521bSGarrett D'Amore1. What this Unit Test Suite tests 202d08521bSGarrett D'Amore2. Building and installing this Unit Test Suite 212d08521bSGarrett D'Amore3. Running this Unit Test Suite 222d08521bSGarrett D'Amore4. Test results 232d08521bSGarrett D'Amore 242d08521bSGarrett D'Amore-------------------------------------------------------------------------------- 252d08521bSGarrett D'Amore 262d08521bSGarrett D'Amore1. What this Unit Test Suite tests 272d08521bSGarrett D'Amore 28538aa54dSGarrett D'AmoreThis Unit Test Suite is for testing various libc interfaces. The suite 29538aa54dSGarrett D'Amorewill test both 32 and 64 bit versions, provided that your kernel supports 30538aa54dSGarrett D'Amoreboth. 312d08521bSGarrett D'Amore 322d08521bSGarrett D'Amore2. Building and installing this Unit Test Suite 332d08521bSGarrett D'Amore 342d08521bSGarrett D'AmoreThis Test Suite runs under the testrunner framework (which can be installed 352d08521bSGarrett D'Amoreas pkg:/system/test/testrunner). To build both this Unit Test Suite and the 362d08521bSGarrett D'Amoretestrunner without running a full nightly: 372d08521bSGarrett D'Amore 382d08521bSGarrett D'Amore build_machine$ bldenv [-d] <your_env_file> 392d08521bSGarrett D'Amore build_machine$ cd $SRC/test 402d08521bSGarrett D'Amore build_machine$ dmake install 412d08521bSGarrett D'Amore build_machine$ cd $SRC/pkg 422d08521bSGarrett D'Amore build_machine$ dmake install 432d08521bSGarrett D'Amore 442d08521bSGarrett D'AmoreThen set the publisher on the test machine to point to your repository and 452d08521bSGarrett D'Amoreinstall the Utils Unit Test Suite. 462d08521bSGarrett D'Amore 472d08521bSGarrett D'Amore test_machine# pkg install pkg:/system/test/libctest 482d08521bSGarrett D'Amore 492d08521bSGarrett D'AmoreNote, the framework will be installed automatically, as this test suite 502d08521bSGarrett D'Amoredepends on it. 512d08521bSGarrett D'Amore 52*804635d7SYuri PankovAdditionally some text locales are required, specifically, ar_AE.UTF-8, 53*804635d7SYuri Pankovde_DE.UTF-8, en_US.UTF-8, ja_JP.UTF-8, and ru_RU.UTF-8. Again, these are 54*804635d7SYuri Pankovlisted as dependencies and will be automatically installed. 552d08521bSGarrett D'Amore 562d08521bSGarrett D'Amore3. Running this Unit Test Suite 572d08521bSGarrett D'Amore 582d08521bSGarrett D'AmoreThe pre-requisites for running the this Unit Test Suite are: 592d08521bSGarrett D'Amore - Any user may perform these tests. 60*804635d7SYuri Pankov - The ar_AE.UTF-8, de_DE.UTF-8, en_US.UTF-8, en_GB.ISO8859-15, 61*804635d7SYuri Pankov ja_JP.UTF-8, and ru_RU.UTF-8 locales must be installed. 622d08521bSGarrett D'Amore 63538aa54dSGarrett D'AmoreOnce the pre-requisites are satisfied, simply run the libctest script: 642d08521bSGarrett D'Amore 65538aa54dSGarrett D'Amore test_machine$ /opt/libc-tests/bin/libctest 662d08521bSGarrett D'Amore 672d08521bSGarrett D'Amore4. Test results 682d08521bSGarrett D'Amore 692d08521bSGarrett D'AmoreWhile the Unit Test Suite is running, one informational line is printed at 702d08521bSGarrett D'Amorethe end of each test, and a results summary is printed at the end of the run. 712d08521bSGarrett D'AmoreThe results summary includes the location of the complete logs, which is of the 722d08521bSGarrett D'Amoreform /var/tmp/test_results/<ISO 8601 date>. 73