diff options
author | chai <chaifix@163.com> | 2021-11-17 23:03:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-17 23:03:07 +0800 |
commit | 27d6efb5f5a076f825fe2da1875e0cabaf02b4e7 (patch) | |
tree | 44f301110bc2ea742908ed92a78eba0803cd3b60 /Tools/LuaMacro/tests/tests.lua | |
parent | b34310c631989551054d456eb47aaab5ded266a4 (diff) |
+ LuaMacro
Diffstat (limited to 'Tools/LuaMacro/tests/tests.lua')
-rw-r--r-- | Tools/LuaMacro/tests/tests.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tools/LuaMacro/tests/tests.lua b/Tools/LuaMacro/tests/tests.lua new file mode 100644 index 0000000..865c928 --- /dev/null +++ b/Tools/LuaMacro/tests/tests.lua @@ -0,0 +1,27 @@ +require_ 'macro.forall' +require_ 'qw' +local function execute (name) + local file = 'test-'..name..'.lua' + print('executing '..file) + os.execute('luam '..file) +end +forall name in qw(dollar lambda try block scope do const rawhash include test) do + execute (name) +end + +if pcall(require,'pl') then + execute 'list' +end + +local function exec (cmd) + print (cmd) + os.execute(cmd) +end + +exec 'luam -lcskin test-cskin.lua' +exec 'luam test-atm.lua' +exec 'luam -VA test-atm.lua' +exec 'set P=1 && luam test-atm.lua' +exec 'set P=1 && luam -VA test-atm.lua' + + |