summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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
4 files changed, 7 insertions, 0 deletions
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