summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | odb: test object lookups from git_repository_wrap_odbEdward Thomson2023-05-061-1/+20
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge pull request #6549 from libgit2/ethomson/sha256_experimentalEdward Thomson2023-04-22109-124/+1423
|\ \ \ \ \ \ | | | | | | | | | | | | | | sha256: less hardcoded SHA1 types and lengths
| * | | | | | commit graph: support sha256Edward Thomson2023-04-101-2/+15
| | | | | | |
| * | | | | | midx: support sha256Edward Thomson2023-04-101-1/+6
| | | | | | |
| * | | | | | diff: parse patches with sha256Edward Thomson2023-04-1012-73/+97
| | | | | | |
| * | | | | | index: add sha256 supportEdward Thomson2023-04-1095-48/+1305
| | | | | | |
* | | | | | | config: return `GIT_ENOTFOUND` for missing programdataEdward Thomson2023-04-111-0/+11
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the programdata path is missing, ensure that we pass down the `GIT_ENOTFOUND` error to the caller instead of converting it to a generic `-1`.
* | | | | | repo: honor GIT_CONFIG_* environment variablesEdward Thomson2023-04-041-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_CONFIG_GLOBAL`, `GIT_CONFIG_SYSTEM` and `GIT_CONFIG_NOSYSTEM` environment variables.
* | | | | | repo: honor GIT_COMMON_DIR when respecting envEdward Thomson2023-04-041-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_COMMON_DIR` environment variable.
* | | | | | repo: honor GIT_WORK_TREE environment variableEdward Thomson2023-04-041-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the repository is opened with `GIT_REPOSITORY_OPEN_FROM_ENV`, honor the `GIT_WORK_TREE` environment variable.
* | | | | | repo: free data in the discovery testsEdward Thomson2023-04-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Shocked that our leak checkers didn't find this earlier.
* | | | | | Merge pull request #6505 from libgit2/ethomson/extension_madnessEdward Thomson2023-03-271-6/+23
|\ \ \ \ \ \ | | | | | | | | | | | | | | repo: don't allow repeated extensions
| * | | | | | repo: don't allow repeated extensionsEdward Thomson2023-02-251-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user attempts to add a custom extension that the system already supports, or that is already in their list of custom extensions, de-dup it.
* | | | | | | utf8: add conversion with size and refactor namesEdward Thomson2023-03-212-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add functions to use convert a string with length, instead of assuming NUL termination. In addition, move the utf8 to 16 conversion routines into the `git_utf8` namespace instead of using namespaceless `git__` prefixed names.
* | | | | | | http: introduce schannel streams for windowsEdward Thomson2023-03-212-4/+15
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a stream interface for Schannel - the native crypto APIs - on Windows. This allows Windows to use the same HTTP transport that all the other platforms use, with its own native crypto. Ultimately this allows us to deprecate WinHTTP and we need not add support for our socket changes in two places (our HTTP stack and the WinHTTP stack).
* | | | | | index: test `git_index_add_all` with forceEdward Thomson2023-03-021-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that when all files beneath a directory are ignored that we add the files when FORCE is specified.
* | | | | | index: test `git_index_add_all` with ignored folderEdward Thomson2023-03-021-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that when all files beneath a directory are ignored that we actually ignore the files.
* | | | | | Merge pull request #6520 from libgit2/ethomson/git_odb_openEdward Thomson2023-03-021-0/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | odb: restore `git_odb_open`
| * | | | | | odb: restore `git_odb_open`Edward Thomson2023-03-011-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `git_odb_open` was erroneously removed during a refactoring; add it back.
* | | | | | | Merge pull request #6513 from libgit2/ethomson/util_test_rootEdward Thomson2023-03-011-1/+5
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | fs_path: let root run the ownership tests
| * | | | | | fs_path: let root run the ownership testsEdward Thomson2023-02-271-1/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `git_fs_path_owner_is_current_user` expects the root dir on unix (`/`) to be owned by a non-current user. This makes sense unless root (or euid == 0) is running the tests, which often happens during distro build / packaging scripts. Allow them to run the tests.
* | | | | | Merge pull request #6512 from libgit2/ethomson/odb_looseEdward Thomson2023-02-271-0/+43
|\ \ \ \ \ \
| * | | | | | odb: test git_odb_backend_looseEdward Thomson2023-02-271-0/+43
| |/ / / / /
* | | | | | Revert "tests: validate host and port for ssh tests when non-standard"Edward Thomson2023-02-271-11/+1
|/ / / / / | | | | | | | | | | | | | | | This reverts commit 43e84e246cc716ac51a276945b5b112b21d802d1.
* | | | | tests: validate host and port for ssh tests when non-standardEdward Thomson2023-02-241-1/+11
| | | | |
* | | | | tests: always unset HTTP_PROXY before starting testsEdward Thomson2023-02-231-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The remote::httpproxy::env test (correctly) reset the environment before running; however the other tests are also impacted by the environment and need to have it isolated.
* | | | | #6491: Sets oid_type on repos open with git_repository_open_bareMiguel Arroz2023-02-171-0/+3
| | | | |
* | | | | Merge pull request #6330 from gitkraken-jacobw/partial-stashingEdward Thomson2023-02-162-0/+42
|\ \ \ \ \ | | | | | | | | | | | | stash: partial stash specific files
| * | | | | stash: test save options initJacob Watson2022-07-141-0/+5
| | | | | |
| * | | | | stash: implement CI testingJacob Watson2022-07-141-0/+37
| | | | | |
* | | | | | tests: use static scope for test dataEdward Thomson2023-02-152-3/+3
| | | | | |
* | | | | | Merge pull request #6456 from libgit2/ethomson/sha256_experimentalEdward Thomson2023-02-14143-92/+3764
|\ \ \ \ \ \ | | | | | | | | | | | | | | SHA256: more SHA256 support
| * | | | | | win32: adjust max path length for SHA256Edward Thomson2023-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The longest path within a git repository is now a SHA256 format packfile. Adjust our max length checking to match.
| * | | | | | clone: support sha256Edward Thomson2023-02-123-12/+45
| | | | | | |
| * | | | | | object: lookup sha256 objectsEdward Thomson2023-02-128-59/+626
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is much of the plumbing for the object database to support SHA256, and for objects to be able to parse SHA256 versions of themselves.
| * | | | | | odb: test sha256 pack backendEdward Thomson2023-02-122-0/+252
| | | | | | |
| * | | | | | packfile: handle sha256 packfilesEdward Thomson2023-02-127-3/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the packfile machinery to cope with SHA256.
| * | | | | | odb: rename test file to avoid underscoreEdward Thomson2023-02-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In clar, an underscore is meaningful; avoid using it incorrectly / unnecessarily.
| * | | | | | tests: add a sha256 repositoryEdward Thomson2023-02-12117-0/+2569
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a conversion of the testrepo.git to SHA256 support.
| * | | | | | tests: helpers for getting ints from configurationEdward Thomson2023-02-122-0/+22
| | | | | | |
| * | | | | | repo: don't overwrite repo format version on reinitEdward Thomson2023-02-121-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that we maintain the `core.repositoryFormatVersion` value instead of always overwriting it with the default.
| * | | | | | repo: understand the `objectformat` extensionEdward Thomson2023-02-122-6/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the repository about the `objectformat` extension, supporting `sha1` always and `sha256` when the experimental sha256 support is active.
| * | | | | | oid: provide type lookups by enum value or nameEdward Thomson2023-02-091-0/+19
| | | | | | |
* | | | | | | Merge pull request #6455 from libgit2/ethomson/sysdirEdward Thomson2023-02-1411-60/+260
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Support the notion of a home directory separately from global configuration directory
| * | | | | | | ci: run clone tests in onlineEdward Thomson2023-02-091-1/+1
| | | | | | | |
| * | | | | | | tests: known_hosts manipulating ssh clone testsEdward Thomson2023-02-091-22/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach the clone tests how to clone from github.com, when given a keypair with a passphrase and known_hosts data. This allows us to better exercise our known_hosts checking and ensure that the lifecycle of the certificate callback matches our expectations.
| * | | | | | | tests: use a dummy homedirEdward Thomson2023-02-093-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a dummy home directory for tests to avoid user data leaking into test execution.
| * | | | | | | tests: configure temporary homedirs correctlyEdward Thomson2023-02-097-36/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we've split the notion of the home directory from the global configuration store, our tests should use the appropriate one based on what they're doing.
| * | | | | | | sysdir: move windows sysdir functions out of shared utilEdward Thomson2023-02-091-1/+0
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The windows sysdir functions are libgit2-specific and for git compatibility only; remove them from the shared util directory and bring them into the libgit2 source tree.
* | | | | | | Merge pull request #6423 from cavaquinho/fix/6422-revwalk_push_glob-dangling-refEdward Thomson2023-02-141-0/+17
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | #6422: handle dangling symbolic refs gracefully