Add a new "test" Makefile target

This commit is contained in:
Tianon Gravi 2016-02-08 22:02:24 -08:00
parent 6cda1c30da
commit 2bf8256602
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,6 @@ RUN apt-get update && apt-get install -y make nasm && rm -rf /var/lib/apt/lists/
WORKDIR /usr/src/hello WORKDIR /usr/src/hello
COPY . /usr/src/hello COPY . /usr/src/hello
RUN make clean hello RUN make clean hello test
CMD ["./hello"] CMD ["./hello"]

View File

@ -5,3 +5,7 @@ hello: hello.asm
.PHONY: clean .PHONY: clean
clean: clean:
-rm -vf hello -rm -vf hello
.PHONY: test
test: hello
./hello