# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       github 1.0

github.setup    bats-core bats-core 1.4.1 v
revision        0
categories      sysutils
platforms       any
supported_archs noarch
license         MIT
maintainers     nomaintainer
description     Bash Automated Testing System
long_description \
    Bats is a TAP-compliant testing framework for Bash. It provides a simple way to \
    verify that the UNIX programs you write behave as expected.

github.tarball_from archive

checksums       rmd160  86429672c062f4736d49adaaf7302e31ab853f59 \
                sha256  bff517da043ae24440ec8272039f396c2a7907076ac67693c0f18d4a17c08f7d \
                size    98964

patchfiles      patch-test-bats.diff \
                patch-test-parallel.diff

depends_run     port:bash

use_configure   no
build           {}

# test from bats-core github action
# depends_test            port:parallel
test.cmd                ./bin/bats --formatter tap
test.env                TERM=linux BATS_NO_PARALLELIZE_ACROSS_FILES=1 BATS_NUMBER_OF_PARALLEL_JOBS=2
test.run                yes
destroot.cmd            ./install.sh
destroot.args           ${destroot}${prefix}
destroot.target-delete  install
