summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-10-02 10:38:06 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-10-02 13:09:31 +0000
commit72af290f4090809b8d11ae897670341621c96206 (patch)
treeb8320ca3adb32b905f2a192d430ac4d96a8f613f
parent7eb92a3a464e6cb2ae25cef545dcdb34ccc74679 (diff)
downloadmorph-72af290f4090809b8d11ae897670341621c96206.tar.gz
Add echo to the test shell
-rw-r--r--scripts/test-shell.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/test-shell.c b/scripts/test-shell.c
index 7975c188..e3ef1ff1 100644
--- a/scripts/test-shell.c
+++ b/scripts/test-shell.c
@@ -133,6 +133,12 @@ int main(int argc, char *argv[]) {
strstr(line, "false ") == line) {
ret = 1;
break;
+ } else if (strstr(line, "echo ") == line) {
+ if (puts(line + sizeof("echo ") - 1) == EOF){
+ perror("echo");
+ ret = 1;
+ break;
+ }
} else {
ret = 127;
break;