diff options
Diffstat (limited to 'tests/hello-world')
| -rw-r--r-- | tests/hello-world/check.mk | 5 | ||||
| -rw-r--r-- | tests/hello-world/source.mk | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/tests/hello-world/check.mk b/tests/hello-world/check.mk new file mode 100644 index 0000000..7fbabc9 --- /dev/null +++ b/tests/hello-world/check.mk @@ -0,0 +1,5 @@ +REPORT := reports/hello-world +hello-world: do-hello-world + @grep 'Hello, world!' $(REPORT)/log > /dev/null \ + && echo "OK" > $(REPORT)/OK \ + || echo "ERR" > $(REPORT)/ERR diff --git a/tests/hello-world/source.mk b/tests/hello-world/source.mk index 52d642d..5fd60ff 100644 --- a/tests/hello-world/source.mk +++ b/tests/hello-world/source.mk @@ -1,8 +1,2 @@ -TESTS := $(TESTS) hello-world - -.PHONY: hello-world -hello-world: hello-world/init.c $(COMMON) - mkdir -p build/hello-world - $(COMPILE) hello-world/init.c build/printf.o -o build/hello-world/init - echo build/hello-world/init | $(GEN_INITRD) build/hello-world/initrd - $(QEMU) build/hello-world/initrd | grep 'Hello, world!' +DO != ./scripts/gen-prog -n hello-world -p init init.c +DO != ./scripts/gen-simple -n hello-world -p init |
