aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-09-30 11:33:03 +0800
committerLi Jin <dragon-fly@qq.com>2022-09-30 11:33:03 +0800
commit284dc4851968737e32d3d97214b82a07355598d3 (patch)
treee5f556ec6069bee6783bf517e9c2828cb7215aac
parent5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2 (diff)
downloadyuescript-284dc4851968737e32d3d97214b82a07355598d3.tar.gz
yuescript-284dc4851968737e32d3d97214b82a07355598d3.tar.bz2
yuescript-284dc4851968737e32d3d97214b82a07355598d3.zip
fix test.
-rw-r--r--makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefile b/makefile
index 0c86ccb..cb1274b 100644
--- a/makefile
+++ b/makefile
@@ -264,11 +264,13 @@ clean:
264# Test Yuescript compiler 264# Test Yuescript compiler
265.PHONY: test 265.PHONY: test
266test: release 266test: release
267 @mkdir -p $(TEST_OUTPUT) 267 @mkdir -p $(TEST_OUTPUT)/5.1/test
268 @echo "Compiling Yuescript codes..." 268 @echo "Compiling Yuescript codes..."
269 @$(START_TIME) 269 @$(START_TIME)
270 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled 270 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) --tl_enabled
271 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua 271 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.yue -o $(TEST_OUTPUT)/teal-lang.lua
272 @./$(BIN_NAME) $(TEST_INPUT)/loops.yue -o $(TEST_OUTPUT)/5.1/loops.lua --target=5.1
273 @./$(BIN_NAME) $(TEST_INPUT)/test/loops_spec.yue -o $(TEST_OUTPUT)/5.1/test/loops_spec.lua --target=5.1
272 @echo -en "Compile time: " 274 @echo -en "Compile time: "
273 @$(END_TIME) 275 @$(END_TIME)
274 @./$(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")" 276 @./$(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")"