From 4949f28c6eb03848742db987a8a495c3f92bca5b Mon Sep 17 00:00:00 2001 From: rubyist Date: Fri, 30 May 2014 10:39:51 -0400 Subject: [PATCH] Integration tests for listing from all .gitattributes files --- integration/repos/attributes.git/HEAD | 1 + integration/repos/attributes.git/config | 7 +++++++ integration/repos/attributes.git/description | 1 + integration/repos/attributes.git/logs/HEAD | 1 + .../repos/attributes.git/logs/refs/heads/master | 1 + .../14/f119a286473fe28416e63c883ef6b5ab699512 | Bin 0 -> 87 bytes .../34/9f277d8de74c7d3ad1ca003f2a3b21f24d14e4 | Bin 0 -> 59 bytes .../8b/b7cf3ae42f7a011f8d7d63b40d18659129c7fb | Bin 0 -> 41 bytes .../a3/b4875424fcb6ca3e2bea1e34703e385c45a60e | Bin 0 -> 41 bytes .../c9/255a018afc88bcf1a683e2bc16f6b7bbabb3f1 | Bin 0 -> 41 bytes .../ec/fd07e549cf9af91ed6776a4d2457c914d47839 | Bin 0 -> 86 bytes .../f5/54c0ff0e7525ec508b489a720a89819cd5d84a | Bin 0 -> 126 bytes .../repos/attributes.git/refs/heads/master | 1 + integration/tests.rb | 10 ++++++++++ 14 files changed, 22 insertions(+) create mode 100644 integration/repos/attributes.git/HEAD create mode 100644 integration/repos/attributes.git/config create mode 100644 integration/repos/attributes.git/description create mode 100644 integration/repos/attributes.git/logs/HEAD create mode 100644 integration/repos/attributes.git/logs/refs/heads/master create mode 100644 integration/repos/attributes.git/objects/14/f119a286473fe28416e63c883ef6b5ab699512 create mode 100644 integration/repos/attributes.git/objects/34/9f277d8de74c7d3ad1ca003f2a3b21f24d14e4 create mode 100644 integration/repos/attributes.git/objects/8b/b7cf3ae42f7a011f8d7d63b40d18659129c7fb create mode 100644 integration/repos/attributes.git/objects/a3/b4875424fcb6ca3e2bea1e34703e385c45a60e create mode 100644 integration/repos/attributes.git/objects/c9/255a018afc88bcf1a683e2bc16f6b7bbabb3f1 create mode 100644 integration/repos/attributes.git/objects/ec/fd07e549cf9af91ed6776a4d2457c914d47839 create mode 100644 integration/repos/attributes.git/objects/f5/54c0ff0e7525ec508b489a720a89819cd5d84a create mode 100644 integration/repos/attributes.git/refs/heads/master diff --git a/integration/repos/attributes.git/HEAD b/integration/repos/attributes.git/HEAD new file mode 100644 index 00000000..cb089cd8 --- /dev/null +++ b/integration/repos/attributes.git/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/integration/repos/attributes.git/config b/integration/repos/attributes.git/config new file mode 100644 index 00000000..6c9406b7 --- /dev/null +++ b/integration/repos/attributes.git/config @@ -0,0 +1,7 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true + ignorecase = true + precomposeunicode = true diff --git a/integration/repos/attributes.git/description b/integration/repos/attributes.git/description new file mode 100644 index 00000000..498b267a --- /dev/null +++ b/integration/repos/attributes.git/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/integration/repos/attributes.git/logs/HEAD b/integration/repos/attributes.git/logs/HEAD new file mode 100644 index 00000000..84d7ba70 --- /dev/null +++ b/integration/repos/attributes.git/logs/HEAD @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 f554c0ff0e7525ec508b489a720a89819cd5d84a rubyist 1401460589 -0400 commit (initial): attributes diff --git a/integration/repos/attributes.git/logs/refs/heads/master b/integration/repos/attributes.git/logs/refs/heads/master new file mode 100644 index 00000000..84d7ba70 --- /dev/null +++ b/integration/repos/attributes.git/logs/refs/heads/master @@ -0,0 +1 @@ +0000000000000000000000000000000000000000 f554c0ff0e7525ec508b489a720a89819cd5d84a rubyist 1401460589 -0400 commit (initial): attributes diff --git a/integration/repos/attributes.git/objects/14/f119a286473fe28416e63c883ef6b5ab699512 b/integration/repos/attributes.git/objects/14/f119a286473fe28416e63c883ef6b5ab699512 new file mode 100644 index 0000000000000000000000000000000000000000..764a8c70352c51b606f2e05e30a7b4eff5e02506 GIT binary patch literal 87 zcmV-d0I2_X0V^p=O;s>AU@$Z=Ff%bx&`ZxONh~QT%1kOPNiAkLsT#%D^`~Rc$7Rir t_K1DkzI*lNk0u5{ppeM$<}dqG&-1f>%3UkZ@>K~xDRQO45&*d3A4VlXr?Ff%bx&`ZxONh~QT%1kOPNiAkryrn%v<4Wzf<~&rDND%giZBEwar`P037D&`mDNN#g4Wzf##eA^Mt literal 0 HcmV?d00001 diff --git a/integration/repos/attributes.git/objects/c9/255a018afc88bcf1a683e2bc16f6b7bbabb3f1 b/integration/repos/attributes.git/objects/c9/255a018afc88bcf1a683e2bc16f6b7bbabb3f1 new file mode 100644 index 0000000000000000000000000000000000000000..8245497369a3324b0ad2f3dec05c8432d4d72ff9 GIT binary patch literal 41 zcmV+^0M`F_0ZYosPf{>4Wzf>gDo9sI%giZBEwar`P037D&`mDNN#gAU@$Z=Ff%bx&`ZxONh~QT%1kOPNiAmR-hSTdiGCHMd~a>? s7G8bBxXsLbx#@ zO0W$eWgWc@rlF1&JbF`OG}wG`x%iYEXptA6lO(P3?H9|(RVVXNGSU3J-kr}?jylJ4 g7Zq5qTukz=tWsjry=44L7MYoPS&WzX0aQaeVZB2-VgLXD literal 0 HcmV?d00001 diff --git a/integration/repos/attributes.git/refs/heads/master b/integration/repos/attributes.git/refs/heads/master new file mode 100644 index 00000000..e673ca64 --- /dev/null +++ b/integration/repos/attributes.git/refs/heads/master @@ -0,0 +1 @@ +f554c0ff0e7525ec508b489a720a89819cd5d84a diff --git a/integration/tests.rb b/integration/tests.rb index 4b3bac39..34bd39b0 100644 --- a/integration/tests.rb +++ b/integration/tests.rb @@ -81,4 +81,14 @@ TempDir=#{File.join Suite.tmp, "git-media"} END end +Suite.test :attributes do |t| + t.command "path", + <<-END +Listing paths + *.jpg (.gitattributes) + *.gif (a/.gitattributes) + *.png (a/b/.gitattributes) + END +end + Suite.run!