Skip to content

essentialkaos/bop

GitHub Actions CI Status GoReportCard Codebeat badge GitHub Actions CodeQL Status

InstallationCommand-line completionMan documentationUsageBuild StatusContributingLicense


bop is a utility for generating bibop tests for RPM packages.

Installation

From source

To build the bop from scratch, make sure you have a working Go 1.18+ workspace (instructions), then:

go install github.com/essentialkaos/bop@latest

Prebuilt binaries

You can download prebuilt binaries for Linux from EK Apps Repository:

bash <(curl -fsSL https://apps.kaos.st/get) bop

Container image

Official bop images available on GitHub Container Registry and Docker Hub. Install the latest version of Podman or Docker, then:

curl -#L -o bop-container https://kaos.sh/bop/bop-container
chmod +x bop-container
sudo mv bop-container /usr/bin/bop
bop test-name package.rpm

Command-line completion

You can generate completion for bash, zsh or fish shell.

Bash:

sudo bop --completion=bash 1> /etc/bash_completion.d/bop

ZSH:

sudo bop --completion=zsh 1> /usr/share/zsh/site-functions/bop

Fish:

sudo bop --completion=fish 1> /usr/share/fish/vendor_completions.d/bop.fish

Man documentation

You can generate man page using next command:

bop --generate-man | sudo gzip > /usr/share/man/man1/bop.1.gz

Usage

Usage: bop {options} name package…

Options

  --output, -o file        Output file
  --service, -s service    List of services for checking (mergeable)
  --no-color, -nc          Disable colors in output
  --help, -h               Show this help message
  --version, -v            Show version

Examples

  bop htop htop*.rpm
  Generate simple tests for package

  bop redis redis*.rpm -s redis
  Generate tests with service check

  bop -o zl.recipe zlib zlib*.rpm minizip*.rpm
  Generate tests with custom name

Build Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0