Advertisement
ColdIV

scm-issue-9-test-installer

Sep 14th, 2022 (edited)
1,222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. -- scm add i9TestsInstaller@x03k4JLs
  2. -- installs test cases for scm/issue9
  3. -- run i9TestsInstaller delete to delete test files
  4. local args = {...}
  5. if args[1] == "delete" then
  6.     shell.run("delete i9-program.lua")
  7.     shell.run("delete test-lib-1.lua")
  8.     shell.run("delete libs/test-lib-2.lua")
  9.     shell.run("delete libs/test-lib-3")
  10. else
  11.     shell.run("pastebin get EPK8hP4C i9-program.lua")
  12.     shell.run("pastebin get dxDWcZst test-lib-1.lua")
  13.     shell.run("pastebin get nW5ZBR6b libs/test-lib-2.lua")
  14.     shell.run("pastebin get gZEtrhKL libs/test-lib-3/test-lib-3.lua")
  15.     print("RUN i9-program.lua")
  16.     shell.run("i9-program.lua")
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement