diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-04-04 23:32:09 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-04-05 17:32:15 -0300 |
| commit | 15d71214638c6f7f808b838cfc4215ece0a53101 (patch) | |
| tree | 9257a042e7bae73aa6aacf03885db03a13091f44 /spec/quick | |
| parent | 8c4b4cf98ab1b46b24db3f1c6478bb8d521720e8 (diff) | |
| download | luarocks-15d71214638c6f7f808b838cfc4215ece0a53101.tar.gz luarocks-15d71214638c6f7f808b838cfc4215ece0a53101.tar.bz2 luarocks-15d71214638c6f7f808b838cfc4215ece0a53101.zip | |
fix(build): ensure --force works for build
Diffstat (limited to 'spec/quick')
| -rw-r--r-- | spec/quick/build.q | 8 | ||||
| -rw-r--r-- | spec/quick/make.q | 37 |
2 files changed, 45 insertions, 0 deletions
diff --git a/spec/quick/build.q b/spec/quick/build.q index 4d0f6f9f..d0d6a890 100644 --- a/spec/quick/build.q +++ b/spec/quick/build.q | |||
| @@ -214,6 +214,14 @@ Use --force to reinstall | |||
| 214 | -------------------------------------------------------------------------------- | 214 | -------------------------------------------------------------------------------- |
| 215 | 215 | ||
| 216 | 216 | ||
| 217 | RUN: luarocks build a_rock-1.0-1.rockspec --force | ||
| 218 | NOT_STDOUT: | ||
| 219 | -------------------------------------------------------------------------------- | ||
| 220 | a_rock 1.0-1 is already installed | ||
| 221 | Use --force to reinstall | ||
| 222 | -------------------------------------------------------------------------------- | ||
| 223 | |||
| 224 | |||
| 217 | 225 | ||
| 218 | ================================================================================ | 226 | ================================================================================ |
| 219 | TEST: supports --pin #pinning | 227 | TEST: supports --pin #pinning |
diff --git a/spec/quick/make.q b/spec/quick/make.q index c77bb499..eb3472b6 100644 --- a/spec/quick/make.q +++ b/spec/quick/make.q | |||
| @@ -49,3 +49,40 @@ return { | |||
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | -------------------------------------------------------------------------------- | 51 | -------------------------------------------------------------------------------- |
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | ================================================================================ | ||
| 56 | TEST: running make twice builds twice | ||
| 57 | |||
| 58 | FILE: test-2.0-1.rockspec | ||
| 59 | -------------------------------------------------------------------------------- | ||
| 60 | package = "test" | ||
| 61 | version = "2.0-1" | ||
| 62 | source = { | ||
| 63 | url = "file://%{path(tmpdir)}/test.lua" | ||
| 64 | } | ||
| 65 | build = { | ||
| 66 | type = "builtin", | ||
| 67 | modules = { | ||
| 68 | test = "test.lua" | ||
| 69 | } | ||
| 70 | } | ||
| 71 | -------------------------------------------------------------------------------- | ||
| 72 | |||
| 73 | FILE: test.lua | ||
| 74 | -------------------------------------------------------------------------------- | ||
| 75 | return {} | ||
| 76 | -------------------------------------------------------------------------------- | ||
| 77 | |||
| 78 | RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules | ||
| 79 | STDOUT: | ||
| 80 | -------------------------------------------------------------------------------- | ||
| 81 | test 2.0-1 is now installed | ||
| 82 | -------------------------------------------------------------------------------- | ||
| 83 | |||
| 84 | RUN: luarocks make --only-server=%{fixtures_dir}/a_repo --pin --tree=lua_modules | ||
| 85 | STDOUT: | ||
| 86 | -------------------------------------------------------------------------------- | ||
| 87 | test 2.0-1 is now installed | ||
| 88 | -------------------------------------------------------------------------------- | ||
