summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-25 23:55:25 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-25 23:55:25 +0000
commit2989f8359d04ce67a3607984fe402a12353e46b3 (patch)
tree964dfcba406d55b379eb5883d5e1493bb4336319
parent5bd77066d7b612e9f60b5e63d7cad6b34189ed23 (diff)
downloadgall-2989f8359d04ce67a3607984fe402a12353e46b3.tar.bz2
Add website.tar test regression from irl/Anav1.2
-rw-r--r--COPYING25
-rw-r--r--test/create_test_repo.sh1
-rw-r--r--test/test-gall.repository.lua4
-rw-r--r--test/website.tarbin0 -> 2641920 bytes
-rw-r--r--test/withrepo.lua2
5 files changed, 31 insertions, 1 deletions
diff --git a/COPYING b/COPYING
index a4ddae0..b93186f 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright 2012 Daniel Silverstone <dsilvers@digital-scurf.org>
+Copyright 2012-2017 Daniel Silverstone <dsilvers@digital-scurf.org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -24,3 +24,26 @@ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
+
+The file test/website.tar contains content which is under the following licence
+terms:
+
+Copyright 2016 Kishan B, 2017 Ana Custura
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/test/create_test_repo.sh b/test/create_test_repo.sh
index 8e01b4d..9a1ff9d 100644
--- a/test/create_test_repo.sh
+++ b/test/create_test_repo.sh
@@ -4,3 +4,4 @@ cd test
tar xf test_repo.tar
tar xf lorries-broken.tar
+tar xf website.tar
diff --git a/test/test-gall.repository.lua b/test/test-gall.repository.lua
index a22ce45..79bbc7e 100644
--- a/test/test-gall.repository.lua
+++ b/test/test-gall.repository.lua
@@ -230,6 +230,10 @@ function suite.merge_base_lorries_regression()
assert(repo:merge_base(sha_1, sha_2) == sha_b)
end
+function suite.ana_website_regression()
+ assert(test_repo("website.git"))
+end
+
function suite.rev_list()
local repo = test_repo()
local sha_new = "0b65c32b6a5277ff0e75ddad9e3914148914042d"
diff --git a/test/website.tar b/test/website.tar
new file mode 100644
index 0000000..2787aae
--- /dev/null
+++ b/test/website.tar
Binary files differ
diff --git a/test/withrepo.lua b/test/withrepo.lua
index 0795993..5b33176 100644
--- a/test/withrepo.lua
+++ b/test/withrepo.lua
@@ -8,9 +8,11 @@ local _xpcall = xpcall
function xpcall(fn, tb)
os.execute("rm -rf test/test_repo")
os.execute("rm -rf test/lorries.git")
+ os.execute("rm -rf test/website.git")
local ok, msg = _xpcall(fn, tb)
os.execute("rm -rf test/test_repo")
os.execute("rm -rf test/lorries.git")
+ os.execute("rm -rf test/website.git")
return ok, msg
end