AGENT SKILL

ats-build

Basic skills; formatting, compiling, testing, installing.

使用场景测试与质量
License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 2.0k
Forks
893

01 前言 Front Matter

name
ats-build
description
Basic skills; formatting, compiling, testing, installing.

02 资源文件 1

03 SKILL.md 正文

Build Process

  1. Which cmake --list-presets?
  • Need HTTP3? ci-fedora-quiche
  • Not sure? Ask.
  1. No build directory yet? Configure one.
  2. Which target?
  3. Execute.

Reference

Configure Development Build

cmake --preset <name> [-B <build_dir>] -DENABLE_AUTEST=ON

Build Code Target

cmake --build <build_dir> --target <executable_or_library_target>

Run Unit Test

ctest --test-dir <build_dir> [-R <filter>]

Format

cmake --build <build_dir> --target format

Run AuTest

Options correct? Check:

grep "^AUTEST_OPTIONS" <build_dir>/CMakeCache.txt

Correct? Run:

cmake --build <build_dir> --target autest

Example: Configure Build for Specific AuTest

cmake -B <build_dir> -DAUTEST_OPTIONS="-f <autest_name>"

Install

Install location OK? Check:

grep "^CMAKE_INSTALL_PREFIX" <build_dir>/CMakeCache.txt

Correct? Run:

cmake --install <build_dir>

Key CMake Options

  • BUILD_EXPERIMENTAL_PLUGINS=ON - Enable experimental plugins
  • ENABLE_QUICHE=ON - QUIC/HTTP3 support
  • ENABLE_CRIPTS=ON - Cripts scripting API
  • BUILD_REGRESSION_TESTING=ON - Enable test suite
  • ENABLE_ASAN=ON - Configure ASan instrumentation

04 同仓库更多 Skills