X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile;h=c3c26c167e29d2456ce62c4f795907deb4aaecc7;hb=1a4752fe23a96f47fb83c57861aa991681fa98b0;hp=0edc9835bedf0574c7e004b85db5fe142bada23a;hpb=7bf2a5d6b1b47b38fca533e2f276f0fe30af3f81;p=tpg%2Facess2.git diff --git a/Makefile b/Makefile index 0edc9835..c3c26c16 100644 --- a/Makefile +++ b/Makefile @@ -66,15 +66,27 @@ all-install: install-Filesystem SyscallList ai-user ai-kmode clean: clean-kmode clean-user install: install-Filesystem SyscallList install-user install-kmode -utest: $(USRLIBS:%=utest-%) +utest-build: $(USRLIBS:%=utest-build-%) +utest-run: $(USRLIBS:%=utest-run-%) +utest: utest-build utest-run -$(USRLIBS:%=utest-%): utest-%: +utest-build-%: @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src generate_exp - @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src utest -k + @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src utest-build +utest-run-%: + @CC=$(NCC) $(SUBMAKE) -C Usermode/Libraries/$*_src utest-run -k # TODO: Module tests using DiskTool and NetTest -mtest: +mtest: mtest-build mtest-run @echo > /dev/null +mtest-build: + # Network + @CC=$(NCC) $(SUBMAKE) -C Tools/nativelib + @CC=$(NCC) $(SUBMAKE) -C Tools/NetTest + @CC=$(NCC) $(SUBMAKE) -C Tools/NetTest_Runner +mtest-run: + @echo "=== Network Module Test ===" + @cd Tools && ./nettest_runner SyscallList: include/syscalls.h include/syscalls.h: KernelLand/Kernel/Makefile KernelLand/Kernel/syscalls.lst