{"id":43523118,"url":"https://github.com/mabrarov/yatest","last_synced_at":"2026-02-03T14:35:47.765Z","repository":{"id":55917575,"uuid":"76066609","full_name":"mabrarov/yatest","owner":"mabrarov","description":"Test for C++","archived":false,"fork":false,"pushed_at":"2025-05-08T22:29:47.000Z","size":1108,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T23:25:02.487Z","etag":null,"topics":["cpp","test"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabrarov.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,"zenodo":null}},"created_at":"2016-12-09T20:08:29.000Z","updated_at":"2025-03-09T22:14:25.000Z","dependencies_parsed_at":"2025-03-09T23:19:24.501Z","dependency_job_id":"a572550a-f1fa-48a7-a6e9-b08a7fab1e60","html_url":"https://github.com/mabrarov/yatest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mabrarov/yatest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fyatest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fyatest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fyatest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fyatest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabrarov","download_url":"https://codeload.github.com/mabrarov/yatest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fyatest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","test"],"created_at":"2026-02-03T14:35:43.665Z","updated_at":"2026-02-03T14:35:47.730Z","avatar_url":"https://github.com/mabrarov.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Test\n\n[![License](https://img.shields.io/github/license/mabrarov/yatest)](https://github.com/mabrarov/yatest/tree/master/LICENSE)\n[![Travis CI build status](https://travis-ci.com/mabrarov/yatest.svg?branch=master)](https://travis-ci.com/mabrarov/yatest)\n[![AppVeyor CI build status](https://ci.appveyor.com/api/projects/status/u5b0i7897pmucqi0/branch/master?svg=true)](https://ci.appveyor.com/project/mabrarov/yatest/branch/master)\n[![Code coverage status](https://codecov.io/gh/mabrarov/yatest/branch/master/graph/badge.svg)](https://codecov.io/gh/mabrarov/yatest/branch/master)\n\nC++ tests.\n\n## Building\n\n### Requirements\n\n1. C++ toolchain\n   * Microsoft Visual Studio 2015-2019\n   * MinGW 7+\n   * GCC 6+\n   * Clang 6+\n1. [CMake](https://cmake.org/) 3.2+\n\n### Assumptions\n\n1. `yatest_home` environment variable is path to local copy of this repository\n1. `build_dir` environment variable specifies build directory, \n   it may be different than `yatest_home` for \"out of source tree\" build, \n   it may be `build` subdirectory of `yatest_home`\n1. `build_type` environment variable specifies [CMake build type](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)\n   * `Debug`\n   * `Release`\n   * `RelWithDebInfo`\n   * `MinSizeRel`\n1. `cmake_generator` environment variable is [CMake generator](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html)\n   * `Visual Studio 14 2015` - Visual Studio 2015\n   * `Visual Studio 15 2017` - Visual Studio 2017\n   * `Visual Studio 16 2019` - Visual Studio 2019\n   * `NMake Makefiles` - NMake makefiles\n   * `MinGW Makefiles` - MinGW makefiles\n   * `Unix Makefiles` - Unix / Linux makefiles\n1. `cmake_platform` environment variable is [CMAKE_GENERATOR_PLATFORM](https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_PLATFORM.html)\n   * `Win32` - x86 platform when using Visual Studio\n   * `x64` - amd64 (x64) platform when using Visual Studio\n1. Unix / Linux commands use Bash\n1. Windows commands use Windows Command Prompt\n\n## Steps\n\n1. Generate project for build system from CMake project, assuming current directory is `build_dir`\n\n   * Unix / Linux\n\n     ```bash\n     cmake -D CMAKE_BUILD_TYPE=\"${build_type}\" -G \"${cmake_generator}\" \"${yatest_home}\"\n     ```\n\n   * Windows, Visual Studio CMake generator, shared C/C++ runtime\n\n     ```cmd\n     cmake -G \"%cmake_generator%\" -A \"%cmake_platform%\" \"%yatest_home%\"\n     ```\n\n   * Windows, Visual Studio CMake generator, static C/C++ runtime\n\n     ```cmd\n     cmake ^\n     -D CMAKE_USER_MAKE_RULES_OVERRIDE=\"%yatest_home%\\cmake\\static_c_runtime_overrides.cmake\" ^\n     -D CMAKE_USER_MAKE_RULES_OVERRIDE_CXX=\"%yatest_home%\\cmake\\static_cxx_runtime_overrides.cmake\" ^\n     -G \"%cmake_generator%\" -A \"%cmake_platform%\" \"%yatest_home%\"\n     ```\n\n   * Windows, NMake / MinGW makefiles CMake generator, static C/C++ runtime\n\n     ```cmd\n     cmake ^\n     -D CMAKE_USER_MAKE_RULES_OVERRIDE=\"%yatest_home%\\cmake\\static_c_runtime_overrides.cmake\" ^\n     -D CMAKE_USER_MAKE_RULES_OVERRIDE_CXX=\"%yatest_home%\\cmake\\static_cxx_runtime_overrides.cmake\" ^\n     -D CMAKE_BUILD_TYPE=\"%build_type%\" ^\n     -G \"%cmake_generator%\" \"%yatest_home%\"\n     ```\n\n1. Build generated project with build system chosen at previous step via CMake generator\n\n   * Unix / Linux\n\n     ```bash\n     cmake --build \"${build_dir}\" --config \"${build_type}\"\n     ```\n\n   * Windows\n\n     ```cmd\n     cmake --build \"%build_dir%\" --config \"%build_type%\"\n     ```\n\n1. Run tests, assuming current directory is `build_dir`\n\n   * Unix / Linux\n\n     ```bash\n     ctest --build-config \"${build_type}\" --verbose\n     ```\n\n   * Windows\n\n     ```cmd\n     ctest --build-config \"%build_type%\" --verbose\n     ```\n\n## Usage\n\nRefer to\n\n1. [src/brackets/README.md](src/brackets/README.md)\n1. [src/top/README.md](src/top/README.md)\n1. [src/rle/README.md](src/rle/README.md)\n1. [src/stone_jewellery/README.md](src/stone_jewellery/README.md)\n1. [src/anagram/README.md](src/anagram/README.md)\n1. [src/brackets_gen/README.md](src/brackets_gen/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabrarov%2Fyatest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabrarov%2Fyatest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabrarov%2Fyatest/lists"}