From ae105d7929eddd70ee31fdf01a4eca216770dd13 Mon Sep 17 00:00:00 2001 From: Remzi Arpaci-Dusseau Date: Fri, 15 Feb 2019 05:52:26 -0600 Subject: [PATCH] add test-wcat.sh wrapper, and README --- initial-utilities/wcat/README.md | 9 +++++++-- initial-utilities/wcat/test-wcat.sh | 10 ++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 initial-utilities/wcat/test-wcat.sh diff --git a/initial-utilities/wcat/README.md b/initial-utilities/wcat/README.md index 1d50ea2..f280132 100644 --- a/initial-utilities/wcat/README.md +++ b/initial-utilities/wcat/README.md @@ -3,10 +3,10 @@ In this directory, you should write the program `wcat.c` and compile it into the binary `wcat`. After doing so, you can run the tests from this directory by running the -`run-tests.sh` script. If all goes well, you will see: +`test-wcat.sh` script. If all goes well, you will see: ```sh -prompt> ../../tester/run-tests.sh +prompt> ./test-wcat.sh test 1: passed test 2: passed test 3: passed @@ -17,3 +17,8 @@ test 7: passed prompt> ``` +`test-wcat.sh` 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 for details. + + diff --git a/initial-utilities/wcat/test-wcat.sh b/initial-utilities/wcat/test-wcat.sh new file mode 100755 index 0000000..d6435ff --- /dev/null +++ b/initial-utilities/wcat/test-wcat.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +if ! [[ -x wcat ]]; then + echo "wcat executable does not exist" + exit 1 +fi + +../../tester/run-tests.sh $* + +