From 2989f8359d04ce67a3607984fe402a12353e46b3 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 25 Jan 2017 23:55:25 +0000 Subject: Add website.tar test regression from irl/Ana --- COPYING | 25 ++++++++++++++++++++++++- test/create_test_repo.sh | 1 + test/test-gall.repository.lua | 4 ++++ test/website.tar | Bin 0 -> 2641920 bytes test/withrepo.lua | 2 ++ 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 test/website.tar diff --git a/COPYING b/COPYING index a4ddae0..b93186f 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Copyright 2012 Daniel Silverstone +Copyright 2012-2017 Daniel Silverstone 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 Binary files /dev/null and b/test/website.tar 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 -- cgit v1.2.1