xref: /freebsd/contrib/libyaml/tests/run-all-tests.sh (revision 24e4dcf4ba5e9dedcf89efd358ea3e1fe5867020)
1#!/bin/sh
2
3set -e
4
5main() {
6  # Autoconf based in-source build and tests
7  clean
8
9  ./bootstrap
10  ./configure
11  make test-all
12
13  # CMake based in-source build and tests
14  clean
15
16  cmake .
17  make
18  make test
19
20  clean
21}
22
23clean() {
24  git clean -d -x -f
25  rm -fr tests/run-test-suite
26  git worktree prune
27}
28
29main "$@"
30