Files
2026-01-06 21:53:04 +00:00
..
2026-01-06 21:38:08 +00:00
2026-01-06 10:46:46 +00:00
2026-01-01 18:52:25 +00:00
2026-01-06 03:00:40 +00:00
2026-01-05 22:21:58 +00:00
2025-12-23 13:07:22 +00:00
2025-12-21 04:30:26 +00:00
2025-12-21 03:02:17 +00:00
2025-12-27 05:51:40 +00:00
2025-12-21 02:57:49 +00:00
2025-12-24 15:54:34 +00:00
2025-12-26 19:09:48 +00:00
2025-12-21 02:47:50 +00:00
2026-01-03 23:38:39 +00:00
2026-01-02 19:51:28 +00:00
2025-12-24 15:53:45 +00:00
2025-12-15 20:07:14 +00:00

Package Tests

These are simple bash shell scripts that test package binaries, manpages, etc. to make sure they are working correctly and do not generate errors. A test filename has the same name as the package without any extension, should be executable and have at least one line to validate the test(s). It should be placed in a subdirectory with the first letter of the package name. The subdirectory is necessary due to the sheer volume of packages and helps to organize files for manageability. This is similar to the directory structure of the manifest filelists. Keep in mind package tests will fail if the package is not installed.

Running Tests

$ crew check <name> [<name2> <name3> ...]

where <name> is the crew package. If the package test exists, it will run last in the check sequence.

Examples

coreutils:

#!/bin/bash
for b in $(crew files coreutils | grep /usr/local/bin); do $b --version; done

This test is in the c directory.

github_cli:

#!/bin/bash
man gh | cat
gh --version

This test is in the g directory.