- 28 Aug, 2022 1 commit
-
-
Timo Röhling authored
-
- 05 May, 2022 1 commit
-
-
Mohd Bilal authored
-
- 10 Dec, 2021 1 commit
-
-
Praveen Arimbrathodiyil authored
-
- 06 Dec, 2020 1 commit
-
-
Utkarsh Gupta authored
-
- 13 Feb, 2020 1 commit
-
-
Utkarsh Gupta authored
-
- 15 Nov, 2019 1 commit
-
-
Praveen Arimbrathodiyil authored
-
- 11 May, 2019 1 commit
-
-
Jongmin Kim authored
-
- 26 Dec, 2018 1 commit
-
-
Raju Devidas authored
-
- 11 Aug, 2018 1 commit
-
-
Ximin Luo authored
-
- 26 Apr, 2018 1 commit
-
-
Praveen Arimbrathodiyil authored
-
- 29 Jul, 2017 2 commits
-
-
Russell Sim authored
Remove deps/
-
Russell Sim authored
-
- 14 Jun, 2017 4 commits
-
-
Edward Thomson authored
-
Edward Thomson authored
adding GIT_FILTER_VERSION to GIT_FILTER_INIT as part of convention
-
Edward Thomson authored
travis: replace use of deprecated homebrew/dupes tap
-
Edward Thomson authored
Test improvements
-
- 13 Jun, 2017 12 commits
-
-
Mohseen Mukaddam authored
-
Mohseen Mukaddam authored
-
Patrick Steinhardt authored
Introduce a new test suite "odb::backend::simple", which utilizes the fake backend to exercise the ODB abstraction layer. While such tests already exist for the case where multiple backends are put together, no direct testing for functionality with a single backend exist yet.
-
Patrick Steinhardt authored
The fake backend currently implements all reading functions except for the `exists_prefix` one. Implement it to enable further testing of the ODB layer.
-
Patrick Steinhardt authored
The `search_object` function takes the OID length as one of its parameters, where its maximum length is `GIT_OID_HEXSZ`. The `exists` function of the fake backend used `GIT_OID_RAWSZ` though, leading to only the first half of the OID being used when finding the correct object.
-
Patrick Steinhardt authored
In order to be able to test the ODB prefix functions, we need to be able to detect ambiguous prefixes in case multiple objects with the same prefix exist in the fake ODB. Extend `search_object` to detect ambiguous queries and have callers return its error code instead of always returning `GIT_ENOTFOUND`.
-
Patrick Steinhardt authored
Initialization of the `git_proxy_options` structure is never tested anywhere. Include it in our usual initialization test in "core::structinit::compare".
-
Patrick Steinhardt authored
A newly added test uses the `git_repository_new` function without the corresponding header file being included. While this works due to the compiler deducing the correct function signature, we should obviously just include the function's declaration file.
-
Patrick Steinhardt authored
While our debug builds on MSVC platforms already tune the code optimizer to aid debugging code, all the other platforms still use the default optimization level. This makes it hard for developers on these platforms to actually debug code while maintaining his sanity due to optimizations like inlined code, elided variables etc. To help this common use case, we can simply follow the MSVC example and turn off code optimization with "-O0" for debug builds. While it would be preferable to instead use "-Og" supported by more modern compilers, we cannot guarantee that this level is available on all supported platforms.
-
Patrick Steinhardt authored
In our code base, we have some occasions where we use the "_DEBUG" preprocessor macro to enable additional code which should not be part of release builds. While we define this flag on MSVC platforms, it is guarded by the conditional `WIN32 AND NOT CYGWIN` on other platforms since 19be3f9e (Improve MSVC compiler, linker flags, 2013-02-13). While this condition can be fulfilled by the MSVC platform, it is never encountered due to being part of the `ELSE` part of `IF (MSVC)`. The intention of the conditional was most likely to avoid the preprocessor macro on Cygwin platforms, but to include it on everthing else. As such, the correct condition here would be `IF (NOT CYGWIN)` instead. But digging a bit further, the condition is only ever used in two places: 1. To skip the test in "core::structinit", which should also work on Cygwin. 2. In "src/win32/git2.rc", where it is used to set additional file flags. As this file is included in MSVC builds only, it cannot cause any harm to set "_DEBUG" on Cygwin here. As such, we can simply drop the conditional and always set "-D_DEBUG" on all platforms.
-
Patrick Steinhardt authored
In commit 9f75a9ce (Turning on runtime checks when building debug under MSVC., 2012-03-30), we introduced a comment "Precompiled headers", which actually refers to no related commands. Seeing that the comment never had anything to refer to, we can simply remove it here.
-
Patrick Steinhardt authored
The formulae provided by the homebrew/dupes tap are deprecated since at least April 4, 2017, with formulae having been migrated to homebrew/core. Replace the deprecated reference to "homebrew/dupes/zlib" with only "zlib".
-
- 12 Jun, 2017 12 commits
-
-
Edward Thomson authored
Read prefix tests
-
Edward Thomson authored
Allow creation of a configuration object in an in-memory repository
-
Edward Thomson authored
travis: install openssl explicitly
-
Edward Thomson authored
-
Edward Thomson authored
Given a wholly in-memory repository, ensure that we can create an anonymous remote and perform actions on it.
-
Edward Thomson authored
When in an in-memory repository - without a configuration file - do not fail to create a configuration object.
-
Edward Thomson authored
Disambiguate error values: return `GIT_ENOTFOUND` when the item cannot exist in the repository (perhaps because the repository is inmemory or otherwise not backed by a filesystem), return `-1` when there is a hard failure.
-
Patrick Steinhardt authored
Previous to pulling out and extending the fake backend, it was quite cumbersome to write tests for very specific scenarios regarding backends. But as we have made it more generic, it has become much easier to do so. As such, this commit adds multiple tests for scenarios with multiple backends for the ODB. The changes also include a test for a very targeted scenario. When one backend found a matching object via `read_prefix`, but the last backend returns `GIT_ENOTFOUND` and when object hash verification is turned off, we fail to reset the error code to `GIT_OK`. This causes us to segfault later on, when doing a double-free on the returned object.
-
Patrick Steinhardt authored
Right now, the fake backend is quite restrained in the way how it works: we pass it an OID which it is to return later as well as an error code we want it to return. While this is sufficient for existing tests, we can make the fake backend a little bit more generic in order to allow us testing for additional scenarios. To do so, we change the backend to not accept an error code and OID which it is to return for queries, but instead a simple array of OIDs with their respective blob contents. On each query, the fake backend simply iterates through this array and returns the first matching object.
-
Patrick Steinhardt authored
In order to make the fake backend more useful, we want to enable it holding multiple object references. To do so, we need to decouple it from the single fake OID it currently holds, which we simply move up into the calling tests.
-
Patrick Steinhardt authored
The fake backend used by the test suite `odb::backend::nonrefreshing` is useful to have some low-level tests for the ODB layer. As such, we move the implementation into its own `backend_helpers` module.
-
Edward Thomson authored
smart_protocol: fix parsing of server ACK responses
-