File: use-bats-assert

package info (click to toggle)
bats-assert 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 264 kB
  • sloc: sh: 517; makefile: 4
file content (12 lines) | stat: -rwxr-xr-x 191 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -eu

TESTS_DIR=$(mktemp -d)
cp debian/tests/*.bats "$TESTS_DIR"

cd "$TESTS_DIR"
bats "tests.bats"
if bats "tests-negative.bats" ; then
	exit 1 # Negative tests should fail
fi