{"id":29104545,"url":"https://github.com/opencoff/go-testrunner","last_synced_at":"2025-06-29T00:05:50.862Z","repository":{"id":272647447,"uuid":"917305206","full_name":"opencoff/go-testrunner","owner":"opencoff","description":"Script driven test runner for filesys related projects","archived":false,"fork":false,"pushed_at":"2025-04-01T03:04:31.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T04:22:04.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-15T18:27:52.000Z","updated_at":"2025-04-01T03:04:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0c39a7b-ab34-47a5-a0b3-1bb63456fa26","html_url":"https://github.com/opencoff/go-testrunner","commit_stats":null,"previous_names":["opencoff/go-testrunner"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/opencoff/go-testrunner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-testrunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-testrunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-testrunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-testrunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoff","download_url":"https://codeload.github.com/opencoff/go-testrunner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fgo-testrunner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262514196,"owners_count":23322697,"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":"2025-06-29T00:05:49.730Z","updated_at":"2025-06-29T00:05:50.845Z","avatar_url":"https://github.com/opencoff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/opencoff/go-testrunner?status.svg)](https://godoc.org/github.com/opencoff/go-testrunner)\n[![Go Report Card](https://goreportcard.com/badge/github.com/opencoff/go-testrunner)](https://goreportcard.com/report/github.com/opencoff/go-testrunner)\n\n# go-testrunner - Test harness for script driven tests\n\n## What is it?\nA library to simplify writing golang tests that act on files and directories.\nThis library was written to help simplify testing for\n[go-fio](https://github.com/opencoff/go-fio)'s `cmp` module. Many of the commands are specifically \nfor the `go-fio` module.\n\n## How do I use it?\nThis library implements common script commands:\n\n* mkfile: Make a file or dir in the test dir; usage:\n\n    mkfile [options] name [name...]\n\n  The optional arguments are:\n\n    -m X | --min-file-size X    Make files at least as big X\n    -M Y | --max-file-size Y    Make files no bigger than Y\n    -d | --dir                  Make directories instead of files\n    -t WhERE | --target WhERE   Make dirs in 'lhs', 'rhs' or 'both\n\n* touch: Sync the timestamps of all dirs and files to be the same.\n  The time of start of test is used as the singular reference\n  timestamp.\n\n* mutate: modify one or more files\n\n    mutate name [name ...]\n\n* symlink: make one or more symlinks in lhs or rhs or both\n\n    symlink lhs=\"newname@oldname new2@old2\" rhs=\"newname@oldname\"\n\n  Where `lhs=` and `rhs=` denote the target where this is made\n\n\n## How can I extend it?\nTake a look at [go-fio/cmp](https://github.com/opencoff/go-fio/cmp); this module extends\nthe commands by adding the `expect` command:\n\n* Implements the `testrunnner.Cmd` interface\n* Register the command with testrunner by calling `testrunner.RegisterCommand()` from a\n  `init()` function.\n\n## Implementation Notes\n\n\n## License\nGPL v2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-testrunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoff%2Fgo-testrunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fgo-testrunner/lists"}