diff options
Diffstat (limited to 'make/unittest.lua')
-rw-r--r-- | make/unittest.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/make/unittest.lua b/make/unittest.lua deleted file mode 100644 index 25839c96..00000000 --- a/make/unittest.lua +++ /dev/null @@ -1,23 +0,0 @@ -local platform = ... -local fs = require 'bee.filesystem' -local sp = require 'bee.subprocess' -local pf = require 'bee.platform' -local exe = platform == 'msvc' and ".exe" or "" -local CWD = fs.current_path() - -local process = assert(sp.spawn { - CWD / 'bin' / pf.OS / ('lua-language-server' .. exe), - CWD / 'test.lua', - '-E', - stdout = true, - stderr = true, -}) - -for line in process.stdout:lines 'l' do - print(line) -end -process:wait() -local err = process.stderr:read 'a' -if err ~= '' then - error(err) -end |