Test

September 14, 2024 ยท View on GitHub

Add test cases

../test/bin/one.bats

Run test

git submodule update --init --recursive to install dependencies.

make test to test.

Run test with act

Install act in local host.

make act-mac to test in mac host. make act-linux to test in linux host.

Run test with docker

./tools/test-in-docker  # defaults to BASHVER=4.4
BASHVER=5.0 ./tools/test-in-docker

Run in docker

./tools/run-in-docker  # defaults to BASHVER=4.4
BASHVER=5.0 ./tools/run-in-docker

Contents

  1. 1Add test cases
  2. 2Run test
  3. 3Run test with act
  4. 4Run test with docker
  5. 5Run in docker