From 5cd94ad32613bf7094a8ab8ca6f1fc9efdea03a9 Mon Sep 17 00:00:00 2001 From: zhaobangyu <763098346@QQ.com> Date: Mon, 23 Oct 2023 19:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/autotest/testtask.lua | 14 ++++++++++++++ server/autotest/testtask_mgr.lua | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 server/autotest/testtask.lua create mode 100644 server/autotest/testtask_mgr.lua diff --git a/server/autotest/testtask.lua b/server/autotest/testtask.lua new file mode 100644 index 00000000..2cc9e170 --- /dev/null +++ b/server/autotest/testtask.lua @@ -0,0 +1,14 @@ +-- 测试任务 +local log_debug = logger.debug +local log_err = logger.err + +local TestTask = singleton() +local prop = property(TestTask) +prop:reader("id", nil) + +function TestTask:__init() + +end + +quanta.testtask = TestTask() +return TestTask diff --git a/server/autotest/testtask_mgr.lua b/server/autotest/testtask_mgr.lua new file mode 100644 index 00000000..22e7877f --- /dev/null +++ b/server/autotest/testtask_mgr.lua @@ -0,0 +1,14 @@ +-- 任务管理 +local log_debug = logger.debug +local log_err = logger.err + +local TestTaskMgr = singleton() +local prop = property(TestTaskMgr) +prop:reader("id", nil) + +function TestTaskMgr:__init() + +end + +quanta.testtask_mgr = TestTaskMgr() +return TestTaskMgr