Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bash-bastion/shelltest
A test runner for POSIX-compliant shells
https://github.com/bash-bastion/shelltest
ash basalt bash dash ksh pdksh sh shell tdd testing zsh
Last synced: 1 day ago
JSON representation
A test runner for POSIX-compliant shells
- Host: GitHub
- URL: https://github.com/bash-bastion/shelltest
- Owner: bash-bastion
- License: bsd-3-clause
- Created: 2021-10-17T22:30:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T20:09:12.000Z (almost 2 years ago)
- Last Synced: 2024-09-07T10:03:17.415Z (5 months ago)
- Topics: ash, basalt, bash, dash, ksh, pdksh, sh, shell, tdd, testing, zsh
- Language: Shell
- Homepage:
- Size: 62.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shelltest
A test runner for POSIX shells
## Features
- POSIX compliant
- No eval
- Uses only builtins
- Perform tests with `[`, etc.
- TAPS output
- `setup`, `setup_file`, `teardown`, `teardown_file`
- Utility functions `t_is_function`, `t_get_shell_version`, `t_assert`## Tested on
- [ ] sh
- [ ] BusyBox sh
- [ ] ash
- [ ] dash (Debian variant of NetBSD ash)
- [ ] yash
- [ ] oil
- [ ] nsh
- [ ] bash
- [ ] zsh
- [ ] ksh (2020.0.0)
- [ ] pdksh
- [ ] mksh (MirBSD fork of OpenBSD pdksh)
- [ ] loksh (Linux port of OpenBSD pdksh)
- [ ] oksh (General port of OpenBSD pdksh)More rigorous test suite coming soon...
## Installation
Use [Basalt](https://github.com/hyperupcall/basalt), a Bash package manager, to install this project globally
```sh
basalt global add hyperupcall/shelltest
```## Usage
```sh
shelltest ./tests
```