diff options
Diffstat (limited to 'download-gtest.sh')
-rwxr-xr-x | download-gtest.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/download-gtest.sh b/download-gtest.sh new file mode 100755 index 0000000..4ce795e --- /dev/null +++ b/download-gtest.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +if ! test -e gtest ; then + mkdir gtest +fi +( + cd gtest + if ! test -e gtest ; then + gtest_ver=1.8.1 + wget -O "googletest-release-$gtest_ver.tar.gz" https://github.com/google/googletest/archive/release-$gtest_ver.tar.gz + tar -xvf "googletest-release-$gtest_ver.tar.gz" + mv googletest-release-$gtest_ver gtest + fi +) |