{"id":15401741,"url":"https://github.com/dylanmckay/avr-compiler-integration-tests","last_synced_at":"2026-01-18T11:48:47.025Z","repository":{"id":62438435,"uuid":"96429439","full_name":"dylanmckay/avr-compiler-integration-tests","owner":"dylanmckay","description":"AVR compiler test suite","archived":false,"fork":false,"pushed_at":"2021-02-01T08:06:35.000Z","size":156,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T09:03:36.175Z","etag":null,"topics":["avr","microcontrollers","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanmckay.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}},"created_at":"2017-07-06T12:47:49.000Z","updated_at":"2021-01-28T11:37:47.000Z","dependencies_parsed_at":"2022-11-01T21:47:16.197Z","dependency_job_id":null,"html_url":"https://github.com/dylanmckay/avr-compiler-integration-tests","commit_stats":null,"previous_names":["dylanmckay/avr-test-suite"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanmckay%2Favr-compiler-integration-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanmckay%2Favr-compiler-integration-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanmckay%2Favr-compiler-integration-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanmckay%2Favr-compiler-integration-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanmckay","download_url":"https://codeload.github.com/dylanmckay/avr-compiler-integration-tests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970317,"owners_count":20862509,"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":["avr","microcontrollers","testing-tools"],"created_at":"2024-10-01T15:59:10.603Z","updated_at":"2026-01-18T11:48:47.003Z","avatar_url":"https://github.com/dylanmckay.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# avr-test-suite\n\n[![Crates.io](https://img.shields.io/crates/v/avr-test-suite.svg)](https://crates.io/crates/avr-test-suite)\n[![Build Status](https://travis-ci.org/dylanmckay/avr-test-suite.svg?branch=master)](https://travis-ci.org/dylanmckay/avr-test-suite)\n[![license](https://img.shields.io/github/license/dylanmckay/avr-test-suite.svg)]()\n\nA standalone test-suite for AVR compilers.\n\nUses [simavr](https://github.com/buserror/simavr) under the hood.\n\n# Usage\n\n```bash\ngit clone https://github.com/dylanmckay/avr-test-suite.git\ncd avr-test-suite\n\n# Run all tests\n./run-tests.sh\n```\n\n# Binaries\n\nThere are two binaries included in this crate.\n\n## `avr-lit`\n\nThe test runner.\n\nUsage\n\n```bash\ncd avr-test-suite\n\n# Run all tests with avr-gcc\ncargo run --bin avr-lit -- --avr-gcc\n\n# Run specific test with avr-gcc\ncargo run --bin avr-lit -- --avr-gcc tests/memory/copy-immediate-to-sram/copy_u32.cpp\n\n# Run all tests with llvm\ncargo run --bin avr-lit -- --llvm-sysroot /path/to/llvm/buildtree\n\n# Run specific test with avr-gcc\ncargo run --bin avr-lit -- --llvm-sysroot /path/to/llvm/buildtree tests/memory/copy-immediate-to-sram/copy_string.cpp\n```\n\n## `avr-sim`\n\nAn avr simulator that will flash binaries given to it onto an emulated\nAVR and execute the program until it goes into indefinite sleep mode with\ninterrupts disabled.\n\nIt will also connect the simulated UART to standard output, which can\nthen be used by tests or other stuff.\n\nUsage\n\n```bash\ncd avr-test-suite\n\n# Run a program by loading it via disk\ncargo run --bin avr-sim MyExecutable.elf\n\n# Compile a file and pipe it directly into the simulator to run.\necho 'int main() { return 0; }' \u003e main.c\navr-gcc main.c -mmcu=atmega328 -o /dev/stdout | cargo run --bin avr-sim MyExecutable\n```\n\n# Test format\n\nUses the [lit](https://crates.io/crates/lit) crate.\n\n# Coverage\n\n  * Basic copying of immediate integer values to SRAM\n  * Memory copying from one chunk of RAM to another chunk\n\n# Tests yet to be implemented\n\n  * Calling convention tests\n  * Interrupt handler tests\n  * ... many more\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanmckay%2Favr-compiler-integration-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanmckay%2Favr-compiler-integration-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanmckay%2Favr-compiler-integration-tests/lists"}