{"id":15712575,"url":"https://github.com/supercuber/roottest","last_synced_at":"2025-03-30T18:27:33.501Z","repository":{"id":90034801,"uuid":"322717485","full_name":"SuperCuber/roottest","owner":"SuperCuber","description":"Unit testing inside a chroot","archived":false,"fork":false,"pushed_at":"2021-01-16T16:35:01.000Z","size":90,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T20:57:34.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperCuber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-18T22:23:21.000Z","updated_at":"2021-01-16T16:35:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f4f4faa-90dd-4e3d-acae-7c8a48cf6213","html_url":"https://github.com/SuperCuber/roottest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperCuber%2Froottest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperCuber%2Froottest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperCuber%2Froottest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperCuber%2Froottest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperCuber","download_url":"https://codeload.github.com/SuperCuber/roottest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246360823,"owners_count":20764806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T21:16:52.512Z","updated_at":"2025-03-30T18:27:33.472Z","avatar_url":"https://github.com/SuperCuber.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"This readme optimistically describes functionality that does not yet exist. Check code, issues, and releases for actually implemented behavior.\n\n---\nRoottest is a tool for unit-testing a program that accesses the filesystem using a fakechroot.\n\n## Test structure\nEach unit test is represented as a folder, containing those files:\n- `Roottest.toml`\\\n  Contains the parameters for running the program inside the chroot.\n- `root_before/`\\\n  This folder will be copied over, then Roottest will chroot into it and run the command specified in `Roottest.toml` inside the chroot.\n- `root_after/`\\\n  After running the command, the contents of the potentially modified chroot will be compared to this directory\n- `input.stdin`\\\n  The contents of this file will be fed into the program's stdin\n- `expected.stderr, expected.stdout`\\\n  The output of the program will be compared against the contents of these files\n- `environment.toml`\\\n  Contains the environment variables that the program will have.\n\nRoottest will take each argument as the path to such a folder, and run the test in the folder according to the description above.\n\n## Using with a build system\n### Cargo\nSee `cargo-roottest`\n\n### Make \u0026 similar\n- Make sure your \"test\" target depends on your executable so that it gets recompiled whenever you want to test.\n- Have a symbolic link in each `root` folder pointing to your executable so that it it accessible from within the chroot.\n- Run your program using `/program` in Roottest.toml\n\n## Dependencies\nRoottest is only supported on Linux, and depends on the `fakechroot` and `rsync` programs. Check your distribution for installation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercuber%2Froottest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupercuber%2Froottest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercuber%2Froottest/lists"}