]>
Commit | Line | Data |
---|---|---|
52b6634f IN |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | main() { | |
fe3d086f | 6 | # Autoconf based in-source build and tests |
a672b071 | 7 | clean |
52b6634f | 8 | |
a672b071 IN |
9 | ./bootstrap |
10 | ./configure | |
52b6634f IN |
11 | make test-all |
12 | ||
fe3d086f | 13 | # CMake based in-source build and tests |
52b6634f IN |
14 | clean |
15 | ||
16 | cmake . | |
52b6634f IN |
17 | make |
18 | make test | |
52b6634f | 19 | |
52b6634f | 20 | clean |
52b6634f IN |
21 | } |
22 | ||
23 | clean() { | |
24 | git clean -d -x -f | |
e4aee06f IN |
25 | rm -fr tests/run-test-suite |
26 | git worktree prune | |
52b6634f IN |
27 | } |
28 | ||
29 | main "$@" |