diff options
author | Ben Straub <ben@straubnet.net> | 2012-03-31 16:10:01 -0700 |
---|---|---|
committer | Ben Straub <ben@straubnet.net> | 2012-03-31 16:10:01 -0700 |
commit | fd29cd13b70b9a3a90ca605e2d1a633a08f1daf7 (patch) | |
tree | cfce1a9713e13e273c83a2ba3075fa28c2083fe7 /tests | |
parent | 270303ca7ab82d7600b77b3f65d2d25ee6299af3 (diff) | |
download | libgit2-fd29cd13b70b9a3a90ca605e2d1a633a08f1daf7.tar.gz |
Moved testing resources to clar, and removed old tests directory.
Removed the BUILD_CLAR CMake flag, and updated the readme.
Diffstat (limited to 'tests')
275 files changed, 0 insertions, 1297 deletions
diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index 690624bdf..000000000 --- a/tests/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.toc diff --git a/tests/NAMING b/tests/NAMING deleted file mode 100644 index c2da0163f..000000000 --- a/tests/NAMING +++ /dev/null @@ -1,52 +0,0 @@ -Test sources should be named: - - t????-function.c - -where ???? is a four digit code. The first two digits classify -the test into a major category; the final two digits indicate the -sequence of the test within that category. The function part of -the test name should give a rough indication of what it does. - -Categories ----------- - -00__: Core library routines based only on the standard library, - and that are essential for everything else to run. E.g. - errno and malloc. - -01__: Basic hashing functions, needed to handle the content - addressable store. - -02__: Basic object read access. - -03__: Basic object writing. - -04__: Parsing and loading commit data - -05__: Revision walking - -06__: Index reading, writing and searching - -07__: Tests for the internal hashtable code - -08__: Tag reading and writing - -09__: Reading tree objects - -10__: Symbolic, loose and packed references reading and writing. - -11__: SQLite backend - -12__: Repository init and opening - -13__: Threads, empty as of now - -14__: Redis backend - -15__: Configuration parsing - -16__: Remotes - -17__: Buffers - -18__: File Status diff --git a/tests/resources/.gitattributes b/tests/resources/.gitattributes deleted file mode 100644 index 556f8c827..000000000 --- a/tests/resources/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* binary diff --git a/tests/resources/.gitignore b/tests/resources/.gitignore deleted file mode 100644 index 43a19cc9d..000000000 --- a/tests/resources/.gitignore +++ /dev/null @@ -1 +0,0 @@ -discover.git diff --git a/tests/resources/attr/.gitted/HEAD b/tests/resources/attr/.gitted/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/attr/.gitted/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/attr/.gitted/config b/tests/resources/attr/.gitted/config deleted file mode 100644 index af107929f..000000000 --- a/tests/resources/attr/.gitted/config +++ /dev/null @@ -1,6 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true diff --git a/tests/resources/attr/.gitted/description b/tests/resources/attr/.gitted/description deleted file mode 100644 index 498b267a8..000000000 --- a/tests/resources/attr/.gitted/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/resources/attr/.gitted/index b/tests/resources/attr/.gitted/index Binary files differdeleted file mode 100644 index 19fa99d5b..000000000 --- a/tests/resources/attr/.gitted/index +++ /dev/null diff --git a/tests/resources/attr/.gitted/info/attributes b/tests/resources/attr/.gitted/info/attributes deleted file mode 100644 index 5fe62a37a..000000000 --- a/tests/resources/attr/.gitted/info/attributes +++ /dev/null @@ -1,4 +0,0 @@ -* repoattr -a* foo !bar -baz -sub/*.txt reposub -sub/sub/*.txt reposubsub diff --git a/tests/resources/attr/.gitted/info/exclude b/tests/resources/attr/.gitted/info/exclude deleted file mode 100644 index a5196d1be..000000000 --- a/tests/resources/attr/.gitted/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/resources/attr/.gitted/logs/HEAD b/tests/resources/attr/.gitted/logs/HEAD deleted file mode 100644 index 68fcff2c5..000000000 --- a/tests/resources/attr/.gitted/logs/HEAD +++ /dev/null @@ -1,6 +0,0 @@ -0000000000000000000000000000000000000000 6bab5c79cd5140d0f800917f550eb2a3dc32b0da Russell Belfer <arrbee@arrbee.com> 1324416995 -0800 commit (initial): initial test data -6bab5c79cd5140d0f800917f550eb2a3dc32b0da 605812ab7fe421fdd325a935d35cb06a9234a7d7 Russell Belfer <arrbee@arrbee.com> 1325143098 -0800 commit: latest test updates -605812ab7fe421fdd325a935d35cb06a9234a7d7 a5d76cad53f66f1312bd995909a5bab3c0820770 Russell Belfer <arrbee@arrbee.com> 1325281762 -0800 commit: more macro tests -a5d76cad53f66f1312bd995909a5bab3c0820770 370fe9ec224ce33e71f9e5ec2bd1142ce9937a6a Russell Belfer <arrbee@arrbee.com> 1327611749 -0800 commit: Updating files so we can do diffs -370fe9ec224ce33e71f9e5ec2bd1142ce9937a6a f5b0af1fb4f5c0cd7aad880711d368a07333c307 Russell Belfer <arrbee@arrbee.com> 1327621027 -0800 commit: Updating test data -f5b0af1fb4f5c0cd7aad880711d368a07333c307 a97cc019851d401a4f1d091cb91a15890a0dd1ba Russell Belfer <arrbee@arrbee.com> 1328653313 -0800 commit: Some whitespace only changes for testing purposes diff --git a/tests/resources/attr/.gitted/logs/refs/heads/master b/tests/resources/attr/.gitted/logs/refs/heads/master deleted file mode 100644 index 68fcff2c5..000000000 --- a/tests/resources/attr/.gitted/logs/refs/heads/master +++ /dev/null @@ -1,6 +0,0 @@ -0000000000000000000000000000000000000000 6bab5c79cd5140d0f800917f550eb2a3dc32b0da Russell Belfer <arrbee@arrbee.com> 1324416995 -0800 commit (initial): initial test data -6bab5c79cd5140d0f800917f550eb2a3dc32b0da 605812ab7fe421fdd325a935d35cb06a9234a7d7 Russell Belfer <arrbee@arrbee.com> 1325143098 -0800 commit: latest test updates -605812ab7fe421fdd325a935d35cb06a9234a7d7 a5d76cad53f66f1312bd995909a5bab3c0820770 Russell Belfer <arrbee@arrbee.com> 1325281762 -0800 commit: more macro tests -a5d76cad53f66f1312bd995909a5bab3c0820770 370fe9ec224ce33e71f9e5ec2bd1142ce9937a6a Russell Belfer <arrbee@arrbee.com> 1327611749 -0800 commit: Updating files so we can do diffs -370fe9ec224ce33e71f9e5ec2bd1142ce9937a6a f5b0af1fb4f5c0cd7aad880711d368a07333c307 Russell Belfer <arrbee@arrbee.com> 1327621027 -0800 commit: Updating test data -f5b0af1fb4f5c0cd7aad880711d368a07333c307 a97cc019851d401a4f1d091cb91a15890a0dd1ba Russell Belfer <arrbee@arrbee.com> 1328653313 -0800 commit: Some whitespace only changes for testing purposes diff --git a/tests/resources/attr/.gitted/objects/10/8bb4e7fd7b16490dc33ff7d972151e73d7166e b/tests/resources/attr/.gitted/objects/10/8bb4e7fd7b16490dc33ff7d972151e73d7166e Binary files differdeleted file mode 100644 index edcf7520c..000000000 --- a/tests/resources/attr/.gitted/objects/10/8bb4e7fd7b16490dc33ff7d972151e73d7166e +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b b/tests/resources/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b Binary files differdeleted file mode 100644 index ad84f0854..000000000 --- a/tests/resources/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/2b/40c5aca159b04ea8d20ffe36cdf8b09369b14a b/tests/resources/attr/.gitted/objects/2b/40c5aca159b04ea8d20ffe36cdf8b09369b14a deleted file mode 100644 index 0e2368069..000000000 --- a/tests/resources/attr/.gitted/objects/2b/40c5aca159b04ea8d20ffe36cdf8b09369b14a +++ /dev/null @@ -1 +0,0 @@ -xmPj0=P8ZSchR6{=ob"afv#3ά=7P%[8<He`&]@?aFZ@!.:ldLG|K7~XN8Id}q2cG7l5V_pE#lZGMt[J½&hu][4-3;Cg4x`ZYÌ錻b^>yNlͣ>c;gӐkYX9b|D~Vؗ)vܕ
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2 b/tests/resources/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2 Binary files differdeleted file mode 100644 index 4b75d50eb..000000000 --- a/tests/resources/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9 b/tests/resources/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9 Binary files differdeleted file mode 100644 index e0fd0468e..000000000 --- a/tests/resources/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/37/0fe9ec224ce33e71f9e5ec2bd1142ce9937a6a b/tests/resources/attr/.gitted/objects/37/0fe9ec224ce33e71f9e5ec2bd1142ce9937a6a Binary files differdeleted file mode 100644 index 9c37c5946..000000000 --- a/tests/resources/attr/.gitted/objects/37/0fe9ec224ce33e71f9e5ec2bd1142ce9937a6a +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/3a/6df026462ebafe455af9867d27eda20a9e0974 b/tests/resources/attr/.gitted/objects/3a/6df026462ebafe455af9867d27eda20a9e0974 Binary files differdeleted file mode 100644 index c74add826..000000000 --- a/tests/resources/attr/.gitted/objects/3a/6df026462ebafe455af9867d27eda20a9e0974 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292 b/tests/resources/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292 Binary files differdeleted file mode 100644 index e5cef35fa..000000000 --- a/tests/resources/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249 b/tests/resources/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249 Binary files differdeleted file mode 100644 index 091d79b14..000000000 --- a/tests/resources/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d b/tests/resources/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d Binary files differdeleted file mode 100644 index 5b58ef024..000000000 --- a/tests/resources/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/4d/713dc48e6b1bd75b0d61ad078ba9ca3a56745d b/tests/resources/attr/.gitted/objects/4d/713dc48e6b1bd75b0d61ad078ba9ca3a56745d deleted file mode 100644 index eb1e8d0c5..000000000 --- a/tests/resources/attr/.gitted/objects/4d/713dc48e6b1bd75b0d61ad078ba9ca3a56745d +++ /dev/null @@ -1,2 +0,0 @@ -x
@WŶ -|k 9n$}g:;51e4\k_]ރ٭hDk'~
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3 b/tests/resources/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3 Binary files differdeleted file mode 100644 index 4bcff1faa..000000000 --- a/tests/resources/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/58/19a185d77b03325aaf87cafc771db36f6ddca7 b/tests/resources/attr/.gitted/objects/58/19a185d77b03325aaf87cafc771db36f6ddca7 Binary files differdeleted file mode 100644 index fe34eb63a..000000000 --- a/tests/resources/attr/.gitted/objects/58/19a185d77b03325aaf87cafc771db36f6ddca7 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7 b/tests/resources/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7 deleted file mode 100644 index b0cc51ee6..000000000 --- a/tests/resources/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7 +++ /dev/null @@ -1,2 +0,0 @@ -xN
0;S˻BU J ?lٖygcáU RbacG;l㠝Dq֠ZʫAH<Ǒ3N=J2d3[0= -}ۤIjM"x/[TwU&[/k(tJL
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da b/tests/resources/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da deleted file mode 100644 index f51e11ccc..000000000 --- a/tests/resources/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da +++ /dev/null @@ -1,3 +0,0 @@ -x 0E)@d'~@(#tQiQn(Pm"Ř2hsL+d{"{Z`u -O4Y[;@>MSOmʧh -*<-
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/6d/968d62c89c7d9ea23a4c9a7b665d017c3d8ffd b/tests/resources/attr/.gitted/objects/6d/968d62c89c7d9ea23a4c9a7b665d017c3d8ffd Binary files differdeleted file mode 100644 index e832241c9..000000000 --- a/tests/resources/attr/.gitted/objects/6d/968d62c89c7d9ea23a4c9a7b665d017c3d8ffd +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/71/7fc31f6b84f9d6fc3a4edbca259d7fc92beee2 b/tests/resources/attr/.gitted/objects/71/7fc31f6b84f9d6fc3a4edbca259d7fc92beee2 Binary files differdeleted file mode 100644 index a80265cac..000000000 --- a/tests/resources/attr/.gitted/objects/71/7fc31f6b84f9d6fc3a4edbca259d7fc92beee2 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857 b/tests/resources/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857 Binary files differdeleted file mode 100644 index a9ddf5d20..000000000 --- a/tests/resources/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/96/089fd31ce1d3ee2afb0ba09ba063066932f027 b/tests/resources/attr/.gitted/objects/96/089fd31ce1d3ee2afb0ba09ba063066932f027 Binary files differdeleted file mode 100644 index efa62f912..000000000 --- a/tests/resources/attr/.gitted/objects/96/089fd31ce1d3ee2afb0ba09ba063066932f027 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9 b/tests/resources/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9 Binary files differdeleted file mode 100644 index 8f5acc70a..000000000 --- a/tests/resources/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9 b/tests/resources/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9 Binary files differdeleted file mode 100644 index 7663ad0ad..000000000 --- a/tests/resources/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320 b/tests/resources/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320 Binary files differdeleted file mode 100644 index d898ae9b8..000000000 --- a/tests/resources/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/a5/d76cad53f66f1312bd995909a5bab3c0820770 b/tests/resources/attr/.gitted/objects/a5/d76cad53f66f1312bd995909a5bab3c0820770 deleted file mode 100644 index cd6a389f9..000000000 --- a/tests/resources/attr/.gitted/objects/a5/d76cad53f66f1312bd995909a5bab3c0820770 +++ /dev/null @@ -1,4 +0,0 @@ -x] -!E{vB>!"ZB;u3Cm {.7Z4avfgBLEeP;NQڬBLAnŲI 5I)M6ZQ[ -h3e: -
}u};|)z&pbq?3TJ13JX
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/a9/7cc019851d401a4f1d091cb91a15890a0dd1ba b/tests/resources/attr/.gitted/objects/a9/7cc019851d401a4f1d091cb91a15890a0dd1ba deleted file mode 100644 index 1a7ec0c55..000000000 --- a/tests/resources/attr/.gitted/objects/a9/7cc019851d401a4f1d091cb91a15890a0dd1ba +++ /dev/null @@ -1,2 +0,0 @@ -xQj0DS[hc;PJ( $qޠ_3oIK+BtI|LgƈŐR4'=qFN64 -J1FrzW[rV6-i7.eVW;X,
mwl|]ṬMɢdRwC[W9sj~Wy
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7 b/tests/resources/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7 Binary files differdeleted file mode 100644 index 11dc63c79..000000000 --- a/tests/resources/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c b/tests/resources/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c Binary files differdeleted file mode 100644 index 58569ca0e..000000000 --- a/tests/resources/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d b/tests/resources/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d Binary files differdeleted file mode 100644 index 39aedb7d9..000000000 --- a/tests/resources/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/c9/6bbb2c2557a8325ae1559e3ba79cdcecb23076 b/tests/resources/attr/.gitted/objects/c9/6bbb2c2557a8325ae1559e3ba79cdcecb23076 deleted file mode 100644 index 589f9ad31..000000000 --- a/tests/resources/attr/.gitted/objects/c9/6bbb2c2557a8325ae1559e3ba79cdcecb23076 +++ /dev/null @@ -1,2 +0,0 @@ -x5A -0D]SεouJ~L0ͯ)xcfp]OOΊcB6!뢘ó{,U<Cj[E--&#)~=;;{.e"3A
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/d5/7da33c16b14326ecb05d19bbea908f5e4c47d9 b/tests/resources/attr/.gitted/objects/d5/7da33c16b14326ecb05d19bbea908f5e4c47d9 Binary files differdeleted file mode 100644 index b96d40c24..000000000 --- a/tests/resources/attr/.gitted/objects/d5/7da33c16b14326ecb05d19bbea908f5e4c47d9 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2 b/tests/resources/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2 Binary files differdeleted file mode 100644 index 83f3b726d..000000000 --- a/tests/resources/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941 b/tests/resources/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941 Binary files differdeleted file mode 100644 index ef62f8b9d..000000000 --- a/tests/resources/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4 b/tests/resources/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4 Binary files differdeleted file mode 100644 index 1bc1f0f0b..000000000 --- a/tests/resources/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165 b/tests/resources/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165 Binary files differdeleted file mode 100644 index 27a25dc86..000000000 --- a/tests/resources/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/f5/b0af1fb4f5c0cd7aad880711d368a07333c307 b/tests/resources/attr/.gitted/objects/f5/b0af1fb4f5c0cd7aad880711d368a07333c307 deleted file mode 100644 index 21faeb8a2..000000000 --- a/tests/resources/attr/.gitted/objects/f5/b0af1fb4f5c0cd7aad880711d368a07333c307 +++ /dev/null @@ -1,2 +0,0 @@ -xN[j1̷O4RbPJ -=;N
A?y 1y~7Z(2be8uJanF.H"UD_HIsvZwL=0TZG_UbKo̮}cv?h<aoԵ_EK
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78 b/tests/resources/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78 Binary files differdeleted file mode 100644 index 6c8ff837e..000000000 --- a/tests/resources/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78 +++ /dev/null diff --git a/tests/resources/attr/.gitted/objects/fe/773770c5a6cc7185580c9204b1ff18a33ff3fc b/tests/resources/attr/.gitted/objects/fe/773770c5a6cc7185580c9204b1ff18a33ff3fc deleted file mode 100644 index e6fcbc0b3..000000000 --- a/tests/resources/attr/.gitted/objects/fe/773770c5a6cc7185580c9204b1ff18a33ff3fc +++ /dev/null @@ -1 +0,0 @@ -x5A09xBAGvդTУ坝<#1UT釛*MWlOCR2dѵC.TIlQH/mY۬UN[߬B@t8~}}R#č#kAdD_=-H
\ No newline at end of file diff --git a/tests/resources/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b b/tests/resources/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b Binary files differdeleted file mode 100644 index b736c0b2b..000000000 --- a/tests/resources/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b +++ /dev/null diff --git a/tests/resources/attr/.gitted/refs/heads/master b/tests/resources/attr/.gitted/refs/heads/master deleted file mode 100644 index 7f8bbe3e7..000000000 --- a/tests/resources/attr/.gitted/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -a97cc019851d401a4f1d091cb91a15890a0dd1ba diff --git a/tests/resources/attr/attr0 b/tests/resources/attr/attr0 deleted file mode 100644 index 556f8c827..000000000 --- a/tests/resources/attr/attr0 +++ /dev/null @@ -1 +0,0 @@ -* binary diff --git a/tests/resources/attr/attr1 b/tests/resources/attr/attr1 deleted file mode 100644 index 3b74db7ab..000000000 --- a/tests/resources/attr/attr1 +++ /dev/null @@ -1,29 +0,0 @@ -# a comment followed by some blank lines - - - - # another comment that is indented - -# variations on fnmatch - -pat0 attr0 -!pat1 attr1 -pat2/ attr2 -pat3dir/pat3file attr3 -pat4.* attr4 - *.pat5 attr5 -pat6/pat6/*.pat6 attr6 - -pat7[a-e]??[xyz] attr7 # with a comment on the line - -pat8\ with\ spaces attr8 - - invalid # attr with no assignments doesn't count - -also/invalid - -invalid.again/ - -# next attr is at eof - - pat9 attr9
\ No newline at end of file diff --git a/tests/resources/attr/attr2 b/tests/resources/attr/attr2 deleted file mode 100644 index 2c66e14f7..000000000 --- a/tests/resources/attr/attr2 +++ /dev/null @@ -1,21 +0,0 @@ - -# variations on assignments - -pat0 simple -pat1 -neg -* notundef -pat2 !notundef -pat3 assigned=test-value -pat4 rule-with-more-chars=value-with-more-chars -pat5 empty= -pat6 -negempty= -pat7 multiple -single values=1 also=a-really-long-value/* happy=yes! -# the next line has trailing spaces -pat8 again= another=12321 -patbad0 # empty assignment does not count -# next line will be another simple empty assign that should not count - patbad1 - -# BTW I think there are 11 valid rules and two "invalid" empty ones - -pat9 -at-eof
\ No newline at end of file diff --git a/tests/resources/attr/attr3 b/tests/resources/attr/attr3 deleted file mode 100644 index c485abe35..000000000 --- a/tests/resources/attr/attr3 +++ /dev/null @@ -1,4 +0,0 @@ -# These are examples from the git-check-attr.1 man page -*.java diff=java -crlf myAttr -NoMyAttr.java !myAttr -README caveat=unspecified diff --git a/tests/resources/attr/binfile b/tests/resources/attr/binfile deleted file mode 100644 index d800886d9..000000000 --- a/tests/resources/attr/binfile +++ /dev/null @@ -1 +0,0 @@ -123
\ No newline at end of file diff --git a/tests/resources/attr/dir/file b/tests/resources/attr/dir/file deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/attr/dir/file +++ /dev/null diff --git a/tests/resources/attr/file b/tests/resources/attr/file deleted file mode 100644 index 45b983be3..000000000 --- a/tests/resources/attr/file +++ /dev/null @@ -1 +0,0 @@ -hi diff --git a/tests/resources/attr/gitattributes b/tests/resources/attr/gitattributes deleted file mode 100644 index e038983ec..000000000 --- a/tests/resources/attr/gitattributes +++ /dev/null @@ -1,29 +0,0 @@ -* rootattr -root_test2 -rootattr -root_test3 !rootattr -binfile binary -abc foo bar baz -does-not-exist foo=yes - -root_test2 multiattr -root_test3 multi2=foo - -root_test3 multiattr=1 multiattr=2 multiattr=3 multi2=abc !multi2 -root_test2 multiattr=string -multiattr - -[attr]mymacro positive -negative !rootattr -macro* mymacro another=77 - -[attr]macro2 multi2 -multi2 multi3 !multi3 multi3=answer -macro* macro2 macro2 macro2 - -# let's try some malicious macro defs -[attr]firstmacro -thirdmacro -secondmacro -[attr]secondmacro firstmacro -firstmacro -[attr]thirdmacro secondmacro=hahaha - -macro_bad firstmacro secondmacro thirdmacro - -# another test that Peff found was failing -[attr]notest !test - diff --git a/tests/resources/attr/gitignore b/tests/resources/attr/gitignore deleted file mode 100644 index 546d48f3a..000000000 --- a/tests/resources/attr/gitignore +++ /dev/null @@ -1,3 +0,0 @@ -sub -ign -dir/ diff --git a/tests/resources/attr/ign b/tests/resources/attr/ign deleted file mode 100644 index 592fd2594..000000000 --- a/tests/resources/attr/ign +++ /dev/null @@ -1 +0,0 @@ -ignore me diff --git a/tests/resources/attr/macro_bad b/tests/resources/attr/macro_bad deleted file mode 100644 index 5819a185d..000000000 --- a/tests/resources/attr/macro_bad +++ /dev/null @@ -1 +0,0 @@ -boo diff --git a/tests/resources/attr/macro_test b/tests/resources/attr/macro_test deleted file mode 100644 index ff69f8639..000000000 --- a/tests/resources/attr/macro_test +++ /dev/null @@ -1 +0,0 @@ -Yo diff --git a/tests/resources/attr/root_test1 b/tests/resources/attr/root_test1 deleted file mode 100644 index 45141a79a..000000000 --- a/tests/resources/attr/root_test1 +++ /dev/null @@ -1 +0,0 @@ -Hello from the root diff --git a/tests/resources/attr/root_test2 b/tests/resources/attr/root_test2 deleted file mode 100644 index 4d713dc48..000000000 --- a/tests/resources/attr/root_test2 +++ /dev/null @@ -1,6 +0,0 @@ -Hello from the root - -Some additional lines - -Down here below - diff --git a/tests/resources/attr/root_test3 b/tests/resources/attr/root_test3 deleted file mode 100644 index 108bb4e7f..000000000 --- a/tests/resources/attr/root_test3 +++ /dev/null @@ -1,19 +0,0 @@ -Some additional lines - - - Down here below the other lines - - -With even more at the end - - -And lots of good stuff - - -Anywhere you want - - -Don't you think - - - diff --git a/tests/resources/attr/root_test4.txt b/tests/resources/attr/root_test4.txt deleted file mode 100644 index fe773770c..000000000 --- a/tests/resources/attr/root_test4.txt +++ /dev/null @@ -1,14 +0,0 @@ -Here is some stuff at the start - -This should go in one hunk - -Some additional lines - -Down here below the other lines - -With even more at the end - -Followed by a second hunk of stuff - -That happens down here - diff --git a/tests/resources/attr/sub/.gitattributes b/tests/resources/attr/sub/.gitattributes deleted file mode 100644 index 329c1c5b8..000000000 --- a/tests/resources/attr/sub/.gitattributes +++ /dev/null @@ -1,7 +0,0 @@ -* subattr=yes -negattr -*.txt another=zero -sub/*.txt another=one -ab* merge=filfre -abc -foo -bar -*.c frotz -deep/file deepdeep diff --git a/tests/resources/attr/sub/abc b/tests/resources/attr/sub/abc deleted file mode 100644 index 3e42ffc54..000000000 --- a/tests/resources/attr/sub/abc +++ /dev/null @@ -1,37 +0,0 @@ -# Test file from gitattributes(5) example: - -If you have these three gitattributes file: - - (in $GIT_DIR/info/attributes) - - a* foo !bar -baz - - (in .gitattributes) - abc foo bar baz - - (in t/.gitattributes) - ab* merge=filfre - abc -foo -bar - *.c frotz - -the attributes given to path t/abc are computed as follows: - -1. By examining t/.gitattributes (which is in the same directory as the path - in question), git finds that the first line matches. merge attribute is - set. It also finds that the second line matches, and attributes foo and - bar are unset. -2. Then it examines .gitattributes (which is in the parent directory), and - finds that the first line matches, but t/.gitattributes file already - decided how merge, foo and bar attributes should be given to this path, - so it leaves foo and bar unset. Attribute baz is set. -3. Finally it examines $GIT_DIR/info/attributes. This file is used to - override the in-tree settings. The first line is a match, and foo is set, - bar is reverted to unspecified state, and baz is unset. - -As the result, the attributes assignment to t/abc becomes: - - foo set to true - bar unspecified - baz set to false - merge set to string value "filfre" - frotz unspecified diff --git a/tests/resources/attr/sub/dir/file b/tests/resources/attr/sub/dir/file deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/attr/sub/dir/file +++ /dev/null diff --git a/tests/resources/attr/sub/file b/tests/resources/attr/sub/file deleted file mode 100644 index 45b983be3..000000000 --- a/tests/resources/attr/sub/file +++ /dev/null @@ -1 +0,0 @@ -hi diff --git a/tests/resources/attr/sub/ign b/tests/resources/attr/sub/ign deleted file mode 100644 index 592fd2594..000000000 --- a/tests/resources/attr/sub/ign +++ /dev/null @@ -1 +0,0 @@ -ignore me diff --git a/tests/resources/attr/sub/sub/.gitattributes b/tests/resources/attr/sub/sub/.gitattributes deleted file mode 100644 index 55225e4d6..000000000 --- a/tests/resources/attr/sub/sub/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -d/* test=a/b/d/* -d/yes notest - diff --git a/tests/resources/attr/sub/sub/dir b/tests/resources/attr/sub/sub/dir deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/attr/sub/sub/dir +++ /dev/null diff --git a/tests/resources/attr/sub/sub/file b/tests/resources/attr/sub/sub/file deleted file mode 100644 index 45b983be3..000000000 --- a/tests/resources/attr/sub/sub/file +++ /dev/null @@ -1 +0,0 @@ -hi diff --git a/tests/resources/attr/sub/sub/subsub.txt b/tests/resources/attr/sub/sub/subsub.txt deleted file mode 100644 index 9e5bdc47d..000000000 --- a/tests/resources/attr/sub/sub/subsub.txt +++ /dev/null @@ -1 +0,0 @@ -subsub diff --git a/tests/resources/attr/sub/subdir_test1 b/tests/resources/attr/sub/subdir_test1 deleted file mode 100644 index e563cf475..000000000 --- a/tests/resources/attr/sub/subdir_test1 +++ /dev/null @@ -1,2 +0,0 @@ -Hello from the subdir - diff --git a/tests/resources/attr/sub/subdir_test2.txt b/tests/resources/attr/sub/subdir_test2.txt deleted file mode 100644 index fb5067b1a..000000000 --- a/tests/resources/attr/sub/subdir_test2.txt +++ /dev/null @@ -1 +0,0 @@ -Hello again diff --git a/tests/resources/bad_tag.git/HEAD b/tests/resources/bad_tag.git/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/bad_tag.git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/bad_tag.git/config b/tests/resources/bad_tag.git/config deleted file mode 100644 index 2f8958058..000000000 --- a/tests/resources/bad_tag.git/config +++ /dev/null @@ -1,5 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = true - logallrefupdates = true diff --git a/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.idx b/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.idx Binary files differdeleted file mode 100644 index c404aa15b..000000000 --- a/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.idx +++ /dev/null diff --git a/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.pack b/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.pack Binary files differdeleted file mode 100644 index 90eac5032..000000000 --- a/tests/resources/bad_tag.git/objects/pack/pack-7a28f4e000a17f49a41d7a79fc2f762a8a7d9164.pack +++ /dev/null diff --git a/tests/resources/bad_tag.git/packed-refs b/tests/resources/bad_tag.git/packed-refs deleted file mode 100644 index f9fd2fd4a..000000000 --- a/tests/resources/bad_tag.git/packed-refs +++ /dev/null @@ -1,3 +0,0 @@ -# pack-refs with: peeled -eda9f45a2a98d4c17a09d681d88569fa4ea91755 refs/tags/e90810b -^e90810b8df3e80c413d903f631643c716887138d diff --git a/tests/resources/bad_tag.git/refs/dummy-marker.txt b/tests/resources/bad_tag.git/refs/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/bad_tag.git/refs/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/big.index b/tests/resources/big.index Binary files differdeleted file mode 100644 index 66932f14b..000000000 --- a/tests/resources/big.index +++ /dev/null diff --git a/tests/resources/config/.gitconfig b/tests/resources/config/.gitconfig deleted file mode 100644 index fa72bddfc..000000000 --- a/tests/resources/config/.gitconfig +++ /dev/null @@ -1,3 +0,0 @@ -[core] - repositoryformatversion = 5 - something = 2
\ No newline at end of file diff --git a/tests/resources/config/config0 b/tests/resources/config/config0 deleted file mode 100644 index 85235c501..000000000 --- a/tests/resources/config/config0 +++ /dev/null @@ -1,7 +0,0 @@ -# This is a test -; of different comments -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true
\ No newline at end of file diff --git a/tests/resources/config/config1 b/tests/resources/config/config1 deleted file mode 100644 index 211dc9e7d..000000000 --- a/tests/resources/config/config1 +++ /dev/null @@ -1,5 +0,0 @@ -# This one checks for case sensitivity -[this "that"] - other = true -[this "That"] - other = yes diff --git a/tests/resources/config/config10 b/tests/resources/config/config10 deleted file mode 100644 index dde17911b..000000000 --- a/tests/resources/config/config10 +++ /dev/null @@ -1 +0,0 @@ -[empty] diff --git a/tests/resources/config/config11 b/tests/resources/config/config11 deleted file mode 100644 index 880c94589..000000000 --- a/tests/resources/config/config11 +++ /dev/null @@ -1,3 +0,0 @@ -[remote "fancy"] - url = git://github.com/libgit2/libgit2 - url = git://git.example.com/libgit2 diff --git a/tests/resources/config/config2 b/tests/resources/config/config2 deleted file mode 100644 index 60a389827..000000000 --- a/tests/resources/config/config2 +++ /dev/null @@ -1,5 +0,0 @@ -; This one tests for multiline values -[this "That"] - and = one one one \ -two two \ -three three
\ No newline at end of file diff --git a/tests/resources/config/config3 b/tests/resources/config/config3 deleted file mode 100644 index 44a5e50ea..000000000 --- a/tests/resources/config/config3 +++ /dev/null @@ -1,3 +0,0 @@ -# A [section.subsection] header is case-insensitive -[section.SuBsection] - var = hello diff --git a/tests/resources/config/config4 b/tests/resources/config/config4 deleted file mode 100644 index 741fa0ffd..000000000 --- a/tests/resources/config/config4 +++ /dev/null @@ -1,3 +0,0 @@ -# A variable name on its own is valid -[some.section] - variable diff --git a/tests/resources/config/config5 b/tests/resources/config/config5 deleted file mode 100644 index 8ab60ccec..000000000 --- a/tests/resources/config/config5 +++ /dev/null @@ -1,9 +0,0 @@ -# Test for number suffixes -[number] - simple = 1 - k = 1k - kk = 1K - m = 1m - mm = 1M - g = 1g - gg = 1G diff --git a/tests/resources/config/config6 b/tests/resources/config/config6 deleted file mode 100644 index 0f8f90ac9..000000000 --- a/tests/resources/config/config6 +++ /dev/null @@ -1,5 +0,0 @@ -[valid "subsection"] - something = true - -[something "else"] - something = false diff --git a/tests/resources/config/config7 b/tests/resources/config/config7 deleted file mode 100644 index 6af6fcf25..000000000 --- a/tests/resources/config/config7 +++ /dev/null @@ -1,5 +0,0 @@ -[valid "subsection"] - something = a -; we don't allow anything after closing " -[sec "subsec"x] - bleh = blah diff --git a/tests/resources/config/config8 b/tests/resources/config/config8 deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/config/config8 +++ /dev/null diff --git a/tests/resources/config/config9 b/tests/resources/config/config9 deleted file mode 100644 index fcaac424e..000000000 --- a/tests/resources/config/config9 +++ /dev/null @@ -1,9 +0,0 @@ -[core] - dummy2 = 42 - verylong = 1 - dummy = 1 - -[remote "ab"] - url = http://example.com/git/ab -[remote "abba"] - url = http://example.com/git/abba diff --git a/tests/resources/empty_bare.git/HEAD b/tests/resources/empty_bare.git/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/empty_bare.git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/empty_bare.git/config b/tests/resources/empty_bare.git/config deleted file mode 100644 index 90e16477b..000000000 --- a/tests/resources/empty_bare.git/config +++ /dev/null @@ -1,7 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = false - bare = true - symlinks = false - ignorecase = true - hideDotFiles = dotGitOnly diff --git a/tests/resources/empty_bare.git/description b/tests/resources/empty_bare.git/description deleted file mode 100644 index 498b267a8..000000000 --- a/tests/resources/empty_bare.git/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/resources/empty_bare.git/info/exclude b/tests/resources/empty_bare.git/info/exclude deleted file mode 100644 index a5196d1be..000000000 --- a/tests/resources/empty_bare.git/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/resources/empty_bare.git/objects/info/dummy-marker.txt b/tests/resources/empty_bare.git/objects/info/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_bare.git/objects/info/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_bare.git/objects/pack/dummy-marker.txt b/tests/resources/empty_bare.git/objects/pack/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_bare.git/objects/pack/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_bare.git/refs/heads/dummy-marker.txt b/tests/resources/empty_bare.git/refs/heads/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_bare.git/refs/heads/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_bare.git/refs/tags/dummy-marker.txt b/tests/resources/empty_bare.git/refs/tags/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_bare.git/refs/tags/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_standard_repo/.gitted/HEAD b/tests/resources/empty_standard_repo/.gitted/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/empty_standard_repo/.gitted/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/empty_standard_repo/.gitted/config b/tests/resources/empty_standard_repo/.gitted/config deleted file mode 100644 index 78387c50b..000000000 --- a/tests/resources/empty_standard_repo/.gitted/config +++ /dev/null @@ -1,8 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = false - bare = false - logallrefupdates = true - symlinks = false - ignorecase = true - hideDotFiles = dotGitOnly diff --git a/tests/resources/empty_standard_repo/.gitted/description b/tests/resources/empty_standard_repo/.gitted/description deleted file mode 100644 index 498b267a8..000000000 --- a/tests/resources/empty_standard_repo/.gitted/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/resources/empty_standard_repo/.gitted/info/exclude b/tests/resources/empty_standard_repo/.gitted/info/exclude deleted file mode 100644 index a5196d1be..000000000 --- a/tests/resources/empty_standard_repo/.gitted/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/tests/resources/empty_standard_repo/.gitted/objects/info/dummy-marker.txt b/tests/resources/empty_standard_repo/.gitted/objects/info/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_standard_repo/.gitted/objects/info/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_standard_repo/.gitted/objects/pack/dummy-marker.txt b/tests/resources/empty_standard_repo/.gitted/objects/pack/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_standard_repo/.gitted/objects/pack/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_standard_repo/.gitted/refs/heads/dummy-marker.txt b/tests/resources/empty_standard_repo/.gitted/refs/heads/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_standard_repo/.gitted/refs/heads/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/empty_standard_repo/.gitted/refs/tags/dummy-marker.txt b/tests/resources/empty_standard_repo/.gitted/refs/tags/dummy-marker.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/resources/empty_standard_repo/.gitted/refs/tags/dummy-marker.txt +++ /dev/null diff --git a/tests/resources/gitgit.index b/tests/resources/gitgit.index Binary files differdeleted file mode 100644 index 215da649e..000000000 --- a/tests/resources/gitgit.index +++ /dev/null diff --git a/tests/resources/status/.gitted/COMMIT_EDITMSG b/tests/resources/status/.gitted/COMMIT_EDITMSG deleted file mode 100644 index 1a25cd4a6..000000000 --- a/tests/resources/status/.gitted/COMMIT_EDITMSG +++ /dev/null @@ -1 +0,0 @@ -Add a file which name should appear before the "subdir/" folder while being dealt with by the treewalker diff --git a/tests/resources/status/.gitted/HEAD b/tests/resources/status/.gitted/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/status/.gitted/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/status/.gitted/ORIG_HEAD b/tests/resources/status/.gitted/ORIG_HEAD deleted file mode 100644 index b46871fd6..000000000 --- a/tests/resources/status/.gitted/ORIG_HEAD +++ /dev/null @@ -1 +0,0 @@ -735b6a258cd196a8f7c9428419b02c1dca93fd75 diff --git a/tests/resources/status/.gitted/config b/tests/resources/status/.gitted/config deleted file mode 100644 index af107929f..000000000 --- a/tests/resources/status/.gitted/config +++ /dev/null @@ -1,6 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true diff --git a/tests/resources/status/.gitted/description b/tests/resources/status/.gitted/description deleted file mode 100644 index 498b267a8..000000000 --- a/tests/resources/status/.gitted/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/tests/resources/status/.gitted/index b/tests/resources/status/.gitted/index Binary files differdeleted file mode 100644 index 9a383ec0c..000000000 --- a/tests/resources/status/.gitted/index +++ /dev/null diff --git a/tests/resources/status/.gitted/info/exclude b/tests/resources/status/.gitted/info/exclude deleted file mode 100644 index 0c4042a6a..000000000 --- a/tests/resources/status/.gitted/info/exclude +++ /dev/null @@ -1,8 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ -ignored* - diff --git a/tests/resources/status/.gitted/logs/HEAD b/tests/resources/status/.gitted/logs/HEAD deleted file mode 100644 index 7b95b3cf1..000000000 --- a/tests/resources/status/.gitted/logs/HEAD +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 0017bd4ab1ec30440b17bae1680cff124ab5f1f6 Jason Penny <jasonpenny4@gmail.com> 1308050070 -0400 commit (initial): initial -0017bd4ab1ec30440b17bae1680cff124ab5f1f6 735b6a258cd196a8f7c9428419b02c1dca93fd75 Jason Penny <jasonpenny4@gmail.com> 1308954538 -0400 commit: add subdir -735b6a258cd196a8f7c9428419b02c1dca93fd75 26a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f nulltoken <emeric.fermas@gmail.com> 1319911544 +0200 commit: Add a file which name should appear before the "subdir/" folder while being dealt with by the treewalker diff --git a/tests/resources/status/.gitted/logs/refs/heads/master b/tests/resources/status/.gitted/logs/refs/heads/master deleted file mode 100644 index 7b95b3cf1..000000000 --- a/tests/resources/status/.gitted/logs/refs/heads/master +++ /dev/null @@ -1,3 +0,0 @@ -0000000000000000000000000000000000000000 0017bd4ab1ec30440b17bae1680cff124ab5f1f6 Jason Penny <jasonpenny4@gmail.com> 1308050070 -0400 commit (initial): initial -0017bd4ab1ec30440b17bae1680cff124ab5f1f6 735b6a258cd196a8f7c9428419b02c1dca93fd75 Jason Penny <jasonpenny4@gmail.com> 1308954538 -0400 commit: add subdir -735b6a258cd196a8f7c9428419b02c1dca93fd75 26a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f nulltoken <emeric.fermas@gmail.com> 1319911544 +0200 commit: Add a file which name should appear before the "subdir/" folder while being dealt with by the treewalker diff --git a/tests/resources/status/.gitted/objects/00/17bd4ab1ec30440b17bae1680cff124ab5f1f6 b/tests/resources/status/.gitted/objects/00/17bd4ab1ec30440b17bae1680cff124ab5f1f6 deleted file mode 100644 index b256d95a3..000000000 --- a/tests/resources/status/.gitted/objects/00/17bd4ab1ec30440b17bae1680cff124ab5f1f6 +++ /dev/null @@ -1,2 +0,0 @@ -xA E]sfh)1] -#STWpK^~9ܡ-"C')Fvbv"wEk{nRί6#sOpD663WxV?9
\ No newline at end of file diff --git a/tests/resources/status/.gitted/objects/06/1d42a44cacde5726057b67558821d95db96f19 b/tests/resources/status/.gitted/objects/06/1d42a44cacde5726057b67558821d95db96f19 Binary files differdeleted file mode 100644 index 82e02cb0e..000000000 --- a/tests/resources/status/.gitted/objects/06/1d42a44cacde5726057b67558821d95db96f19 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/18/88c805345ba265b0ee9449b8877b6064592058 b/tests/resources/status/.gitted/objects/18/88c805345ba265b0ee9449b8877b6064592058 Binary files differdeleted file mode 100644 index e3cad2f02..000000000 --- a/tests/resources/status/.gitted/objects/18/88c805345ba265b0ee9449b8877b6064592058 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/19/d9cc8584ac2c7dcf57d2680375e80f099dc481 b/tests/resources/status/.gitted/objects/19/d9cc8584ac2c7dcf57d2680375e80f099dc481 Binary files differdeleted file mode 100644 index 2d5e711b9..000000000 --- a/tests/resources/status/.gitted/objects/19/d9cc8584ac2c7dcf57d2680375e80f099dc481 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/26/a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f b/tests/resources/status/.gitted/objects/26/a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f deleted file mode 100644 index f7dddc4ff..000000000 --- a/tests/resources/status/.gitted/objects/26/a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f +++ /dev/null @@ -1,2 +0,0 @@ -xMn )V (̀BDLЍRȷވ@,9̜tNj6f`M6Z;h
Zp ڙY,37/;42x&<z
#^ -䮁ZQ0嫫pޙ`l?{@)1+=#ö6j#֧qP>gϟۉIm|j
\ No newline at end of file diff --git a/tests/resources/status/.gitted/objects/32/504b727382542f9f089e24fddac5e78533e96c b/tests/resources/status/.gitted/objects/32/504b727382542f9f089e24fddac5e78533e96c Binary files differdeleted file mode 100644 index 7fca67be8..000000000 --- a/tests/resources/status/.gitted/objects/32/504b727382542f9f089e24fddac5e78533e96c +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/37/fcb02ccc1a85d1941e7f106d52dc3702dcf0d0 b/tests/resources/status/.gitted/objects/37/fcb02ccc1a85d1941e7f106d52dc3702dcf0d0 Binary files differdeleted file mode 100644 index b75481b51..000000000 --- a/tests/resources/status/.gitted/objects/37/fcb02ccc1a85d1941e7f106d52dc3702dcf0d0 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/45/2e4244b5d083ddf0460acf1ecc74db9dcfa11a b/tests/resources/status/.gitted/objects/45/2e4244b5d083ddf0460acf1ecc74db9dcfa11a Binary files differdeleted file mode 100644 index 5b47461e9..000000000 --- a/tests/resources/status/.gitted/objects/45/2e4244b5d083ddf0460acf1ecc74db9dcfa11a +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/52/9a16e8e762d4acb7b9636ff540a00831f9155a b/tests/resources/status/.gitted/objects/52/9a16e8e762d4acb7b9636ff540a00831f9155a Binary files differdeleted file mode 100644 index 615009ad0..000000000 --- a/tests/resources/status/.gitted/objects/52/9a16e8e762d4acb7b9636ff540a00831f9155a +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/53/ace0d1cc1145a5f4fe4f78a186a60263190733 b/tests/resources/status/.gitted/objects/53/ace0d1cc1145a5f4fe4f78a186a60263190733 Binary files differdeleted file mode 100644 index cdb7e961a..000000000 --- a/tests/resources/status/.gitted/objects/53/ace0d1cc1145a5f4fe4f78a186a60263190733 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/54/52d32f1dd538eb0405e8a83cc185f79e25e80f b/tests/resources/status/.gitted/objects/54/52d32f1dd538eb0405e8a83cc185f79e25e80f Binary files differdeleted file mode 100644 index a72dff646..000000000 --- a/tests/resources/status/.gitted/objects/54/52d32f1dd538eb0405e8a83cc185f79e25e80f +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/55/d316c9ba708999f1918e9677d01dfcae69c6b9 b/tests/resources/status/.gitted/objects/55/d316c9ba708999f1918e9677d01dfcae69c6b9 Binary files differdeleted file mode 100644 index 72807f3d0..000000000 --- a/tests/resources/status/.gitted/objects/55/d316c9ba708999f1918e9677d01dfcae69c6b9 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/70/bd9443ada07063e7fbf0b3ff5c13f7494d89c2 b/tests/resources/status/.gitted/objects/70/bd9443ada07063e7fbf0b3ff5c13f7494d89c2 Binary files differdeleted file mode 100644 index 3665a8f7c..000000000 --- a/tests/resources/status/.gitted/objects/70/bd9443ada07063e7fbf0b3ff5c13f7494d89c2 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/73/5b6a258cd196a8f7c9428419b02c1dca93fd75 b/tests/resources/status/.gitted/objects/73/5b6a258cd196a8f7c9428419b02c1dca93fd75 Binary files differdeleted file mode 100644 index 08e6fd246..000000000 --- a/tests/resources/status/.gitted/objects/73/5b6a258cd196a8f7c9428419b02c1dca93fd75 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/75/6e27627e67bfbc048d01ece5819c6de733d7ea b/tests/resources/status/.gitted/objects/75/6e27627e67bfbc048d01ece5819c6de733d7ea Binary files differdeleted file mode 100644 index 8f3fa89e5..000000000 --- a/tests/resources/status/.gitted/objects/75/6e27627e67bfbc048d01ece5819c6de733d7ea +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/90/6ee7711f4f4928ddcb2a5f8fbc500deba0d2a8 b/tests/resources/status/.gitted/objects/90/6ee7711f4f4928ddcb2a5f8fbc500deba0d2a8 Binary files differdeleted file mode 100644 index bb732b08e..000000000 --- a/tests/resources/status/.gitted/objects/90/6ee7711f4f4928ddcb2a5f8fbc500deba0d2a8 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/90/b8c29d8ba39434d1c63e1b093daaa26e5bd972 b/tests/resources/status/.gitted/objects/90/b8c29d8ba39434d1c63e1b093daaa26e5bd972 Binary files differdeleted file mode 100644 index 7a96618ff..000000000 --- a/tests/resources/status/.gitted/objects/90/b8c29d8ba39434d1c63e1b093daaa26e5bd972 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/9c/2e02cdffa8d73e6c189074594477a6baf87960 b/tests/resources/status/.gitted/objects/9c/2e02cdffa8d73e6c189074594477a6baf87960 Binary files differdeleted file mode 100644 index 20a3c497e..000000000 --- a/tests/resources/status/.gitted/objects/9c/2e02cdffa8d73e6c189074594477a6baf87960 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/a0/de7e0ac200c489c41c59dfa910154a70264e6e b/tests/resources/status/.gitted/objects/a0/de7e0ac200c489c41c59dfa910154a70264e6e Binary files differdeleted file mode 100644 index a1789c9a6..000000000 --- a/tests/resources/status/.gitted/objects/a0/de7e0ac200c489c41c59dfa910154a70264e6e +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/a6/191982709b746d5650e93c2acf34ef74e11504 b/tests/resources/status/.gitted/objects/a6/191982709b746d5650e93c2acf34ef74e11504 Binary files differdeleted file mode 100644 index cc1f377b3..000000000 --- a/tests/resources/status/.gitted/objects/a6/191982709b746d5650e93c2acf34ef74e11504 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/a6/be623522ce87a1d862128ac42672604f7b468b b/tests/resources/status/.gitted/objects/a6/be623522ce87a1d862128ac42672604f7b468b Binary files differdeleted file mode 100644 index c47298347..000000000 --- a/tests/resources/status/.gitted/objects/a6/be623522ce87a1d862128ac42672604f7b468b +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/aa/27a641456848200fdb7f7c99ba36f8a0952877 b/tests/resources/status/.gitted/objects/aa/27a641456848200fdb7f7c99ba36f8a0952877 Binary files differdeleted file mode 100644 index a4669ccbb..000000000 --- a/tests/resources/status/.gitted/objects/aa/27a641456848200fdb7f7c99ba36f8a0952877 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/da/bc8af9bd6e9f5bbe96a176f1a24baf3d1f8916 b/tests/resources/status/.gitted/objects/da/bc8af9bd6e9f5bbe96a176f1a24baf3d1f8916 Binary files differdeleted file mode 100644 index 3e3c03c96..000000000 --- a/tests/resources/status/.gitted/objects/da/bc8af9bd6e9f5bbe96a176f1a24baf3d1f8916 +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/e8/ee89e15bbe9b20137715232387b3de5b28972e b/tests/resources/status/.gitted/objects/e8/ee89e15bbe9b20137715232387b3de5b28972e Binary files differdeleted file mode 100644 index cfc2413d5..000000000 --- a/tests/resources/status/.gitted/objects/e8/ee89e15bbe9b20137715232387b3de5b28972e +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/e9/b9107f290627c04d097733a10055af941f6bca b/tests/resources/status/.gitted/objects/e9/b9107f290627c04d097733a10055af941f6bca Binary files differdeleted file mode 100644 index 1266d3eac..000000000 --- a/tests/resources/status/.gitted/objects/e9/b9107f290627c04d097733a10055af941f6bca +++ /dev/null diff --git a/tests/resources/status/.gitted/objects/ed/062903b8f6f3dccb2fa81117ba6590944ef9bd b/tests/resources/status/.gitted/objects/ed/062903b8f6f3dccb2fa81117ba6590944ef9bd Binary files differdeleted file mode 100644 index 8fa8c1707..000000000 --- a/tests/resources/status/.gitted/objects/ed/062903b8f6f3dccb2fa81117ba6590944ef9bd +++ /dev/null diff --git a/tests/resources/status/.gitted/refs/heads/master b/tests/resources/status/.gitted/refs/heads/master deleted file mode 100644 index 3e2e2a07a..000000000 --- a/tests/resources/status/.gitted/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -26a125ee1bfc5df1e1b2e9441bbe63c8a7ae989f diff --git a/tests/resources/status/current_file b/tests/resources/status/current_file deleted file mode 100644 index a0de7e0ac..000000000 --- a/tests/resources/status/current_file +++ /dev/null @@ -1 +0,0 @@ -current_file diff --git a/tests/resources/status/ignored_file b/tests/resources/status/ignored_file deleted file mode 100644 index 6a79f808a..000000000 --- a/tests/resources/status/ignored_file +++ /dev/null @@ -1 +0,0 @@ -ignored_file diff --git a/tests/resources/status/modified_file b/tests/resources/status/modified_file deleted file mode 100644 index 0a5396305..000000000 --- a/tests/resources/status/modified_file +++ /dev/null @@ -1,2 +0,0 @@ -modified_file -modified_file diff --git a/tests/resources/status/new_file b/tests/resources/status/new_file deleted file mode 100644 index d4fa8600b..000000000 --- a/tests/resources/status/new_file +++ /dev/null @@ -1 +0,0 @@ -new_file diff --git a/tests/resources/status/staged_changes b/tests/resources/status/staged_changes deleted file mode 100644 index 55d316c9b..000000000 --- a/tests/resources/status/staged_changes +++ /dev/null @@ -1,2 +0,0 @@ -staged_changes -staged_changes diff --git a/tests/resources/status/staged_changes_modified_file b/tests/resources/status/staged_changes_modified_file deleted file mode 100644 index 011c3440d..000000000 --- a/tests/resources/status/staged_changes_modified_file +++ /dev/null @@ -1,3 +0,0 @@ -staged_changes_modified_file -staged_changes_modified_file -staged_changes_modified_file diff --git a/tests/resources/status/staged_delete_modified_file b/tests/resources/status/staged_delete_modified_file deleted file mode 100644 index dabc8af9b..000000000 --- a/tests/resources/status/staged_delete_modified_file +++ /dev/null @@ -1 +0,0 @@ -staged_delete_modified_file diff --git a/tests/resources/status/staged_new_file b/tests/resources/status/staged_new_file deleted file mode 100644 index 529a16e8e..000000000 --- a/tests/resources/status/staged_new_file +++ /dev/null @@ -1 +0,0 @@ -staged_new_file diff --git a/tests/resources/status/staged_new_file_modified_file b/tests/resources/status/staged_new_file_modified_file deleted file mode 100644 index 8b090c06d..000000000 --- a/tests/resources/status/staged_new_file_modified_file +++ /dev/null @@ -1,2 +0,0 @@ -staged_new_file_modified_file -staged_new_file_modified_file diff --git a/tests/resources/status/subdir.txt b/tests/resources/status/subdir.txt deleted file mode 100644 index e8ee89e15..000000000 --- a/tests/resources/status/subdir.txt +++ /dev/null @@ -1,2 +0,0 @@ -Is it a bird? -Is it a plane? diff --git a/tests/resources/status/subdir/current_file b/tests/resources/status/subdir/current_file deleted file mode 100644 index 53ace0d1c..000000000 --- a/tests/resources/status/subdir/current_file +++ /dev/null @@ -1 +0,0 @@ -subdir/current_file diff --git a/tests/resources/status/subdir/modified_file b/tests/resources/status/subdir/modified_file deleted file mode 100644 index 57274b75e..000000000 --- a/tests/resources/status/subdir/modified_file +++ /dev/null @@ -1,2 +0,0 @@ -subdir/modified_file -subdir/modified_file diff --git a/tests/resources/status/subdir/new_file b/tests/resources/status/subdir/new_file deleted file mode 100644 index 80a86a693..000000000 --- a/tests/resources/status/subdir/new_file +++ /dev/null @@ -1 +0,0 @@ -subdir/new_file diff --git a/tests/resources/testrepo.git/HEAD b/tests/resources/testrepo.git/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/testrepo.git/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/testrepo.git/config b/tests/resources/testrepo.git/config deleted file mode 100644 index 1a5aacdfa..000000000 --- a/tests/resources/testrepo.git/config +++ /dev/null @@ -1,8 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = true - logallrefupdates = true -[remote "test"] - url = git://github.com/libgit2/libgit2 - fetch = +refs/heads/*:refs/remotes/test/* diff --git a/tests/resources/testrepo.git/head-tracker b/tests/resources/testrepo.git/head-tracker deleted file mode 100644 index 40d876b4c..000000000 --- a/tests/resources/testrepo.git/head-tracker +++ /dev/null @@ -1 +0,0 @@ -ref: HEAD diff --git a/tests/resources/testrepo.git/index b/tests/resources/testrepo.git/index Binary files differdeleted file mode 100644 index a27fb9c96..000000000 --- a/tests/resources/testrepo.git/index +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 b/tests/resources/testrepo.git/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 Binary files differdeleted file mode 100644 index cedb2a22e..000000000 --- a/tests/resources/testrepo.git/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 b/tests/resources/testrepo.git/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 Binary files differdeleted file mode 100644 index 93a16f146..000000000 --- a/tests/resources/testrepo.git/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/18/10dff58d8a660512d4832e740f692884338ccd b/tests/resources/testrepo.git/objects/18/10dff58d8a660512d4832e740f692884338ccd Binary files differdeleted file mode 100644 index ba0bfb30c..000000000 --- a/tests/resources/testrepo.git/objects/18/10dff58d8a660512d4832e740f692884338ccd +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b b/tests/resources/testrepo.git/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b Binary files differdeleted file mode 100644 index 225c45734..000000000 --- a/tests/resources/testrepo.git/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d b/tests/resources/testrepo.git/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d Binary files differdeleted file mode 100644 index df40d99af..000000000 --- a/tests/resources/testrepo.git/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 b/tests/resources/testrepo.git/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 Binary files differdeleted file mode 100644 index 321eaa867..000000000 --- a/tests/resources/testrepo.git/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc b/tests/resources/testrepo.git/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc Binary files differdeleted file mode 100644 index 9bb5b623b..000000000 --- a/tests/resources/testrepo.git/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 b/tests/resources/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 Binary files differdeleted file mode 100644 index 7ca4ceed5..000000000 --- a/tests/resources/testrepo.git/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 b/tests/resources/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 deleted file mode 100644 index 8953b6cef..000000000 --- a/tests/resources/testrepo.git/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 +++ /dev/null @@ -1,2 +0,0 @@ -xQ -0D)6ͦ "xO-FbEo0Ǥ,ske[Pn8R,EpD?g}^3<GhYK8ЖDA);gݧjp4-r;sGA4ۺ=(in7IKFE
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 b/tests/resources/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 deleted file mode 100644 index c1f22c54f..000000000 --- a/tests/resources/testrepo.git/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 +++ /dev/null @@ -1,2 +0,0 @@ -x 1ENi@k2 "X$YW0YcÅszMD08!sXgd::@X0Pw"F/RUzmZZV}|/o5I!1z:vUim}/> -F-
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a b/tests/resources/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a Binary files differdeleted file mode 100644 index 2ef4faa0f..000000000 --- a/tests/resources/testrepo.git/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af b/tests/resources/testrepo.git/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af deleted file mode 100644 index 716b0c64b..000000000 --- a/tests/resources/testrepo.git/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af +++ /dev/null @@ -1 +0,0 @@ -xAj!?009o}H6}jUPPZ&Y AԛpFdpz[fYPqLJ.,Z`Ů.`vq
$5+9Ot>/DE/龡W*eVdf1>覭ěʙFThk.i^0?PR,
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/7b/4384978d2493e851f9cca7858815fac9b10980 b/tests/resources/testrepo.git/objects/7b/4384978d2493e851f9cca7858815fac9b10980 Binary files differdeleted file mode 100644 index 23c462f34..000000000 --- a/tests/resources/testrepo.git/objects/7b/4384978d2493e851f9cca7858815fac9b10980 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d b/tests/resources/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d Binary files differdeleted file mode 100644 index 2f9b6b6e3..000000000 --- a/tests/resources/testrepo.git/objects/81/4889a078c031f61ed08ab5fa863aea9314344d +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479 b/tests/resources/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479 Binary files differdeleted file mode 100644 index 5df58dda5..000000000 --- a/tests/resources/testrepo.git/objects/84/96071c1b46c854b31185ea97743be6a8774479 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 b/tests/resources/testrepo.git/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 deleted file mode 100644 index 4cc3f4dff..000000000 --- a/tests/resources/testrepo.git/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 +++ /dev/null @@ -1 +0,0 @@ -x+)JMU044b040031QrutueXlmmAṃJ}G;UTWRQ`6Kǥ^/-*|W3Py`%E\&g|0{Ӎ1X
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 b/tests/resources/testrepo.git/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 Binary files differdeleted file mode 100644 index bf7b2bb68..000000000 --- a/tests/resources/testrepo.git/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a b/tests/resources/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a deleted file mode 100644 index a79612435..000000000 --- a/tests/resources/testrepo.git/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a +++ /dev/null @@ -1,3 +0,0 @@ -x[ -0E*fդ "W0-Ft݁pS[Yx^ -Db CLhut}8X*4ZsYUA
X3RM) s6輢Mរ&Jm;}<\@ޏpĀv?jۺL?H
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f b/tests/resources/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f deleted file mode 100644 index f8588696b..000000000 --- a/tests/resources/testrepo.git/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f +++ /dev/null @@ -1,2 +0,0 @@ -x;j1Dmdǎ|M3`V{>QvL0I?!4Z=!צ8F!rsQy9]$D&l6A>jFWҵIKNiZ%S - U~̽>' w
[DGڡQ-M>dO}\8g_ШoYr
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 b/tests/resources/testrepo.git/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 deleted file mode 100644 index 29c8e824d..000000000 --- a/tests/resources/testrepo.git/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 +++ /dev/null @@ -1,3 +0,0 @@ -xQ -!@sBQ" ٱ
r{<xƪ -HlJSer!ZPTe*jUEo^2(XSEDO<Yj$2s_&},}[~p7~<: Zp?1_C0
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd b/tests/resources/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd Binary files differdeleted file mode 100644 index d0d7e736e..000000000 --- a/tests/resources/testrepo.git/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 b/tests/resources/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 Binary files differdeleted file mode 100644 index 18a7f61c2..000000000 --- a/tests/resources/testrepo.git/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 b/tests/resources/testrepo.git/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 Binary files differdeleted file mode 100644 index d95254674..000000000 --- a/tests/resources/testrepo.git/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 b/tests/resources/testrepo.git/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 deleted file mode 100644 index f460f2547..000000000 --- a/tests/resources/testrepo.git/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 +++ /dev/null @@ -1,2 +0,0 @@ -xA -0a9I p'1Ѷv\x{cVpvWgǎ0x[]"g#{rD
Cot N U$?9-p+1^Qx9O\C m'D
{mV(+l,
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 b/tests/resources/testrepo.git/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 Binary files differdeleted file mode 100644 index f613670e2..000000000 --- a/tests/resources/testrepo.git/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 b/tests/resources/testrepo.git/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 deleted file mode 100644 index 0817229bc..000000000 --- a/tests/resources/testrepo.git/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 +++ /dev/null @@ -1,3 +0,0 @@ -xKj1D)zUB-0uV9<#+W<J&8/seȕKJS -Rv{QrYQN$H\E=6X5K Fr)(dCΆjs}9c-w8o\rI: -l}FW$DsǣٚOWe]V8-Ý"U
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd b/tests/resources/testrepo.git/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd deleted file mode 100644 index 75f541f10..000000000 --- a/tests/resources/testrepo.git/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd +++ /dev/null @@ -1,3 +0,0 @@ -xQ -0D)ʦI<'lR+FjEo0<xha ]șXUlPF)z4y,\r 'S-mI4 -Xh&F}n+\Y-p|鷜oUz;-alt{?I,:oRcHK
\ No newline at end of file diff --git a/tests/resources/testrepo.git/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f b/tests/resources/testrepo.git/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f Binary files differdeleted file mode 100644 index a67d6e647..000000000 --- a/tests/resources/testrepo.git/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/resources/testrepo.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 Binary files differdeleted file mode 100644 index 711223894..000000000 --- a/tests/resources/testrepo.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 b/tests/resources/testrepo.git/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 Binary files differdeleted file mode 100644 index b135eccda..000000000 --- a/tests/resources/testrepo.git/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 b/tests/resources/testrepo.git/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 Binary files differdeleted file mode 100644 index 82e2790e8..000000000 --- a/tests/resources/testrepo.git/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 b/tests/resources/testrepo.git/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 Binary files differdeleted file mode 100644 index 697c94c92..000000000 --- a/tests/resources/testrepo.git/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92 b/tests/resources/testrepo.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92 Binary files differdeleted file mode 100644 index 112998d42..000000000 --- a/tests/resources/testrepo.git/objects/fa/49b077972391ad58037050f2a75f74e3671e92 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/fd/093bff70906175335656e6ce6ae05783708765 b/tests/resources/testrepo.git/objects/fd/093bff70906175335656e6ce6ae05783708765 Binary files differdeleted file mode 100644 index 12bf5f3e3..000000000 --- a/tests/resources/testrepo.git/objects/fd/093bff70906175335656e6ce6ae05783708765 +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx b/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx Binary files differdeleted file mode 100644 index 5068f2818..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack b/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack Binary files differdeleted file mode 100644 index a6a1f3020..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx b/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx Binary files differdeleted file mode 100644 index 94c3c71da..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack b/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack Binary files differdeleted file mode 100644 index 74c7fe4f3..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx b/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx Binary files differdeleted file mode 100644 index 555cfa977..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx +++ /dev/null diff --git a/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack b/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack Binary files differdeleted file mode 100644 index 4d539ed0a..000000000 --- a/tests/resources/testrepo.git/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack +++ /dev/null diff --git a/tests/resources/testrepo.git/packed-refs b/tests/resources/testrepo.git/packed-refs deleted file mode 100644 index 52f5e876f..000000000 --- a/tests/resources/testrepo.git/packed-refs +++ /dev/null @@ -1,3 +0,0 @@ -# pack-refs with: peeled -41bc8c69075bbdb46c5c6f0566cc8cc5b46e8bd9 refs/heads/packed -5b5b025afb0b4c913b4c338a42934a3863bf3644 refs/heads/packed-test diff --git a/tests/resources/testrepo.git/refs/heads/br2 b/tests/resources/testrepo.git/refs/heads/br2 deleted file mode 100644 index aab87e5e7..000000000 --- a/tests/resources/testrepo.git/refs/heads/br2 +++ /dev/null @@ -1 +0,0 @@ -a4a7dce85cf63874e984719f4fdd239f5145052f diff --git a/tests/resources/testrepo.git/refs/heads/master b/tests/resources/testrepo.git/refs/heads/master deleted file mode 100644 index 3d8f0a402..000000000 --- a/tests/resources/testrepo.git/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -a65fedf39aefe402d3bb6e24df4d4f5fe4547750 diff --git a/tests/resources/testrepo.git/refs/heads/packed-test b/tests/resources/testrepo.git/refs/heads/packed-test deleted file mode 100644 index f2c14ad83..000000000 --- a/tests/resources/testrepo.git/refs/heads/packed-test +++ /dev/null @@ -1 +0,0 @@ -4a202b346bb0fb0db7eff3cffeb3c70babbd2045 diff --git a/tests/resources/testrepo.git/refs/heads/subtrees b/tests/resources/testrepo.git/refs/heads/subtrees deleted file mode 100644 index ad27e0b13..000000000 --- a/tests/resources/testrepo.git/refs/heads/subtrees +++ /dev/null @@ -1 +0,0 @@ -763d71aadf09a7951596c9746c024e7eece7c7af diff --git a/tests/resources/testrepo.git/refs/heads/test b/tests/resources/testrepo.git/refs/heads/test deleted file mode 100644 index 399c4c73e..000000000 --- a/tests/resources/testrepo.git/refs/heads/test +++ /dev/null @@ -1 +0,0 @@ -e90810b8df3e80c413d903f631643c716887138d diff --git a/tests/resources/testrepo.git/refs/tags/e90810b b/tests/resources/testrepo.git/refs/tags/e90810b deleted file mode 100644 index 584495d3c..000000000 --- a/tests/resources/testrepo.git/refs/tags/e90810b +++ /dev/null @@ -1 +0,0 @@ -7b4384978d2493e851f9cca7858815fac9b10980 diff --git a/tests/resources/testrepo.git/refs/tags/point_to_blob b/tests/resources/testrepo.git/refs/tags/point_to_blob deleted file mode 100644 index f874a3ffc..000000000 --- a/tests/resources/testrepo.git/refs/tags/point_to_blob +++ /dev/null @@ -1 +0,0 @@ -1385f264afb75a56a5bec74243be9b367ba4ca08 diff --git a/tests/resources/testrepo.git/refs/tags/test b/tests/resources/testrepo.git/refs/tags/test deleted file mode 100644 index 6ee952a03..000000000 --- a/tests/resources/testrepo.git/refs/tags/test +++ /dev/null @@ -1 +0,0 @@ -b25fa35b38051e4ae45d4222e795f9df2e43f1d1 diff --git a/tests/resources/testrepo/.gitted/HEAD b/tests/resources/testrepo/.gitted/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/tests/resources/testrepo/.gitted/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/tests/resources/testrepo/.gitted/config b/tests/resources/testrepo/.gitted/config deleted file mode 100644 index 1a5aacdfa..000000000 --- a/tests/resources/testrepo/.gitted/config +++ /dev/null @@ -1,8 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = true - logallrefupdates = true -[remote "test"] - url = git://github.com/libgit2/libgit2 - fetch = +refs/heads/*:refs/remotes/test/* diff --git a/tests/resources/testrepo/.gitted/head-tracker b/tests/resources/testrepo/.gitted/head-tracker deleted file mode 100644 index 40d876b4c..000000000 --- a/tests/resources/testrepo/.gitted/head-tracker +++ /dev/null @@ -1 +0,0 @@ -ref: HEAD diff --git a/tests/resources/testrepo/.gitted/index b/tests/resources/testrepo/.gitted/index Binary files differdeleted file mode 100644 index a27fb9c96..000000000 --- a/tests/resources/testrepo/.gitted/index +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 b/tests/resources/testrepo/.gitted/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 Binary files differdeleted file mode 100644 index cedb2a22e..000000000 --- a/tests/resources/testrepo/.gitted/objects/13/85f264afb75a56a5bec74243be9b367ba4ca08 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 b/tests/resources/testrepo/.gitted/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 Binary files differdeleted file mode 100644 index 93a16f146..000000000 --- a/tests/resources/testrepo/.gitted/objects/18/1037049a54a1eb5fab404658a3a250b44335d7 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/18/10dff58d8a660512d4832e740f692884338ccd b/tests/resources/testrepo/.gitted/objects/18/10dff58d8a660512d4832e740f692884338ccd Binary files differdeleted file mode 100644 index ba0bfb30c..000000000 --- a/tests/resources/testrepo/.gitted/objects/18/10dff58d8a660512d4832e740f692884338ccd +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b b/tests/resources/testrepo/.gitted/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b Binary files differdeleted file mode 100644 index 225c45734..000000000 --- a/tests/resources/testrepo/.gitted/objects/1f/67fc4386b2d171e0d21be1c447e12660561f9b +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d b/tests/resources/testrepo/.gitted/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d Binary files differdeleted file mode 100644 index df40d99af..000000000 --- a/tests/resources/testrepo/.gitted/objects/27/0b8ea76056d5cad83af921837702d3e3c2924d +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 b/tests/resources/testrepo/.gitted/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 Binary files differdeleted file mode 100644 index 321eaa867..000000000 --- a/tests/resources/testrepo/.gitted/objects/32/59a6bd5b57fb9c1281bb7ed3167b50f224cb54 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc b/tests/resources/testrepo/.gitted/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc Binary files differdeleted file mode 100644 index 9bb5b623b..000000000 --- a/tests/resources/testrepo/.gitted/objects/36/97d64be941a53d4ae8f6a271e4e3fa56b022cc +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 b/tests/resources/testrepo/.gitted/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 Binary files differdeleted file mode 100644 index 7ca4ceed5..000000000 --- a/tests/resources/testrepo/.gitted/objects/45/b983be36b73c0788dc9cbcb76cbb80fc7bb057 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 b/tests/resources/testrepo/.gitted/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 deleted file mode 100644 index 8953b6cef..000000000 --- a/tests/resources/testrepo/.gitted/objects/4a/202b346bb0fb0db7eff3cffeb3c70babbd2045 +++ /dev/null @@ -1,2 +0,0 @@ -xQ -0D)6ͦ "xO-FbEo0Ǥ,ske[Pn8R,EpD?g}^3<GhYK8ЖDA);gݧjp4-r;sGA4ۺ=(in7IKFE
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 b/tests/resources/testrepo/.gitted/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 deleted file mode 100644 index c1f22c54f..000000000 --- a/tests/resources/testrepo/.gitted/objects/5b/5b025afb0b4c913b4c338a42934a3863bf3644 +++ /dev/null @@ -1,2 +0,0 @@ -x 1ENi@k2 "X$YW0YcÅszMD08!sXgd::@X0Pw"F/RUzmZZV}|/o5I!1z:vUim}/> -F-
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a b/tests/resources/testrepo/.gitted/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a Binary files differdeleted file mode 100644 index 2ef4faa0f..000000000 --- a/tests/resources/testrepo/.gitted/objects/75/057dd4114e74cca1d750d0aee1647c903cb60a +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af b/tests/resources/testrepo/.gitted/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af deleted file mode 100644 index 716b0c64b..000000000 --- a/tests/resources/testrepo/.gitted/objects/76/3d71aadf09a7951596c9746c024e7eece7c7af +++ /dev/null @@ -1 +0,0 @@ -xAj!?009o}H6}jUPPZ&Y AԛpFdpz[fYPqLJ.,Z`Ů.`vq
$5+9Ot>/DE/龡W*eVdf1>覭ěʙFThk.i^0?PR,
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/7b/4384978d2493e851f9cca7858815fac9b10980 b/tests/resources/testrepo/.gitted/objects/7b/4384978d2493e851f9cca7858815fac9b10980 Binary files differdeleted file mode 100644 index 23c462f34..000000000 --- a/tests/resources/testrepo/.gitted/objects/7b/4384978d2493e851f9cca7858815fac9b10980 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/81/4889a078c031f61ed08ab5fa863aea9314344d b/tests/resources/testrepo/.gitted/objects/81/4889a078c031f61ed08ab5fa863aea9314344d Binary files differdeleted file mode 100644 index 2f9b6b6e3..000000000 --- a/tests/resources/testrepo/.gitted/objects/81/4889a078c031f61ed08ab5fa863aea9314344d +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/84/96071c1b46c854b31185ea97743be6a8774479 b/tests/resources/testrepo/.gitted/objects/84/96071c1b46c854b31185ea97743be6a8774479 Binary files differdeleted file mode 100644 index 5df58dda5..000000000 --- a/tests/resources/testrepo/.gitted/objects/84/96071c1b46c854b31185ea97743be6a8774479 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 b/tests/resources/testrepo/.gitted/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 deleted file mode 100644 index 4cc3f4dff..000000000 --- a/tests/resources/testrepo/.gitted/objects/94/4c0f6e4dfa41595e6eb3ceecdb14f50fe18162 +++ /dev/null @@ -1 +0,0 @@ -x+)JMU044b040031QrutueXlmmAṃJ}G;UTWRQ`6Kǥ^/-*|W3Py`%E\&g|0{Ӎ1X
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 b/tests/resources/testrepo/.gitted/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 Binary files differdeleted file mode 100644 index bf7b2bb68..000000000 --- a/tests/resources/testrepo/.gitted/objects/9a/03079b8a8ee85a0bee58bf9be3da8b62414ed4 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a b/tests/resources/testrepo/.gitted/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a deleted file mode 100644 index a79612435..000000000 --- a/tests/resources/testrepo/.gitted/objects/9f/d738e8f7967c078dceed8190330fc8648ee56a +++ /dev/null @@ -1,3 +0,0 @@ -x[ -0E*fդ "W0-Ft݁pS[Yx^ -Db CLhut}8X*4ZsYUA
X3RM) s6輢Mរ&Jm;}<\@ޏpĀv?jۺL?H
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f b/tests/resources/testrepo/.gitted/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f deleted file mode 100644 index f8588696b..000000000 --- a/tests/resources/testrepo/.gitted/objects/a4/a7dce85cf63874e984719f4fdd239f5145052f +++ /dev/null @@ -1,2 +0,0 @@ -x;j1Dmdǎ|M3`V{>QvL0I?!4Z=!צ8F!rsQy9]$D&l6A>jFWҵIKNiZ%S - U~̽>' w
[DGڡQ-M>dO}\8g_ШoYr
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 b/tests/resources/testrepo/.gitted/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 deleted file mode 100644 index 29c8e824d..000000000 --- a/tests/resources/testrepo/.gitted/objects/a6/5fedf39aefe402d3bb6e24df4d4f5fe4547750 +++ /dev/null @@ -1,3 +0,0 @@ -xQ -!@sBQ" ٱ
r{<xƪ -HlJSer!ZPTe*jUEo^2(XSEDO<Yj$2s_&},}[~p7~<: Zp?1_C0
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd b/tests/resources/testrepo/.gitted/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd Binary files differdeleted file mode 100644 index d0d7e736e..000000000 --- a/tests/resources/testrepo/.gitted/objects/a7/1586c1dfe8a71c6cbf6c129f404c5642ff31bd +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 b/tests/resources/testrepo/.gitted/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 Binary files differdeleted file mode 100644 index 18a7f61c2..000000000 --- a/tests/resources/testrepo/.gitted/objects/a8/233120f6ad708f843d861ce2b7228ec4e3dec6 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 b/tests/resources/testrepo/.gitted/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 Binary files differdeleted file mode 100644 index d95254674..000000000 --- a/tests/resources/testrepo/.gitted/objects/ae/90f12eea699729ed24555e40b9fd669da12a12 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 b/tests/resources/testrepo/.gitted/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 deleted file mode 100644 index f460f2547..000000000 --- a/tests/resources/testrepo/.gitted/objects/b2/5fa35b38051e4ae45d4222e795f9df2e43f1d1 +++ /dev/null @@ -1,2 +0,0 @@ -xA -0a9I p'1Ѷv\x{cVpvWgǎ0x[]"g#{rD
Cot N U$?9-p+1^Qx9O\C m'D
{mV(+l,
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 b/tests/resources/testrepo/.gitted/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 Binary files differdeleted file mode 100644 index f613670e2..000000000 --- a/tests/resources/testrepo/.gitted/objects/b6/361fc6a97178d8fc8639fdeed71c775ab52593 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 b/tests/resources/testrepo/.gitted/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 deleted file mode 100644 index 0817229bc..000000000 --- a/tests/resources/testrepo/.gitted/objects/be/3563ae3f795b2b4353bcce3a527ad0a4f7f644 +++ /dev/null @@ -1,3 +0,0 @@ -xKj1D)zUB-0uV9<#+W<J&8/seȕKJS -Rv{QrYQN$H\E=6X5K Fr)(dCΆjs}9c-w8o\rI: -l}FW$DsǣٚOWe]V8-Ý"U
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd b/tests/resources/testrepo/.gitted/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd deleted file mode 100644 index 75f541f10..000000000 --- a/tests/resources/testrepo/.gitted/objects/c4/7800c7266a2be04c571c04d5a6614691ea99bd +++ /dev/null @@ -1,3 +0,0 @@ -xQ -0D)ʦI<'lR+FjEo0<xha ]șXUlPF)z4y,\r 'S-mI4 -Xh&F}n+\Y-p|鷜oUz;-alt{?I,:oRcHK
\ No newline at end of file diff --git a/tests/resources/testrepo/.gitted/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f b/tests/resources/testrepo/.gitted/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f Binary files differdeleted file mode 100644 index a67d6e647..000000000 --- a/tests/resources/testrepo/.gitted/objects/d6/c93164c249c8000205dd4ec5cbca1b516d487f +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/tests/resources/testrepo/.gitted/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 Binary files differdeleted file mode 100644 index 711223894..000000000 --- a/tests/resources/testrepo/.gitted/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 b/tests/resources/testrepo/.gitted/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 Binary files differdeleted file mode 100644 index b135eccda..000000000 --- a/tests/resources/testrepo/.gitted/objects/e7/b4ad382349ff96dd8199000580b9b1e2042eb0 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 b/tests/resources/testrepo/.gitted/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 Binary files differdeleted file mode 100644 index 82e2790e8..000000000 --- a/tests/resources/testrepo/.gitted/objects/f1/425cef211cc08caa31e7b545ffb232acb098c3 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 b/tests/resources/testrepo/.gitted/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 Binary files differdeleted file mode 100644 index 697c94c92..000000000 --- a/tests/resources/testrepo/.gitted/objects/f6/0079018b664e4e79329a7ef9559c8d9e0378d1 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/fa/49b077972391ad58037050f2a75f74e3671e92 b/tests/resources/testrepo/.gitted/objects/fa/49b077972391ad58037050f2a75f74e3671e92 Binary files differdeleted file mode 100644 index 112998d42..000000000 --- a/tests/resources/testrepo/.gitted/objects/fa/49b077972391ad58037050f2a75f74e3671e92 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/fd/093bff70906175335656e6ce6ae05783708765 b/tests/resources/testrepo/.gitted/objects/fd/093bff70906175335656e6ce6ae05783708765 Binary files differdeleted file mode 100644 index 12bf5f3e3..000000000 --- a/tests/resources/testrepo/.gitted/objects/fd/093bff70906175335656e6ce6ae05783708765 +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx b/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx Binary files differdeleted file mode 100644 index 5068f2818..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack b/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack Binary files differdeleted file mode 100644 index a6a1f3020..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.pack +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx b/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx Binary files differdeleted file mode 100644 index 94c3c71da..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.idx +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack b/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack Binary files differdeleted file mode 100644 index 74c7fe4f3..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-d7c6adf9f61318f041845b01440d09aa7a91e1b5.pack +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx b/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx Binary files differdeleted file mode 100644 index 555cfa977..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.idx +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack b/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack Binary files differdeleted file mode 100644 index 4d539ed0a..000000000 --- a/tests/resources/testrepo/.gitted/objects/pack/pack-d85f5d483273108c9d8dd0e4728ccf0b2982423a.pack +++ /dev/null diff --git a/tests/resources/testrepo/.gitted/packed-refs b/tests/resources/testrepo/.gitted/packed-refs deleted file mode 100644 index 52f5e876f..000000000 --- a/tests/resources/testrepo/.gitted/packed-refs +++ /dev/null @@ -1,3 +0,0 @@ -# pack-refs with: peeled -41bc8c69075bbdb46c5c6f0566cc8cc5b46e8bd9 refs/heads/packed -5b5b025afb0b4c913b4c338a42934a3863bf3644 refs/heads/packed-test diff --git a/tests/resources/testrepo/.gitted/refs/heads/br2 b/tests/resources/testrepo/.gitted/refs/heads/br2 deleted file mode 100644 index aab87e5e7..000000000 --- a/tests/resources/testrepo/.gitted/refs/heads/br2 +++ /dev/null @@ -1 +0,0 @@ -a4a7dce85cf63874e984719f4fdd239f5145052f diff --git a/tests/resources/testrepo/.gitted/refs/heads/master b/tests/resources/testrepo/.gitted/refs/heads/master deleted file mode 100644 index 3d8f0a402..000000000 --- a/tests/resources/testrepo/.gitted/refs/heads/master +++ /dev/null @@ -1 +0,0 @@ -a65fedf39aefe402d3bb6e24df4d4f5fe4547750 diff --git a/tests/resources/testrepo/.gitted/refs/heads/packed-test b/tests/resources/testrepo/.gitted/refs/heads/packed-test deleted file mode 100644 index f2c14ad83..000000000 --- a/tests/resources/testrepo/.gitted/refs/heads/packed-test +++ /dev/null @@ -1 +0,0 @@ -4a202b346bb0fb0db7eff3cffeb3c70babbd2045 diff --git a/tests/resources/testrepo/.gitted/refs/heads/subtrees b/tests/resources/testrepo/.gitted/refs/heads/subtrees deleted file mode 100644 index ad27e0b13..000000000 --- a/tests/resources/testrepo/.gitted/refs/heads/subtrees +++ /dev/null @@ -1 +0,0 @@ -763d71aadf09a7951596c9746c024e7eece7c7af diff --git a/tests/resources/testrepo/.gitted/refs/heads/test b/tests/resources/testrepo/.gitted/refs/heads/test deleted file mode 100644 index 399c4c73e..000000000 --- a/tests/resources/testrepo/.gitted/refs/heads/test +++ /dev/null @@ -1 +0,0 @@ -e90810b8df3e80c413d903f631643c716887138d diff --git a/tests/resources/testrepo/.gitted/refs/tags/e90810b b/tests/resources/testrepo/.gitted/refs/tags/e90810b deleted file mode 100644 index 584495d3c..000000000 --- a/tests/resources/testrepo/.gitted/refs/tags/e90810b +++ /dev/null @@ -1 +0,0 @@ -7b4384978d2493e851f9cca7858815fac9b10980 diff --git a/tests/resources/testrepo/.gitted/refs/tags/point_to_blob b/tests/resources/testrepo/.gitted/refs/tags/point_to_blob deleted file mode 100644 index f874a3ffc..000000000 --- a/tests/resources/testrepo/.gitted/refs/tags/point_to_blob +++ /dev/null @@ -1 +0,0 @@ -1385f264afb75a56a5bec74243be9b367ba4ca08 diff --git a/tests/resources/testrepo/.gitted/refs/tags/test b/tests/resources/testrepo/.gitted/refs/tags/test deleted file mode 100644 index 6ee952a03..000000000 --- a/tests/resources/testrepo/.gitted/refs/tags/test +++ /dev/null @@ -1 +0,0 @@ -b25fa35b38051e4ae45d4222e795f9df2e43f1d1 diff --git a/tests/test_helpers.c b/tests/test_helpers.c deleted file mode 100644 index 837358453..000000000 --- a/tests/test_helpers.c +++ /dev/null @@ -1,339 +0,0 @@ -/* - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, - * as published by the Free Software Foundation. - * - * In addition to the permissions in the GNU General Public License, - * the authors give you unlimited permission to link the compiled - * version of this file into combinations with other programs, - * and to distribute those combinations without any restriction - * coming from the use of this file. (The General Public License - * restrictions do apply in other respects; for example, they cover - * modification of the file, and distribution when not linked into - * a combined executable.) - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include "common.h" -#include "test_helpers.h" -#include "fileops.h" - -int write_object_data(char *file, void *data, size_t len) -{ - git_file fd; - int ret; - - if ((fd = p_creat(file, S_IREAD | S_IWRITE)) < 0) - return -1; - ret = p_write(fd, data, len); - p_close(fd); - - return ret; -} - -int write_object_files(const char *odb_dir, object_data *d) -{ - if (p_mkdir(odb_dir, GIT_OBJECT_DIR_MODE) < 0) { - int err = errno; - fprintf(stderr, "can't make directory \"%s\"", odb_dir); - if (err == EEXIST) - fprintf(stderr, " (already exists)"); - fprintf(stderr, "\n"); - return -1; - } - - if ((p_mkdir(d->dir, GIT_OBJECT_DIR_MODE) < 0) && (errno != EEXIST)) { - fprintf(stderr, "can't make object directory \"%s\"\n", d->dir); - return -1; - } - if (write_object_data(d->file, d->bytes, d->blen) < 0) { - fprintf(stderr, "can't write object file \"%s\"\n", d->file); - return -1; - } - - return 0; -} - -int remove_object_files(const char *odb_dir, object_data *d) -{ - if (p_unlink(d->file) < 0) { - fprintf(stderr, "can't delete object file \"%s\"\n", d->file); - return -1; - } - if ((p_rmdir(d->dir) < 0) && (errno != ENOTEMPTY)) { - fprintf(stderr, "can't remove object directory \"%s\"\n", d->dir); - return -1; - } - - if (p_rmdir(odb_dir) < 0) { - fprintf(stderr, "can't remove directory \"%s\"\n", odb_dir); - return -1; - } - - return 0; -} - -void locate_loose_object(const char *repository_folder, git_object *object, char **out, char **out_folder) -{ - static const char *objects_folder = "objects/"; - - char *ptr, *full_path, *top_folder; - int path_length, objects_length; - - assert(repository_folder && object); - - objects_length = strlen(objects_folder); - path_length = strlen(repository_folder); - ptr = full_path = git__malloc(path_length + objects_length + GIT_OID_HEXSZ + 3); - - strcpy(ptr, repository_folder); - strcpy(ptr + path_length, objects_folder); - - ptr = top_folder = ptr + path_length + objects_length; - *ptr++ = '/'; - git_oid_pathfmt(ptr, git_object_id(object)); - ptr += GIT_OID_HEXSZ + 1; - *ptr = 0; - - *out = full_path; - - if (out_folder) - *out_folder = top_folder; -} - -int loose_object_mode(const char *repository_folder, git_object *object) -{ - char *object_path; - struct stat st; - - locate_loose_object(repository_folder, object, &object_path, NULL); - if (p_stat(object_path, &st) < 0) - return 0; - free(object_path); - - return st.st_mode; -} - -int loose_object_dir_mode(const char *repository_folder, git_object *object) -{ - char *object_path; - size_t pos; - struct stat st; - - locate_loose_object(repository_folder, object, &object_path, NULL); - - pos = strlen(object_path); - while (pos--) { - if (object_path[pos] == '/') { - object_path[pos] = 0; - break; - } - } - - if (p_stat(object_path, &st) < 0) - return 0; - free(object_path); - - return st.st_mode; -} - -int remove_loose_object(const char *repository_folder, git_object *object) -{ - char *full_path, *top_folder; - - locate_loose_object(repository_folder, object, &full_path, &top_folder); - - if (p_unlink(full_path) < 0) { - fprintf(stderr, "can't delete object file \"%s\"\n", full_path); - return -1; - } - - *top_folder = 0; - - if ((p_rmdir(full_path) < 0) && (errno != ENOTEMPTY)) { - fprintf(stderr, "can't remove object directory \"%s\"\n", full_path); - return -1; - } - - git__free(full_path); - - return GIT_SUCCESS; -} - -int cmp_objects(git_rawobj *o, object_data *d) -{ - if (o->type != git_object_string2type(d->type)) - return -1; - if (o->len != d->dlen) - return -1; - if ((o->len > 0) && (memcmp(o->data, d->data, o->len) != 0)) - return -1; - return 0; -} - -int copy_file(const char *src, const char *dst) -{ - git_buf source_buf = GIT_BUF_INIT; - git_file dst_fd; - int error = GIT_ERROR; - - if (git_futils_readbuffer(&source_buf, src) < GIT_SUCCESS) - return GIT_ENOTFOUND; - - dst_fd = git_futils_creat_withpath(dst, 0777, 0666); - if (dst_fd < 0) - goto cleanup; - - error = p_write(dst_fd, source_buf.ptr, source_buf.size); - -cleanup: - git_buf_free(&source_buf); - p_close(dst_fd); - - return error; -} - -int cmp_files(const char *a, const char *b) -{ - git_buf buf_a = GIT_BUF_INIT; - git_buf buf_b = GIT_BUF_INIT; - int error = GIT_ERROR; - - if (git_futils_readbuffer(&buf_a, a) < GIT_SUCCESS) - return GIT_ERROR; - - if (git_futils_readbuffer(&buf_b, b) < GIT_SUCCESS) { - git_buf_free(&buf_a); - return GIT_ERROR; - } - - if (buf_a.size == buf_b.size && !memcmp(buf_a.ptr, buf_b.ptr, buf_a.size)) - error = GIT_SUCCESS; - - git_buf_free(&buf_a); - git_buf_free(&buf_b); - - return error; -} - -typedef struct { - git_buf src; - size_t src_baselen; - git_buf dst; - size_t dst_baselen; -} copydir_data; - -static int copy_filesystem_element_recurs(void *_data, git_buf *source) -{ - copydir_data *data = (copydir_data *)_data; - - git_buf_truncate(&data->dst, data->dst_baselen); - git_buf_puts(&data->dst, source->ptr + data->src_baselen); - - if (git_path_isdir(source->ptr) == GIT_SUCCESS) - return git_path_direach(source, copy_filesystem_element_recurs, _data); - else - return copy_file(source->ptr, data->dst.ptr); -} - -int copydir_recurs( - const char *source_directory_path, - const char *destination_directory_path) -{ - int error; - copydir_data data = { GIT_BUF_INIT, 0, GIT_BUF_INIT, 0 }; - - /* Source has to exist, Destination hast to _not_ exist */ - if (git_path_isdir(source_directory_path) != GIT_SUCCESS || - git_path_isdir(destination_directory_path) == GIT_SUCCESS) - return GIT_EINVALIDPATH; - - git_buf_joinpath(&data.src, source_directory_path, ""); - data.src_baselen = data.src.size; - - git_buf_joinpath(&data.dst, destination_directory_path, ""); - data.dst_baselen = data.dst.size; - - error = copy_filesystem_element_recurs(&data, &data.src); - - git_buf_free(&data.src); - git_buf_free(&data.dst); - - return error; -} - -int open_temp_repo(git_repository **repo, const char *path) -{ - int error; - if ((error = copydir_recurs(path, TEMP_REPO_FOLDER)) < GIT_SUCCESS) - return error; - - return git_repository_open(repo, TEMP_REPO_FOLDER); -} - -void close_temp_repo(git_repository *repo) -{ - git_repository_free(repo); - if (git_futils_rmdir_r(TEMP_REPO_FOLDER, 1) < GIT_SUCCESS) { - printf("\nFailed to remove temporary folder. Aborting test suite.\n"); - exit(-1); - } -} - -typedef struct { - const char *filename; - size_t filename_len; -} remove_data; - -static int remove_placeholders_recurs(void *_data, git_buf *path) -{ - remove_data *data = (remove_data *)_data; - size_t pathlen; - - if (!git_path_isdir(path->ptr)) - return git_path_direach(path, remove_placeholders_recurs, data); - - pathlen = path->size; - - if (pathlen < data->filename_len) - return GIT_SUCCESS; - - /* if path ends in '/'+filename (or equals filename) */ - if (!strcmp(data->filename, path->ptr + pathlen - data->filename_len) && - (pathlen == data->filename_len || - path->ptr[pathlen - data->filename_len - 1] == '/')) - return p_unlink(path->ptr); - - return GIT_SUCCESS; -} - -int remove_placeholders(const char *directory_path, const char *filename) -{ - int error; - remove_data data; - git_buf buffer = GIT_BUF_INIT; - - if (git_path_isdir(directory_path)) - return GIT_EINVALIDPATH; - - if ((error = git_buf_sets(&buffer, directory_path)) < GIT_SUCCESS) - return error; - - data.filename = filename; - data.filename_len = strlen(filename); - - error = remove_placeholders_recurs(&data, &buffer); - - git_buf_free(&buffer); - - return error; -} diff --git a/tests/test_helpers.h b/tests/test_helpers.h deleted file mode 100644 index a475f66f3..000000000 --- a/tests/test_helpers.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, - * as published by the Free Software Foundation. - * - * In addition to the permissions in the GNU General Public License, - * the authors give you unlimited permission to link the compiled - * version of this file into combinations with other programs, - * and to distribute those combinations without any restriction - * coming from the use of this file. (The General Public License - * restrictions do apply in other respects; for example, they cover - * modification of the file, and distribution when not linked into - * a combined executable.) - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#ifndef INCLUDE_test_helpers_h__ -#define INCLUDE_test_helpers_h__ - -#include "test_lib.h" -#include <git2.h> - -#include "odb.h" - -#define TEST_REPOSITORY_NAME "testrepo.git" -#define REPOSITORY_FOLDER TEST_RESOURCES "/" TEST_REPOSITORY_NAME "/" -#define ODB_FOLDER (REPOSITORY_FOLDER "objects/") -#define TEST_INDEX_PATH (REPOSITORY_FOLDER "index") -#define TEST_INDEX2_PATH (TEST_RESOURCES "/gitgit.index") -#define TEST_INDEXBIG_PATH (TEST_RESOURCES "/big.index") -#define EMPTY_REPOSITORY_FOLDER TEST_RESOURCES "/empty_standard_repo/.gitted/" - -#define TEMP_FOLDER "" -#define TEMP_REPO_FOLDER TEMP_FOLDER TEST_REPOSITORY_NAME "/" -#define TEMP_REPO_FOLDER_NS TEMP_FOLDER TEST_REPOSITORY_NAME -#define TEST_STD_REPO_FOLDER TEMP_REPO_FOLDER ".git/" - -typedef struct object_data { - unsigned char *bytes; /* (compressed) bytes stored in object store */ - size_t blen; /* length of data in object store */ - char *id; /* object id (sha1) */ - char *type; /* object type */ - char *dir; /* object store (fan-out) directory name */ - char *file; /* object store filename */ - unsigned char *data; /* (uncompressed) object data */ - size_t dlen; /* length of (uncompressed) object data */ -} object_data; - -extern int write_object_data(char *file, void *data, size_t len); - -extern int write_object_files(const char *odb_dir, object_data *d); - -extern int remove_object_files(const char *odb_dir, object_data *d); - -extern int cmp_objects(git_rawobj *o, object_data *d); - -extern void locate_loose_object(const char *odb_dir, git_object *object, char **out, char **out_folder); - -extern int loose_object_mode(const char *odb_dir, git_object *object); -extern int loose_object_dir_mode(const char *odb_dir, git_object *object); - -extern int remove_loose_object(const char *odb_dir, git_object *object); - -extern int cmp_files(const char *a, const char *b); -extern int copy_file(const char *source, const char *dest); -extern int rmdir_recurs(const char *directory_path); -extern int copydir_recurs(const char *source_directory_path, const char *destination_directory_path); -extern int remove_placeholders(const char *directory_path, const char *filename); - -extern int open_temp_repo(git_repository **repo, const char *path); -extern void close_temp_repo(git_repository *repo); - -#endif -/* INCLUDE_test_helpers_h__ */ diff --git a/tests/test_lib.c b/tests/test_lib.c deleted file mode 100755 index a4c39dfde..000000000 --- a/tests/test_lib.c +++ /dev/null @@ -1,198 +0,0 @@ -#include <assert.h> -#include <setjmp.h> -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <math.h> - -#include "test_lib.h" - -#define DO_ALLOC(TYPE) ((TYPE*) malloc(sizeof(TYPE))) -#define GIT_MAX_TEST_CASES 64 - -struct git_test { - char *name; - char *message; - char *failed_pos; - char *description; - char *error_message; - - git_testfunc function; - unsigned failed:1, ran:1; - jmp_buf *jump; -}; - -struct git_testsuite { - char *name; - int count, fail_count; - git_test *list[GIT_MAX_TEST_CASES]; -}; - -static void test_free(git_test *t) -{ - if (t) { - free(t->name); - free(t->description); - free(t->failed_pos); - free(t->message); - free(t->error_message); - free(t); - } -} - -static void test_run(git_test *tc) -{ - jmp_buf buf; - tc->jump = &buf; - - if (setjmp(buf) == 0) { - tc->ran = 1; - (tc->function)(tc); - } - - tc->jump = 0; -} - -static git_test *create_test(git_testfunc function) -{ - git_test *t = DO_ALLOC(git_test); - - memset(t, 0x0, sizeof(git_test)); - t->function = function; - - return t; -} - -void git_test__init(git_test *t, const char *name, const char *description) -{ - t->name = strdup(name); - t->description = strdup(description); -} - - -/*-------------------------------------------------------------------------* - * Public assert methods - *-------------------------------------------------------------------------*/ - -static void fail_test(git_test *tc, const char *file, int line, const char *message) -{ - char buf[1024]; - const char *last_error = git_lasterror(); - - snprintf(buf, 1024, "%s:%d", file, line); - - tc->failed = 1; - tc->message = strdup(message); - tc->failed_pos = strdup(buf); - - if (last_error) - tc->error_message = strdup(last_error); - - if (tc->jump != 0) - longjmp(*(tc->jump), 0); -} - -void git_test__fail(git_test *tc, const char *file, int line, const char *message) -{ - fail_test(tc, file, line, message); -} - -void git_test__assert(git_test *tc, const char *file, int line, const char *message, int condition) -{ - if (condition == 0) - fail_test(tc, file, line, message); -} - -void git_test__assert_pass(git_test *tc, const char *file, int line, const char *message, int ret_value) -{ - if (ret_value < 0) - fail_test(tc, file, line, message); -} - -/*-------------------------------------------------------------------------* - * Test Suite - *-------------------------------------------------------------------------*/ - -static void testsuite_init(git_testsuite *ts) -{ - ts->count = 0; - ts->fail_count = 0; - memset(ts->list, 0, sizeof(ts->list)); -} - -git_testsuite *git_testsuite_new(const char *name) -{ - git_testsuite *ts = DO_ALLOC(git_testsuite); - testsuite_init(ts); - ts->name = strdup(name); - return ts; -} - -static void free_suite(git_testsuite *ts) -{ - unsigned int n; - - for (n = 0; n < GIT_MAX_TEST_CASES; n++) - if (ts->list[n]) - test_free(ts->list[n]); - - free(ts->name); - free(ts); -} - -void git_testsuite_add(git_testsuite *ts, git_testfunc test) -{ - assert(ts->count < GIT_MAX_TEST_CASES); - ts->list[ts->count++] = create_test(test); -} - -static void print_details(git_testsuite *ts) -{ - int i; - int failCount = 0; - - if (ts->fail_count == 0) { - const char *testWord = ts->count == 1 ? "test" : "tests"; - printf("OK (%d %s)\n", ts->count, testWord); - } else { - printf("Failed (%d failures):\n", ts->fail_count); - - for (i = 0 ; i < ts->count ; ++i) { - git_test *tc = ts->list[i]; - if (tc->failed) { - failCount++; - printf(" %d) \"%s\" [test %s @ %s]\n\t%s\n", - failCount, tc->description, tc->name, tc->failed_pos, tc->message); - if (tc->error_message) - printf("\tError: %s\n", tc->error_message); - } - } - } -} - -int git_testsuite_run(git_testsuite *ts) -{ - int i, fail_count; - - printf("Suite \"%s\": ", ts->name); - - for (i = 0 ; i < ts->count ; ++i) { - git_test *tc = ts->list[i]; - - test_run(tc); - if (tc->failed) { - ts->fail_count++; - putchar('F'); - } else - putchar('.'); - - fflush(stdout); - } - printf("\n "); - print_details(ts); - fail_count = ts->fail_count; - - free_suite(ts); - return fail_count; -} - diff --git a/tests/test_lib.h b/tests/test_lib.h deleted file mode 100755 index 9d90e4847..000000000 --- a/tests/test_lib.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef __LIBGIT2_TEST_H__ -#define __LIBGIT2_TEST_H__ - -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "common.h" -#include <git2.h> - -#define DECLARE_SUITE(SNAME) extern git_testsuite *libgit2_suite_##SNAME(void) -#define SUITE_NAME(SNAME) libgit2_suite_##SNAME - -#define BEGIN_SUITE(SNAME) \ - git_testsuite *libgit2_suite_##SNAME(void);\ - git_testsuite *libgit2_suite_##SNAME(void) {\ - git_testsuite *_gitsuite = git_testsuite_new(#SNAME); - -#define ADD_TEST(TNAME) \ - git_testsuite_add(_gitsuite, _gittest__##TNAME); - -#define END_SUITE \ - return _gitsuite;\ - } - -#define BEGIN_TEST(TNAME, DESC) \ - static void _gittest__##TNAME(git_test *_gittest) { \ - git_test__init(_gittest, #TNAME, DESC); \ - git_clearerror();\ - {\ - -#define END_TEST }} - -typedef struct git_test git_test; -typedef struct git_testsuite git_testsuite; -typedef void (*git_testfunc)(git_test *); -typedef git_testsuite *(*libgit2_suite)(void); - -void git_test__init(git_test *t, const char *name, const char *description); -void git_test__fail(git_test *tc, const char *file, int line, const char *message); -void git_test__assert(git_test *tc, const char *file, int line, const char *message, int condition); -void git_test__assert_pass(git_test *tc, const char *file, int line, const char *message, int ret_value); - -#define must_pass(expr) git_test__assert_pass(_gittest, __FILE__, __LINE__, "Method failed: " #expr, (expr)) -#define must_fail(expr) git_test__assert(_gittest, __FILE__, __LINE__, "Expected method to fail: " #expr, (expr) < 0) -#define must_be_true(expr) git_test__assert(_gittest, __FILE__, __LINE__, "Expression is not true: " #expr, !!(expr)) - -git_testsuite *git_testsuite_new(const char *name); -void git_testsuite_add(git_testsuite *ts, git_testfunc test); -int git_testsuite_run(git_testsuite *ts); - -#endif - diff --git a/tests/test_main.c b/tests/test_main.c deleted file mode 100644 index 50256e97c..000000000 --- a/tests/test_main.c +++ /dev/null @@ -1,93 +0,0 @@ -/* - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, - * as published by the Free Software Foundation. - * - * In addition to the permissions in the GNU General Public License, - * the authors give you unlimited permission to link the compiled - * version of this file into combinations with other programs, - * and to distribute those combinations without any restriction - * coming from the use of this file. (The General Public License - * restrictions do apply in other respects; for example, they cover - * modification of the file, and distribution when not linked into - * a combined executable.) - * - * This file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#include <string.h> -#include <git2.h> - -#include "posix.h" - -#include "test_lib.h" -#include "test_helpers.h" - -DECLARE_SUITE(core); -DECLARE_SUITE(rawobjects); -DECLARE_SUITE(objwrite); -DECLARE_SUITE(commit); -DECLARE_SUITE(revwalk); -DECLARE_SUITE(index); -DECLARE_SUITE(hashtable); -DECLARE_SUITE(tag); -DECLARE_SUITE(tree); -DECLARE_SUITE(refs); -DECLARE_SUITE(repository); -DECLARE_SUITE(threads); -DECLARE_SUITE(buffers); -DECLARE_SUITE(status); - -static libgit2_suite suite_methods[]= { - SUITE_NAME(core), - SUITE_NAME(rawobjects), - SUITE_NAME(objwrite), - SUITE_NAME(commit), - SUITE_NAME(revwalk), - SUITE_NAME(index), - SUITE_NAME(hashtable), - SUITE_NAME(tag), - SUITE_NAME(tree), - SUITE_NAME(refs), - SUITE_NAME(repository), - SUITE_NAME(threads), - SUITE_NAME(buffers), - SUITE_NAME(status), -}; - -#define GIT_SUITE_COUNT (ARRAY_SIZE(suite_methods)) - -#ifdef GIT_WIN32 -int __cdecl -#else -int -#endif -main(int argc, char *argv[]) -{ - unsigned int i, failures; - - GIT_UNUSED(argc); - GIT_UNUSED(argv); - - git_threads_init(); - - p_umask(0); - - failures = 0; - - for (i = 0; i < GIT_SUITE_COUNT; ++i) - failures += git_testsuite_run(suite_methods[i]()); - - git_threads_shutdown(); - - return failures ? -1 : 0; -} - diff --git a/tests/tests.supp b/tests/tests.supp deleted file mode 100644 index fe9d965dc..000000000 --- a/tests/tests.supp +++ /dev/null @@ -1,6 +0,0 @@ -{ - ignore-zlib-cond - Memcheck:Cond - obj:*libz.so* -} - |