From 9908433cc0d493c6910d0aed5cdf263397cee87f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 31 Oct 2023 17:06:43 +0800 Subject: add doc codes check. --- makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index b328dd6..49698fb 100644 --- a/makefile +++ b/makefile @@ -289,6 +289,7 @@ test: debug @./$(BIN_NAME) $(TEST_INPUT)/try_catch.yue -o $(TEST_OUTPUT)/5.1/try_catch.lua --target=5.1 @./$(BIN_NAME) $(TEST_INPUT)/attrib.yue -o $(TEST_OUTPUT)/5.1/attrib.lua --target=5.1 @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 + @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(TEST_OUTPUT) @echo -en "Compile time: " @$(END_TIME) @./$(BIN_NAME) -e "$$(printf "r = io.popen('git diff --no-index $(TEST_OUTPUT) $(GEN_OUTPUT) | head -5')\\\\read '*a'\nif r ~= ''\n print r\n os.exit 1")" @@ -307,6 +308,7 @@ gen: release @./$(BIN_NAME) $(TEST_INPUT)/try_catch.yue -o $(GEN_OUTPUT)/5.1/try_catch.lua --target=5.1 @./$(BIN_NAME) $(TEST_INPUT)/attrib.yue -o $(GEN_OUTPUT)/5.1/attrib.lua --target=5.1 @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(GEN_OUTPUT)/5.1/test/loops_spec.lua --target=5.1 + @./$(BIN_NAME) -e spec/inputs/compile_doc.yue $(GEN_OUTPUT) @echo -en "Compile time: " @$(END_TIME) -- cgit v1.2.3-55-g6feb