summaryrefslogtreecommitdiff
path: root/test/end-to-end/just-mr
AgeCommit message (Collapse)Author
8 daystest data: generate all needed directoriesKlaus Aehlig
As there is no guarantee that "out_dirs" are generated on action set up, do so manually (being OK with the files already being present).
2025-06-02end-to-end just-mr/absent-closure: Fix typoPaul Cristian Sarbu
2025-06-02just-mr: Warn for non-content-fixed repo reached from absent mainPaul Cristian Sarbu
If the main repository is marked absent, warn if during the dependency closure computation any non-content-fixed repositories are reached, i.e., any "file"-type repositories that are neither implicitly nor explicitly marked "to_git". Also warn if the main repository itself is marked absent but is not content fixed. Add small test checking that the new warning is produced.
2025-04-23Make end-to-end tests independent of the user's configurationKlaus Aehlig
End-to-end tests should, like all tests, be independent of any non-project files the user has in their home directory. This also applies when running the tests locally. In particular, end-to-end tests should not read the user's ~/.just-mrrc. Therefore, properly set --norc in all end-to-end tests (where this is not already the case).
2025-03-17Add end-to-end test demonstrating the use of serve to analyse data in CASKlaus Aehlig
2025-03-10Add basic test for profiling informationKlaus Aehlig
2025-03-10Add basic end-to-end test verifying invocation loggingKlaus Aehlig
2025-03-05end-to-end/just-mr: Add test to check special entries are correctly ignoredPaul Cristian Sarbu
...during setup of git roots, when the appropriate pragma is set. Check both symlinks and other special entries, e.g., submodules.
2025-02-11Extend git-tree-env test to also verify "extra inherit env"Klaus Aehlig
... from the local file.
2025-02-11Extend git-environment test to verify "extra inherit env"Klaus Aehlig
... from the local file.
2025-02-05Add basic end-to-end test for just-mr gc --drop-onlyKlaus Aehlig
2025-01-30Add an end-to-end test for repeated repository garbage collectionKlaus Aehlig
As only a recent commit made it possible to rotate the repository cache more than once, add a test ensuring two properties. - Repeated repository gc is possible and roots are taken from the rotated generation. - It is possible to fully rotate a root out.
2024-12-02Increase parallelism in just_mr_mpMaksim Denisov
2024-11-14tests: Implement IWYU suggestionsMaksim Denisov
2024-10-25Enable compatible mode for just-mr and SourceTree serve service...Paul Cristian Sarbu
...by using the new local api that can handle any remote endpoint, irrespective of protocol. Also ensure all tests for the serve service are now being run both in native and compatible modes.
2024-09-23Reorder dependencies and remove duplicates in OSSMaksim Denisov
2024-08-29test just-mr: Add symlink cycle detection checks for repository rootsv1.4.0-alpha+20240829Paul Cristian Sarbu
2024-08-23test gc-repo: forward PATH in launcherKlaus Aehlig
... so that we can run with whatever ambient path is present rather than relying on standard paths pulled in by env.
2024-08-21tests: use newly defined test suiteKlaus Aehlig
... so that linting information gets propagated properly.
2024-07-24Extend gc-repo test to also verify that git-tree repositories are taken from ↵Klaus Aehlig
older generations
2024-07-23Extend gc-repo test to also verify foreign files are taken from old generationsKlaus Aehlig
2024-07-19Extend gc-repo test to also verify archives are taken from old generationKlaus Aehlig
2024-07-19Add test verifying that git repos of the old generation are usedKlaus Aehlig
2024-06-03test: Use own installed just and just-mr targets...Paul Cristian Sarbu
...which do not stage also the debug source and header files (while in debug mode), as this is unnecessary bloat in the tests. As the tool-under-test and mr-tool-under-test targets should be used instead of the regular install targets also in the various extra rules in end-to-end and utils, move their definition in the outmost test TARGETS file.
2024-04-25just serve: Paths in config file should be location objectsPaul Cristian Sarbu
Also updates the tests and all relevant documentation accordingly.
2024-04-08test: Add missing includes and fix depsPaul Cristian Sarbu
2024-03-15Clean up more includes and targetsPaul Cristian Sarbu
Some of the more specific issues addressed: - missing log_level target/include - header-only libs wrongly marking deps as private - missing/misplaced gsl includes
2024-03-08just-mr: Add test for "preferred hostnames"Oliver Reiche
2024-03-08just-mr: Fix "preferred hostnames"Oliver Reiche
... instead of replacing the host name of each mirror, it should only reorder the list of given mirrors.
2024-03-07Add test verifying that just-mr only uses the network if necessaryKlaus Aehlig
2024-03-07Add test verifying reporting levelsKlaus Aehlig
... in particular, verify that no error is reported on successfull command completion.
2024-03-05Add a test for foreign-file rootsKlaus Aehlig
2024-02-20Add test verifying that "inherit env" is honored for git fetchesKlaus Aehlig
2024-02-15absent-archives test: also verify fetching as distfileKlaus Aehlig
2024-02-05end-to-end tests: inherit pathKlaus T. Aehlig
... for test actions, by setting an appropriate local launcher. In this way, the tests can also be run on systems where sh does not pull in enough paths to have all the "usual" tools available.
2024-01-31test absent-roots: Serve-endpoint build root must not be removedPaul Cristian Sarbu
A change made to this test was wrongly setting the same path both as build root for the serve instance and for the just-mr instances being tested, resulting in the build root of the serve instance being inadvertently removed during the test. This commit fixes the issue by giving the serve endpoint its own build root path.
2024-01-22tests: Run mirror tests for fetch and setupOliver Reiche
2024-01-12end-to-end tests: wait longer for test servicesKlaus Aehlig
Certain end-to-end tests require custom services. While normally they come up in quickly (less than 2 seconds), on heavily overloaded machines it might take longer. So increase the amount of time these tests are willing to wait for the binary to start up to avoid flakyness in our CI runs.
2023-12-19test: Extend general just-mr check to test each repository tooPaul Cristian Sarbu
This way we ensure each repository can be set up on its own and nothing gets cached from other repositories, as opposed to the parallel run where some caching is expected to occur.
2023-12-11just-mrrc: support file options for the launcher functionalityKlaus Aehlig
When just-mr acts as a launcher, for most subcommand options the "just args" entry in the rc files provides a convenient way to set them. However, some options take a file as argument; for those it can be desirable to set them without assuming a fixed file-system layout and instead refer to logical roots, in particular the work space. for the ones that refer to files, it is often desirable to have a potential reference to the work space. Add this functionality.
2023-12-07test: Check --fetch-absent option for 'git tree' repositoriesPaul Cristian Sarbu
2023-12-07test: Check 'git tree' fetch from remote execution and --backup-to-remotePaul Cristian Sarbu
2023-11-21test: Verify fetching from just serve of absent distdir archivesPaul Cristian Sarbu
2023-11-21Extend --fetch-absent tests to verify regular fetching from just serveKlaus Aehlig
Whenever a just-serve endpoint is given, fetching archives or Git commits from there is preferrable to fetching them from other sources. Verify in the tests that this actually happens. Co-authored-by: Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com>
2023-11-16test: Check that serve service works in compatible modePaul Cristian Sarbu
Added compatibility envariable to the with_serve rule, guarded tests using --fetch-absent such that they run only in native mode, and made all serve-service tests aware of the compatibility flag.
2023-11-15test ["end-to-end/just-mr", "git-tree-env"]: fix negative test conditionKlaus Aehlig
This test was only working by accident, as the missing target specification ["", "sources.txt"] was making the build fail, not the (supposedly) unset variable. Fix this by looking only at the setup command and expect failure there---and also unset the correct variable.
2023-11-15git tree repository: Creating absent roots should not run the commandPaul Cristian Sarbu
Also extended absent-roots test with this scenario.
2023-11-14test: Set a fixed number of retries for starting Python servers...Paul Cristian Sarbu
...to avoid waiting for the test timeout on an internal error.
2023-11-14test: Fetch from mirrors given in just's specification filePaul Cristian Sarbu
2023-11-14test: Add check for 'mirrors' field in just-mr repositoriesPaul Cristian Sarbu