Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
IEC 13719-3-00 (2018) is an international standard that specifies conformance testing methods for the shell and utilities component of the Portable Operating System Interface (POSIX). As part of the ISO/IEC 13719 series, this standard defines a test framework, assertions, and procedures to verify that an implementation of the shell and utilities conforms to the requirements of POSIX.1-2008 (IEEE Std 1003.1-2008) and related specifications. This article explores the scope, technical requirements, implementation highlights, and compliance insights for this standard, offering guidance for developers, testers, and certification bodies.
IEC 13719-3-00 focuses exclusively on the conformance testing of the command interpreter (shell) and the set of utilities (commands) defined by POSIX. The standard provides:
The scope covers both interactive and non-interactive use of the shell, as well as all mandatory utilities listed in the POSIX specification. Optional utilities and extension features are not included but are identified for completeness.
The standard defines a test framework that consists of a test harness, test scripts, and configuration files. The harness controls test execution, logs results, and generates reports. Each test is an executable that returns a pass/fail/unresolved status.
Each assertion is uniquely identified and correlates to a specific requirement in the POSIX specification. For example, assertion SH-UTIL:1234 verifies that the ls utility correctly lists directory contents with the -l option according to the specification. The total number of assertions exceeds 5,000, covering all mandated behavior.
The test suite covers the following major areas:
| Category | Description | Number of Assertions |
|---|---|---|
| Shell Built-in Commands | Tests for built-in commands such as cd, echo, exec, exit, export, read, set, unset, etc. | 1,200 |
| Shell Control Structures | Tests for if, for, while, case, and other control flow constructs. | 400 |
| I/O Redirection and Pipelines | Tests for input/output redirection operators, here-documents, and pipelines. | 300 |
| Environment and Variables | Tests for environment variable handling, shell variables, and parameter expansion. | 500 |
| File System Utilities | Tests for ls, cp, mv, rm, chmod, mkdir, rmdir, find, etc. | 1,000 |
| Text Processing Utilities | Tests for grep, sed, awk, sort, uniq, tr, cut, paste, etc. | 800 |
| System Administration Utilities | Tests for chown, chgrp, df, mount, umask, ps, etc. | 400 |
| Signal Handling and Job Control | Tests for signal delivery, trap, job control commands, and process groups. | 300 |
The test framework is designed to be portable across UNIX-like systems. Configuration files allow testers to specify paths to utilities, environment variables, system limits, and other parameters. The standard also provides guidelines for adapting tests to unusual system configurations.
Implementing a conformance test suite based on IEC 13719-3-00 involves several key steps:
Automated continuous integration (CI) systems can be configured to run the test suite during development to catch regressions early.
Conformance to IEC 13719-3-00 is measured by the number of test assertions that pass. A passing result on all mandatory assertions is required to claim full conformance to the POSIX shell and utilities specifications. Certification bodies may require a formal audit where the test suite is executed under controlled conditions and the results are independently verified.
Non-conformance of a few assertions may still be acceptable if they are related to extended features or configuration-specific behavior, but critical failures in fundamental functionality (e.g., broken command substitution, incorrect I/O redirection) lead to non-certification.
The standard also outlines procedures for reporting test suite anomalies. If a test assertion is found to be flawed or ambiguous, errata can be submitted for review in future revisions.
For vendors seeking formal certification, it is advisable to engage with an accredited testing laboratory that follows ISO/IEC 17025. The laboratory will use the reference test suite and verify that the implementation meets all the requirements of the standard.
© 2026 International Organization for Standardization and International Electrotechnical Commission. All rights reserved.