aboutsummaryrefslogtreecommitdiff
path: root/tests/hello-world/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hello-world/source.mk')
-rw-r--r--tests/hello-world/source.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hello-world/source.mk b/tests/hello-world/source.mk
new file mode 100644
index 0000000..203a42e
--- /dev/null
+++ b/tests/hello-world/source.mk
@@ -0,0 +1,8 @@
+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) hello-world/initrd
+ $(QEMU) hello-world/initrd | grep 'Hello, world!'