Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix 安装 bash_unit

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bash_unit

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install bash-unit

Debian stable package indexes · bash-unit · 来源: deb.debian.org

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

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

概览

软件包摘要

Bash unit testing enterprise edition framework for professionals

命令和别名

  • bash_unit

历史

项目历史与用法

bash_unit is a Bash unit-testing framework. It is intentionally small: an installable shell test runner for projects that want assertions and test discovery without leaving Bash.

项目历史

The official executable identifies itself as a Bash unit testing framework and carries Pascal Grange copyright years 2011-2016. Its source points to the official `bash-unit/bash_unit` repository and currently declares version v2.3.3.

The repository tag list starts at v0.0.1 and progresses through v1.x and v2.x releases, showing a long-maintained single-purpose shell testing tool rather than a recent wrapper around a larger framework.

采用历史

bash_unit adoption is concentrated among shell-script projects that want tests but do not need Bats or a cross-language test framework. The batch input shows Homebrew, Debian, and Nix packages, which is enough distribution coverage to make it a repeatable dependency in developer workstations and CI images.

使用方式

Users write Bash test functions and run them with the `bash_unit` executable. The tool provides assertions, colored reporting, failure output, and a small runtime that remains close to plain shell code.

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

bash_unit matters mostly as part of the Bash testing ecosystem. Package nerds care because shell code is everywhere, but many shell projects historically had little test structure; a small packaged runner lowers the friction without introducing a language runtime beyond Bash itself.

It also sits in the interesting overlap between package infrastructure and package contents: many packages are built by shell scripts, and tools like bash_unit help test that glue code.

时间线

  • 2011: Copyright header begins for bash_unit's main executable.
  • 2010s: Tag series begins at v0.0.1 and reaches v1.x.
  • 2020s: v2.x release series continues through v2.3.3.
  • 2020s: Homebrew, Debian, and Nix package the runner.

Related projects

  • Related Bash and shell test tools include Bats, shunit2, ShellSpec, ShellCheck, and shfmt. bash_unit occupies the minimal unit-test-runner lane among those tools.

来源

  • Official `bash_unit` executable identifies the framework, copyright years 2011-2016, repository URL, and version v2.3.3.
  • Official tags list shows v0.0.1 through v2.3.3 release tags.
  • input.source_facts.package-manager lists Homebrew, Debian, and Nix packaging.

安全态势

风险级别:绿色

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 元数据适用于 1 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本2.3.3
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v2.3.3

https://github.com/bash-unit/bash_unit

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:bash_unit
版本2.3.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bash_unit
主页https://github.com/bash-unit/bash_unit
仓库https://github.com/bash-unit/bash_unit
上游文档https://github.com/bash-unit/bash_unit#readme
许可证GPL-3.0-only
源码归档https://github.com/bash-unit/bash_unit/archive/refs/tags/v2.3.3.tar.gz
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

bash-unit 2.3.2-1

bash_unit - bash unit testing

https://github.com/pgrange/bash_unit

sudo apt install bash-unit
  • Section: devel
  • Architecture: all
  • normalized package name match
  • 匹配方式:Bash Unit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bash-unit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bash_unit

nix profile install nixpkgs#bash_unit
  • normalized package name match
  • 匹配方式:Bash Unit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ba/bash_unit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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