summaryrefslogtreecommitdiff
path: root/ci/test.sh
Commit message (Collapse)AuthorAgeFilesLines
* opts: test GIT_OPT_SET_SSL_CERT_LOCATIONSEdward Thomson2021-08-291-3/+11
| | | | | Include a self-signed certificate for test.libgit2.org:1443 that we can use to verify that GIT_OPT_SET_SSL_CERT_LOCATIONS works.
* ci: stop on test failureEdward Thomson2021-08-291-0/+5
|
* ci: stop using deprecated set-env in GitHub ActionsEdward Thomson2020-11-181-0/+325
| | | | (And move the ci scripts into the `ci` directory.)
* azure: move build scripts into "azure-pipelines" directoryPatrick Steinhardt2019-07-201-246/+0
| | | | | | | | | | | | Since we have migrated to Azure Pipelines, we have deprecated and subsequentally removed all infrastructure for AppVeyor and Travis. Thus it doesn't make a lot of sense to have the split between "ci/" and "azure-pipelines/" directories anymoer, as "azure-pipelines/" is essentially our only CI. Move all CI scripts into the "azure-pipelines/" directory to have everything centrally located and to remove clutter in the top-level directory.
* tests: execute leak checker via CTest directlyPatrick Steinhardt2019-07-201-26/+2
| | | | | | | | | | | | | | | Right now, we have an awful hack in our test CI setup that extracts the test command from CTest's output and then prepends the leak checker. This is dependent on non-machine-parseable output from CMake and also breaks on various ocassions, like for example when we have spaces in the current path or when the path contains backslashes. Both conditions may easily be triggered on Win32 systems, and in fact they do break our Azure Pipelines builds. Remove the awful hack in favour of a new CMake build option "USE_LEAK_CHECKER". If specifying e.g. "-DUSE_LEAK_CHECKER=valgrind", then we will set up all tests to be run under valgrind. Like this, we can again simply execute ctest without needing to rely on evil sourcery.
* fuzzers: provide test targetsPatrick Steinhardt2019-07-201-3/+1
| | | | | | Instead of having to find the fuzzer executables in our Azure test scripts, provide test targets for each of our fuzzers that will run them with the correct paths.
* ci: add flaky test re-execution on UnixEdward Thomson2019-06-241-7/+32
| | | | | | Our online tests are occasionally flaky since they hit real network endpoints. Re-run them up to 5 times if they fail, to allow us to avoid having to fail the whole build.
* ci: test NTLM proxy authentication on UnixEdward Thomson2019-06-101-4/+22
|
* ci: update poxyproxy, run in quiet modeEdward Thomson2019-01-201-2/+2
| | | | Update the proxy so that we can enable a quiet mode.
* ci: only run invasive tests during nightly runsEdward Thomson2019-01-191-1/+1
|
* ci: enable some of the invasive testcasesEtienne Samson2019-01-111-0/+14
|
* tests: PROXY_URL is more accurately PROXY_HOSTEdward Thomson2018-11-281-2/+2
| | | | | | | Change the `GITTEST_REMOTE_PROXY_URL` environment variable to be `GITTEST_REMOTE_PROXY_HOST`, since it is a host:port combination, not an actual URL. (We cannot use a URL here since we may want to include the username:password combination in the constructed URL.)
* Merge pull request #4860 from tiennou/ci/macos-leaksEdward Thomson2018-10-311-1/+1
|\ | | | | CI: Fix macOS leak detection
| * tests: use CLAR_AT_EXIT to check for leaks on macOSEtienne Samson2018-10-301-1/+1
| |
| * clar: provide a way to run some shell before exitingEtienne Samson2018-10-301-1/+1
| |
| * ci: redirect the malloc debugging output to /dev/nullEtienne Samson2018-10-231-1/+1
| |
* | ci: fail if requested test name is not found (unix)Edward Thomson2018-10-261-0/+6
| | | | | | | | | | | | POSIX: the CMakeLists.txt configures the test names; when we query ctest for the test command-line to run, fail if the tests are not found.
* | ci: bind specifically to localhost for proxyEdward Thomson2018-10-211-2/+2
|/ | | | | | Bind the proxy specifically to 127.0.0.1 instead of all addresses. This is not strictly necessary for operations, but having a potentially open proxy on a network is not a good idea.
* ci: don't stop on failureethomson/ci-refactorEdward Thomson2018-09-291-7/+13
| | | | Don't stop on test failures; run all the tests, even when a test fails.
* ci: write test result XMLethomson/clar-xmlEdward Thomson2018-09-111-3/+6
| | | | Add the clar flags to produce JUnit-style XML output before invocation.
* ci: only run the exact named testEdward Thomson2018-09-101-1/+1
| | | | | | | Our CI test system invokes ctest with the name of the given tests it wishes to invoke. ctest (with the `-R` flag) treats this name as a regular expression. Provide anchors in the regular expression to avoid matching additional tests in this search.
* ci: fix location of fuzzer corpora on VSTSPatrick Steinhardt2018-08-031-1/+1
| | | | | | When using VSTS-based builds, we are in a different location than when doing Travis builds. Due to this, the relative path to our fuzzer corpora does not work on VSTS. Fix it by using `${SOURCE_DIR}` instead.
* fuzzers: rename "fuzz" directory to match our stylePatrick Steinhardt2018-08-031-3/+2
| | | | | | | | | | | Our layout uses names like "examples" or "tests" which is why the "fuzz" directory doesn't really fit in here. Rename the directory to be called "fuzzers" instead. Furthermore, we rename the fuzzer "fuzz_packfile_raw" to "packfile_raw_fuzzer", which is also in line with the already existing fuzzer at google/oss-fuzz. While at it, rename the "packfile_raw" fuzzer to instead just be called "packfile" fuzzer.
* fuzzers: add build support and instructionslhchavez2018-08-031-0/+12
| | | | | | This change adds support for building a fuzz target for exercising the packfile parser, as well as documentation. It also runs the fuzzers in Travis to avoid regressions.
* ci: dissociate test from leaks processEdward Thomson2018-07-261-2/+1
| | | | | | The leaks process is not good about handling children. Ensure that its child is `nohup`ed so that the grandparent shell won't wait for it to exit.
* ci: some additional debuggingEdward Thomson2018-07-261-0/+8
|
* ci: xcode leaks leak-checkingEdward Thomson2018-07-261-0/+4
|
* ci: valgrind leak-checkingEdward Thomson2018-07-261-7/+26
|
* ci: improved flexibility for citest.shEdward Thomson2018-07-261-67/+125
| | | | Refactor citest.sh to enable local testing by developers.
* ci: refactor unix ci build/test scriptsEdward Thomson2018-07-261-0/+101