diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-05-07 11:22:07 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-05-07 19:27:37 -0300 |
| commit | 1dcdaa77c0a52ad02f49bc7fdde2fd7dee956ddf (patch) | |
| tree | 30a6e8dbabc0e36b3a9ff25dfde2fa60327ae402 /spec/fixtures | |
| parent | 5bff41c6b4adac49c0456f125c9f208b0a429d86 (diff) | |
| download | luarocks-1dcdaa77c0a52ad02f49bc7fdde2fd7dee956ddf.tar.gz luarocks-1dcdaa77c0a52ad02f49bc7fdde2fd7dee956ddf.tar.bz2 luarocks-1dcdaa77c0a52ad02f49bc7fdde2fd7dee956ddf.zip | |
Tests: test the "busted" backend of `luarocks test` with a local fixture
Diffstat (limited to 'spec/fixtures')
| -rw-r--r-- | spec/fixtures/a_repo/busted_project-0.1-1.rockspec | 19 | ||||
| -rw-r--r-- | spec/fixtures/a_repo/busted_project-0.1-1.src.rock | bin | 0 -> 937 bytes | |||
| -rw-r--r-- | spec/fixtures/a_repo/manifest | 10 | ||||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.1 | 10 | ||||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.1.zip | bin | 0 -> 350 bytes | |||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.2 | 10 | ||||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.2.zip | bin | 0 -> 350 bytes | |||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.3 | 10 | ||||
| -rw-r--r-- | spec/fixtures/a_repo/manifest-5.3.zip | bin | 0 -> 350 bytes | |||
| -rw-r--r-- | spec/fixtures/busted_project-0.1-1.rockspec | 19 | ||||
| -rw-r--r-- | spec/fixtures/busted_project-0.1.tar.gz | bin | 0 -> 345 bytes |
11 files changed, 78 insertions, 0 deletions
diff --git a/spec/fixtures/a_repo/busted_project-0.1-1.rockspec b/spec/fixtures/a_repo/busted_project-0.1-1.rockspec new file mode 100644 index 00000000..54ed28a5 --- /dev/null +++ b/spec/fixtures/a_repo/busted_project-0.1-1.rockspec | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | rockspec_format = "3.0" | ||
| 2 | package = "busted_project" | ||
| 3 | version = "0.1-1" | ||
| 4 | source = { | ||
| 5 | url = "http://localhost:8080/file/busted_project-0.1.tar.gz", | ||
| 6 | dir = "busted_project", | ||
| 7 | } | ||
| 8 | description = { | ||
| 9 | summary = "A project that uses Busted tests", | ||
| 10 | } | ||
| 11 | build = { | ||
| 12 | type = "builtin", | ||
| 13 | modules = { | ||
| 14 | sum = "sum.lua", | ||
| 15 | } | ||
| 16 | } | ||
| 17 | test = { | ||
| 18 | type = "busted", | ||
| 19 | } | ||
diff --git a/spec/fixtures/a_repo/busted_project-0.1-1.src.rock b/spec/fixtures/a_repo/busted_project-0.1-1.src.rock new file mode 100644 index 00000000..db924117 --- /dev/null +++ b/spec/fixtures/a_repo/busted_project-0.1-1.src.rock | |||
| Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifest b/spec/fixtures/a_repo/manifest index 1a5f8d55..3b01b427 100644 --- a/spec/fixtures/a_repo/manifest +++ b/spec/fixtures/a_repo/manifest | |||
| @@ -21,6 +21,16 @@ repository = { | |||
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | }, | 23 | }, |
| 24 | busted_project = { | ||
| 25 | ["0.1-1"] = { | ||
| 26 | { | ||
| 27 | arch = "src" | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | arch = "rockspec" | ||
| 31 | } | ||
| 32 | } | ||
| 33 | }, | ||
| 24 | has_another_namespaced_dep = { | 34 | has_another_namespaced_dep = { |
| 25 | ["1.0-1"] = { | 35 | ["1.0-1"] = { |
| 26 | { | 36 | { |
diff --git a/spec/fixtures/a_repo/manifest-5.1 b/spec/fixtures/a_repo/manifest-5.1 index 1a5f8d55..3b01b427 100644 --- a/spec/fixtures/a_repo/manifest-5.1 +++ b/spec/fixtures/a_repo/manifest-5.1 | |||
| @@ -21,6 +21,16 @@ repository = { | |||
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | }, | 23 | }, |
| 24 | busted_project = { | ||
| 25 | ["0.1-1"] = { | ||
| 26 | { | ||
| 27 | arch = "src" | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | arch = "rockspec" | ||
| 31 | } | ||
| 32 | } | ||
| 33 | }, | ||
| 24 | has_another_namespaced_dep = { | 34 | has_another_namespaced_dep = { |
| 25 | ["1.0-1"] = { | 35 | ["1.0-1"] = { |
| 26 | { | 36 | { |
diff --git a/spec/fixtures/a_repo/manifest-5.1.zip b/spec/fixtures/a_repo/manifest-5.1.zip new file mode 100644 index 00000000..7b53aeb0 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.1.zip | |||
| Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifest-5.2 b/spec/fixtures/a_repo/manifest-5.2 index 1a5f8d55..3b01b427 100644 --- a/spec/fixtures/a_repo/manifest-5.2 +++ b/spec/fixtures/a_repo/manifest-5.2 | |||
| @@ -21,6 +21,16 @@ repository = { | |||
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | }, | 23 | }, |
| 24 | busted_project = { | ||
| 25 | ["0.1-1"] = { | ||
| 26 | { | ||
| 27 | arch = "src" | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | arch = "rockspec" | ||
| 31 | } | ||
| 32 | } | ||
| 33 | }, | ||
| 24 | has_another_namespaced_dep = { | 34 | has_another_namespaced_dep = { |
| 25 | ["1.0-1"] = { | 35 | ["1.0-1"] = { |
| 26 | { | 36 | { |
diff --git a/spec/fixtures/a_repo/manifest-5.2.zip b/spec/fixtures/a_repo/manifest-5.2.zip new file mode 100644 index 00000000..d2eddc40 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.2.zip | |||
| Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifest-5.3 b/spec/fixtures/a_repo/manifest-5.3 index 1a5f8d55..3b01b427 100644 --- a/spec/fixtures/a_repo/manifest-5.3 +++ b/spec/fixtures/a_repo/manifest-5.3 | |||
| @@ -21,6 +21,16 @@ repository = { | |||
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | }, | 23 | }, |
| 24 | busted_project = { | ||
| 25 | ["0.1-1"] = { | ||
| 26 | { | ||
| 27 | arch = "src" | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | arch = "rockspec" | ||
| 31 | } | ||
| 32 | } | ||
| 33 | }, | ||
| 24 | has_another_namespaced_dep = { | 34 | has_another_namespaced_dep = { |
| 25 | ["1.0-1"] = { | 35 | ["1.0-1"] = { |
| 26 | { | 36 | { |
diff --git a/spec/fixtures/a_repo/manifest-5.3.zip b/spec/fixtures/a_repo/manifest-5.3.zip new file mode 100644 index 00000000..686fe232 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.3.zip | |||
| Binary files differ | |||
diff --git a/spec/fixtures/busted_project-0.1-1.rockspec b/spec/fixtures/busted_project-0.1-1.rockspec new file mode 100644 index 00000000..54ed28a5 --- /dev/null +++ b/spec/fixtures/busted_project-0.1-1.rockspec | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | rockspec_format = "3.0" | ||
| 2 | package = "busted_project" | ||
| 3 | version = "0.1-1" | ||
| 4 | source = { | ||
| 5 | url = "http://localhost:8080/file/busted_project-0.1.tar.gz", | ||
| 6 | dir = "busted_project", | ||
| 7 | } | ||
| 8 | description = { | ||
| 9 | summary = "A project that uses Busted tests", | ||
| 10 | } | ||
| 11 | build = { | ||
| 12 | type = "builtin", | ||
| 13 | modules = { | ||
| 14 | sum = "sum.lua", | ||
| 15 | } | ||
| 16 | } | ||
| 17 | test = { | ||
| 18 | type = "busted", | ||
| 19 | } | ||
diff --git a/spec/fixtures/busted_project-0.1.tar.gz b/spec/fixtures/busted_project-0.1.tar.gz new file mode 100644 index 00000000..bd4e055b --- /dev/null +++ b/spec/fixtures/busted_project-0.1.tar.gz | |||
| Binary files differ | |||
