{"id":22849987,"url":"https://github.com/jd297/testsh","last_synced_at":"2025-08-22T09:39:14.573Z","repository":{"id":267059016,"uuid":"900152316","full_name":"JD297/testsh","owner":"JD297","description":"test suite for arbitrary programs","archived":false,"fork":false,"pushed_at":"2024-12-08T14:37:47.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T10:53:17.308Z","etag":null,"topics":["shell-script","testsuite"],"latest_commit_sha":null,"homepage":"https://github.com/JD297/jd297linux","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JD297.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":"2024-12-08T02:03:29.000Z","updated_at":"2024-12-08T14:37:50.000Z","dependencies_parsed_at":"2024-12-08T04:54:52.834Z","dependency_job_id":null,"html_url":"https://github.com/JD297/testsh","commit_stats":null,"previous_names":["jd297/testsh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD297%2Ftestsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD297%2Ftestsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD297%2Ftestsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JD297%2Ftestsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JD297","download_url":"https://codeload.github.com/JD297/testsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246426735,"owners_count":20775439,"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":["shell-script","testsuite"],"created_at":"2024-12-13T05:06:05.034Z","updated_at":"2025-03-31T06:27:37.677Z","avatar_url":"https://github.com/JD297.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testsh\n\ntest suite for arbitrary programs\n\n## Naming\n\nA file in tests/src should be named: test_PHILOSOPHY_TYPE_name_of_the_test.c\n\nA program in tests/bin should just contain the name: test_PHILOSOPHY_TYPE_name_of_the_test\nA expected program (copycat) should be named: expc_test_PHILOSOPHY_TYPE_name_of_the_test\n\n## Type\n\nThe following test types are available:\n\n### assert\n\nRuns the test program and checks for a 0 return code. IO is not redirected, so the program logs are visible. This is intended for self-testing, e.g., with the function \"assert\" that is available in common programming languages.\n\n### return\n\nExecutes the program and checks if the return code is 0; otherwise, the test fails.\n\n### diff\n\nCompares the stdout output of an actual and expected behavior.\n\n## Philosophy\n\nA philosophy is a supertype for a test. The following philosophy types are available:\n\n### Standalone\n\nA standalone test is based on a program. The following types are supported:\n\n* assert\n\n### Copycat\n\nA copycat test is based on a source file from which two programs are created (expected behavior and actual behavior). For example, if the source file is named test_copycat_helloworld.c, the program expc_test_copycat_helloworld is used as the expected behavior, and the program test_copycat_helloworld is used as the actual behavior. As the name suggests, it is well-suited for re-implementing existing tools or libraries. The following types are supported:\n\n* return\n* diff\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd297%2Ftestsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd297%2Ftestsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd297%2Ftestsh/lists"}