https://github.com/mannikim/test.sh
shell script for testing programs
https://github.com/mannikim/test.sh
c c99 gplv3 minimal shell shell-script testing-tools
Last synced: 2 months ago
JSON representation
shell script for testing programs
- Host: GitHub
- URL: https://github.com/mannikim/test.sh
- Owner: mannikim
- License: gpl-3.0
- Created: 2025-03-30T20:31:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-02T17:18:58.000Z (about 1 year ago)
- Last Synced: 2025-06-25T02:06:09.889Z (about 1 year ago)
- Topics: c, c99, gplv3, minimal, shell, shell-script, testing-tools
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test.sh
`test.sh` is a shell script for running full-program tests on a specified
program
## features
- tests programs
- using shell
## usage
### running tests
```sh
$ test.sh [-s|-v]
```
### writing tests
first, create a directory for your tests
```sh
$ mkdir tests
```
inside this directory, create a shell script
this shell script is the test for the program. the script should return 0 when
the test is passed
use `$1` for the current program being tested
## examples
this repository contains a simple example program, `pow`, which you can compile
using the provided makefile. you can run tests on it by running `make test` or
running `./test.sh pow tests/pow`
## license and copyright
licensed under the GNU GPLv3.0 or any later version, at your option. see
LICENSE file for license and copyright information