xref: /freebsd/contrib/libyaml/tests/run-all-tests.sh (revision 656f7f43f204ad1e6956f8257f66b50e032a6c61)
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