zaye/deps/libyaml/tests/run-all-tests.sh
torque 11e8fad44e
git subrepo clone --branch=0.2.5 https://github.com/yaml/libyaml.git deps/libyaml
subrepo:
  subdir:   "deps/libyaml"
  merged:   "2c891fc"
upstream:
  origin:   "https://github.com/yaml/libyaml.git"
  branch:   "0.2.5"
  commit:   "2c891fc"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
2024-03-07 22:19:16 -08:00

30 lines
314 B
Bash
Executable File

#!/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 "$@"