forked from teal-language/tl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework tests to not use lfs.link + refactor temp file creation
- This was the easy solution that worked at first when `tl build` was implemented, but making a bunch of random links can cause problems, so now we just run the `tl` command given its full path and tell busted to add the current dir to the lua path so `tl` can find `tl.lua` - write_tmp_file will now generate its own name and now accepts a parameter for the extension of the file it generates, i.e. previously: `write_tmp_file(finally, name, content)` now: `write_tmp_file(finally, content, extension)` - Add "tl", and ".busted" to .editorconfig
- Loading branch information
1 parent
3ca2c69
commit d1d1750
Showing
12 changed files
with
155 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
return { | ||
default = { | ||
lpath = "./?.lua"; | ||
} | ||
default = { | ||
lpath = "./?.lua;" | ||
.. (require("lfs").currentdir()) .. "/?.lua;"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
tl.lua.1 | ||
tl.lua.2 | ||
tl.lua.bak | ||
/luarocks | ||
/lua | ||
/lua_modules | ||
/.luarocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.