3 # Test that it works to build from a source archive exported by "git archive"
4 # outside a Git repository.
8 # Ninja builds with relative paths so that ccache can be used to cache the build
9 # without resorting to setting base_dir.
10 export CMAKE_GENERATOR=Ninja
13 trap "rm -rf $tmp_dir" EXIT
15 git archive --prefix=ccache/ -o $tmp_dir/ccache.tar.gz HEAD
23 jobs=$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
24 ctest --output-on-failure -j $jobs