Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, apt, dnf 安装 atf

查看 atf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install atf

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install atf

MacPorts ports tree · devel/atf/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add atf

Alpine Linux edge package indexes · atf · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#atf

nixpkgs package indexes · pkgs/by-name/at/atf/package.nix · 来源: api.github.com

Debian apt已验证 · 92%
sudo apt install atf-sh

Debian stable package indexes · atf-sh · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install atf-tests

Fedora Rawhide package metadata · atf-tests · 来源: dl.fedoraproject.org

概览

软件包摘要

Automated testing framework

命令和别名

  • atf-sh

历史

项目历史与用法

ATF, the Automated Testing Framework, is a small but historically important Unix testing framework for writing test programs in C, C++, and POSIX shell. Its value is less about being a fashionable standalone test runner and more about providing a consistent test-program API and command-line interface for base-system and ports/package test suites.

项目历史

The official README describes ATF as libraries for C, C++, and POSIX shell, with ATF-based tests relying on an external execution engine rather than shipping one itself. The same README identifies Kyua as the preferred execution engine, which reflects ATF's later role as the test-definition layer inside a larger BSD testing stack.

The NEWS file records a major 2014 transition: version 0.19 moved project hosting from Google Code, where ATF had been a Kyua subproject, to GitHub as a first-class project. That release also separated deprecated tools such as atf-run and atf-report from the maintained libraries, foreshadowing the modern split where Kyua handles execution.

采用历史

ATF is strongly associated with BSD operating-system testing. The README explicitly recommends binary packages for FreeBSD, NetBSD/pkgsrc, OpenBSD, and Ubuntu, and the NEWS file calls out FreeBSD test-suite support in the 0.19 release. That made ATF familiar to package maintainers who care about base-system regression tests, portable shell tests, and tests shipped alongside system components.

Its package-manager footprint is broad for such a specialized tool: the input lists packages in Homebrew, MacPorts, pkgsrc-adjacent systems, Debian/Ubuntu, Fedora, Nix, and Alpine. That packaging spread matters because ATF tests are often consumed by downstream distributions rather than only by application developers.

使用方式

ATF is used to write test cases in C, C++, or shell that expose a consistent interface to humans and automation. In practice, users commonly install ATF alongside Kyua, write tests with atf-c, atf-c++, or atf-sh, and let Kyua discover and run them.

The Homebrew formula exposes at least the atf-sh executable, which is the part many command-line package users encounter first when running or authoring shell-based tests.

为什么软件包爱好者会关心

ATF is package-nerd infrastructure: it is not glamorous, but it sits in the plumbing between source trees, operating-system test suites, and downstream package validation. Its removal of the old runner tools in favor of Kyua is the sort of split that explains why different packages may depend on atf libraries, atf-sh, or Kyua separately.

The long quiet period between the 2014 0.21 release and later 2024/2025 releases is also notable for maintainers: old system-test tooling can remain relevant for a decade when it is embedded in OS and packaging workflows.

时间线

  • 2014: ATF 0.19 moved from Google Code to GitHub and separated deprecated runner/reporting tools.
  • 2014: ATF 0.20 removed the deprecated tools from the maintained release line.
  • 2014: ATF 0.21 restored and refreshed manual-page documentation and improved FreeBSD-current compatibility.
  • 2024: ATF 0.22 refreshed the codebase for modern C++ and build-system compatibility.
  • 2025: ATF 0.23 fixed release tarball generation and other build/test issues.

Related projects

  • Kyua is the preferred execution engine for ATF-based tests.
  • FreeBSD's test suite is a major downstream context for ATF.
  • pkgsrc, OpenBSD ports, Debian/Ubuntu, and other package systems distribute ATF or ATF shell tooling.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
atf-shcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.23
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/freebsd/atf

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/freebsd/atfnone 置信度

安装元数据

软件包元数据

软件包键brew:atf
版本0.23
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/atf
主页https://github.com/freebsd/atf
仓库https://github.com/freebsd/atf
上游文档https://github.com/freebsd/atf#readme
许可证BSD-2-Clause
源码归档https://github.com/freebsd/atf/releases/download/atf-0.23/atf-0.23.tar.gz
构建依赖autoconf, automake, libtool
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameatf
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

atf-sh 0.22-3

Automated Test Framework (shell library)

https://github.com/freebsd/atf

sudo apt install atf-sh
  • Section: libs
  • Architecture: amd64
  • Source Package: atf
  • 5 依赖
  • normalized package name match
  • 匹配方式:Atf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: atf-sh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libatf-c++-2 0.22-3

Automated Test Framework (shared C++ library)

https://github.com/freebsd/atf

sudo apt install libatf-c++-2
  • Section: libs
  • Architecture: amd64
  • Source Package: atf
  • 4 依赖
  • normalized package name match
  • 匹配方式:Atf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libatf-c++-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libatf-c-1 0.22-3

Automated Test Framework (shared C library)

https://github.com/freebsd/atf

sudo apt install libatf-c-1
  • Section: libs
  • Architecture: amd64
  • Source Package: atf
  • 1 依赖
  • normalized package name match
  • 匹配方式:Atf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libatf-c-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libatf-dev 0.22-3

Automated Test Framework (development files)

https://github.com/freebsd/atf

sudo apt install libatf-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: atf
  • 2 依赖
  • normalized package name match
  • 匹配方式:Atf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libatf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

atf

nix profile install nixpkgs#atf
  • normalized package name match
  • 匹配方式:Atf
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/at/atf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

atf-sh 0.21-6build4

Automated Test Framework (shell library)

https://github.com/jmmv/atf

sudo apt install atf-sh
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: atf
  • 5 依赖
  • normalized package name match
  • 匹配方式:Atf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: atf-sh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libatf-c++-2 0.21-6build4

Automated Test Framework (shared C library)

https://github.com/jmmv/atf

sudo apt install libatf-c++-2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: atf
  • 4 依赖
  • normalized package name match
  • 匹配方式:Atf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libatf-c++-2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libatf-c-1 0.21-6build4

Automated Test Framework (shared C++ library)

https://github.com/jmmv/atf

sudo apt install libatf-c-1
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: atf
  • 1 依赖
  • normalized package name match
  • 匹配方式:Atf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libatf-c-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libatf-dev 0.21-6build4

Automated Test Framework (development files)

https://github.com/jmmv/atf

sudo apt install libatf-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: atf
  • 2 依赖
  • normalized package name match
  • 匹配方式:Atf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libatf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

atf 0.23-r0

libraries to write tests in C, C++ and shell

https://github.com/freebsd/atf

sudo apk add atf
  • License: BSD-2-Clause AND BSD-3-Clause
  • Architecture: x86_64
  • Source Package: atf
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Atf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: atf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

atf-dev 0.23-r0

libraries to write tests in C, C++ and shell (development files)

https://github.com/freebsd/atf

sudo apk add atf-dev
  • License: BSD-2-Clause AND BSD-3-Clause
  • Architecture: x86_64
  • Source Package: atf
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Atf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: atf-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

atf-doc 0.23-r0

libraries to write tests in C, C++ and shell (documentation)

https://github.com/freebsd/atf

sudo apk add atf-doc
  • License: BSD-2-Clause AND BSD-3-Clause
  • Architecture: x86_64
  • Source Package: atf
  • normalized package name match
  • 匹配方式:Atf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: atf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

atf-static 0.23-r0

libraries to write tests in C, C++ and shell (static library)

https://github.com/freebsd/atf

sudo apk add atf-static
  • License: BSD-2-Clause AND BSD-3-Clause
  • Architecture: x86_64
  • Source Package: atf
  • normalized package name match
  • 匹配方式:Atf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: atf-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

atf-tests 0.23-4.fc44

Automated Testing Framework - Test suite

https://github.com/freebsd/atf

sudo dnf install atf-tests
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: atf
  • 13 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Atf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: atf-tests from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libatf-c 0.23-4.fc44

Automated Testing Framework - C bindings

https://github.com/freebsd/atf

sudo dnf install libatf-c
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: atf
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Atf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libatf-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libatf-c++ 0.23-4.fc44

Automated Testing Framework - C++ bindings

https://github.com/freebsd/atf

sudo dnf install libatf-c++
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: atf
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Atf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libatf-c++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment