summaryrefslogtreecommitdiff
path: root/spec/fs_spec.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix deployment on non-wrapped binaries (#1375)Hisham Muhammad2022-02-161-2/+2
| | | | | | | * fix deployment on non-wrapped binaries Fixes #1374. * Do not add .bat extension inside win32.wrap_script
* editorconfig: trim trailing whitespaceHisham Muhammad2021-03-161-71/+71
|
* tests: shorter descriptionsHisham Muhammad2020-02-141-1/+1
|
* fs.lua: fix error message when source file is missingHisham Muhammad2020-02-051-1/+3
| | | | Fixes #1147.
* win32: fix split root for quoted absolute path handlingHisham Muhammad2019-12-121-0/+34
|
* Add quotes around usernames to handle usernames with space on WindowsStephen Baynham2019-12-021-3/+3
|
* Tests: add tests for fs.is_file and fs.is_dir with symlinksHisham Muhammad2019-06-061-0/+36
| | | | Regression test for #1021.
* Tests: add test for fs.wrap_scriptHisham Muhammad2019-04-191-13/+53
|
* Tests: add shebang test for fs.is_luaHisham Muhammad2018-09-261-0/+6
|
* fs: fix rwx_to_number, add negated mask modeHisham Muhammad2018-07-261-0/+22
| | | | Fixes #856.
* fs: make unpack_archive platform-agnostic using specific fs functionsHisham Muhammad2018-07-181-0/+16
| | | | | | | Use luarocks.tools.tar for handling tar files, and add platform-specific functions fs.zip, fs.unzip, fs.bunzip2, fs.gunzip, giving them native implementations using Lua modules or alternative implementations using third-party tools.
* Add general improvements to the fs moduleGeorge Roman2018-07-161-17/+19
|
* Update the behavior of fs.set_permissions on WindowsGeorge Roman2018-07-161-4/+4
|
* Tests: add tests for the dynamic commandsGeorge Roman2018-07-161-0/+57
|
* Tests: minor cleanupsHisham Muhammad2018-07-011-5/+5
|
* cfg, cmd: major reorganizationHisham Muhammad2018-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `--lua-dir` flag, specifying a prefix for the Lua installation to be used. This reconfigures LuaRocks entirely, including allowing a LuaRocks which is itself running using one Lua 5.x version to manage packages for a different Lua 5.y version. The resulting configuration can be checked with `luarocks config --lua-dir=<path>`. * requiring `luarocks.core.cfg` no longer has side-effects * configuration now needs to be initialized with `cfg.init([lua_data])`, where `lua_data` is a table with the configuration of the VM: * `lua_version` - e.g. `"5.3"` * `luajit_version` - e.g. `"2.1.0-beta3"` * `lua_interpreter` - e.g. `"lua5.3"` * `lua_bindir` - e.g. `"/usr/local/bin"` * `lua_libdir` - e.g. `"/usr/local/lib"` * `lua_incdir` - e.g. `"/usr/local/include/lua-5.3"` * `cfg.init` can be called multiple times, reconfiguring the global state. This is important since `luarocks.loader` now calls it, and the `--lua-dir` command line can override the configuration and reconfigure LuaRocks. * `site_config_*` is no more: LuaRocks is no longer dependent on a properly-written site_config file. Instead, it can *optionally* use `luarocks.core.hardcoded` for hardcoded values, or detect its configuration at runtime, based on OS detection, arg[-1] or command-line flags. * reduction of moving parts in the configuration: * `cfg.platforms` is no longer a globally-visible table; instead, `cfg` provides an API of read-only functions: `is_platform`, `each_platform`, `print_platforms`. * `cfg.*_proxy` options are no longer configured via the config files, but rather via the standard `*_proxy` environment variables. * `"windows"` is now the more general platform name of the Windows family. This is technically a breaking change but I don't expect it to cause problems with real-world rockspecs. * internal code reorganization in `luarocks.cmd` module
* fs: make module loading side-effect free, require explicit init()Hisham Muhammad2018-07-011-0/+1
|
* Tests: improve the tests for the fs moduleGeorge Roman2018-06-211-4/+139
|
* Fix the collecting of coverage data from unit testsGeorge Roman2018-06-121-1/+2
|
* Tests: collect coverage data from unit tests (#814)George Roman2018-06-051-0/+11
|
* Fix failing Appveyor testsGeorge Roman2018-06-041-0/+1
|
* Tests: replace #blackbox with #integration and #whitebox with #unitGeorge Roman2018-06-041-1/+1
|
* Update fs_spec to use test_env temporary path utilityGeorge Roman2018-05-291-9/+1
|
* Add tests for fs.downloadGeorge Roman2018-05-281-0/+62
|
* Improve fs module testsGeorge Roman2018-05-221-0/+289
|
* Add more tests for the fs moduleGeorge Roman2018-05-181-31/+172
|
* Update fs module tests to use fs.set_permissionsGeorge Roman2018-05-171-130/+186
|
* Make copy_contents have the same behaviour on Windows and on UnixGeorge Roman2018-04-241-14/+3
|
* Add tests for some filesystem functionsGeorge Roman2018-04-191-4/+658
|
* Tests: add unit test for fs.is_fileHisham Muhammad2018-02-221-0/+36
|
* Reorganize test suite filesHisham Muhammad2018-01-081-1/+1
|
* Add a few tests for fs.QPeter Melnichenko2016-10-281-0/+21