来源信息
- 仓库
- apache/trafficserver
- 最近来源活动
- 2026年7月30日 21:04
- 检测到的 SKILL.md 语言
- 无法判定
- 星标
- 1,994
- Forks
- 889
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- ats-build
- description
- Basic skills; formatting, compiling, testing, installing.
## Build Process
1. Which `cmake --list-presets`?
* Need HTTP3? `ci-fedora-quiche`
* Not sure? Ask.
2. No build directory yet? Configure one.
3. Which target?
4. Execute.
## Reference
### Configure Development Build
```bash
cmake --preset <name> [-B <build_dir>] -DENABLE_AUTEST=ON
```
### Build Code Target
```bash
cmake --build <build_dir> --target <executable_or_library_target>
```
### Run Unit Test
```bash
ctest --test-dir <build_dir> [-R <filter>]
```
### Format
```bash
cmake --build <build_dir> --target format
```
### Run AuTest
Options correct? Check:
```bash
grep "^AUTEST_OPTIONS" <build_dir>/CMakeCache.txt
```
Correct? Run:
```bash
cmake --build <build_dir> --target autest
```
#### Example: Configure Build for Specific AuTest
```bash
cmake -B <build_dir> -DAUTEST_OPTIONS="-f <autest_name>"
```
### Install
Install location OK? Check:
```bash
grep "^CMAKE_INSTALL_PREFIX" <build_dir>/CMakeCache.txt
```
Correct? Run:
```bash
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
在 GitHub 查看