1 -- Run all *.lua and *.mlua files in this directory.
2 -- This makes it easy to run all tests in the directory,
6 ls = io.popen (os.getenv "OS" :match "^Windows" and "dir /b" or "ls")
9 for filename in ls :lines() if filename ~= this_script and filename :strmatch "%.m?lua$" do
10 printf ("*** running %s ***", filename)
11 local ret = os.execute ("metalua "..filename)
12 if ret ~= 0 then error("Test "..filename.." failed, returned "..ret) end