summaryrefslogtreecommitdiffstats
path: root/download-gtest.sh
blob: 4ce795e6d9875e62b2d6a279c540b59ad3334a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
)