25 lines
699 B
Markdown
25 lines
699 B
Markdown
|
|
In this directory, you should write the program `wgrep.c` and compile it into
|
|
the binary `wgrep` (e.g., `gcc -o wgrep wgrep.c -Wall -Werror`).
|
|
|
|
After doing so, you can run the tests from this directory by running the
|
|
`test-wgrep.sh` script. If all goes well, you will see:
|
|
|
|
```sh
|
|
prompt> ./test-wgrep.sh
|
|
test 1: passed
|
|
test 2: passed
|
|
test 3: passed
|
|
test 4: passed
|
|
test 5: passed
|
|
test 6: passed
|
|
test 7: passed
|
|
prompt>
|
|
```
|
|
|
|
The `test-wgrep.sh` script is just a wrapper for the `run-tests.sh` script in
|
|
the `tester` directory of this repository. This program has a few options; see
|
|
the relevant
|
|
[README](https://github.com/remzi-arpacidusseau/ostep-projects/blob/master/tester/README.md)
|
|
for details.
|