make test.(ba)sh less annoying

This commit is contained in:
Lukas Wurzinger 2022-11-20 12:41:10 +01:00
parent 1609404b8e
commit 42219c391d
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
*.o
test
!test/
.ninja_deps
.ninja_log

View file

@ -24,8 +24,7 @@ It is required that one file in your project defines the
as with any other single-header library.
An example for how to use readarg can be found in `test/test.c`. If you want to
see how readarg represents options and operands, execute `test.sh` in the same
directory.
see how readarg represents options and operands, run `test.bash`.
## Terminology

View file

@ -1,4 +1,7 @@
#!/bin/sh
#!/usr/bin/env bash
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null
./test \
-e a \
--expr b \