summaryrefslogtreecommitdiff
path: root/tests/run-all-tests.sh
blob: 9c92741eca3822f545332907d943a518363240bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e

main() {
  # Autoconf based in-source build and tests
  clean

  ./bootstrap
  ./configure
  make test-all

  # CMake based in-source build and tests
  clean

  cmake .
  make
  make test

  clean
}

clean() {
  git clean -d -x -f
  rm -fr tests/run-test-suite
  git worktree prune
}

main "$@"