about summary refs log tree commit diff homepage
path: root/scripts/build/p-gtest.inc
blob: d4a2d498d5370b88cfa70eb418ace6b149739e76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
setup_build_variables_gtest() {
  GTEST_INSTALL_PATH="${BASE}/googletest-release-${GTEST_VERSION}"
  return 0
}

download_gtest() {
  cd "${BASE}" || exit 1
  wget "https://github.com/google/googletest/archive/release-${GTEST_VERSION}.zip"
  unzip -o "release-${GTEST_VERSION}.zip"
  rm "release-${GTEST_VERSION}.zip"
  touch "${GTEST_INSTALL_PATH}"/.is_installed
}

build_gtest() {
  return 0
}

install_gtest() {
  return 0
}

is_installed_gtest() {
  (
    setup_build_variables_gtest
    [[ -f "${GTEST_INSTALL_PATH}"/.is_installed ]]
  )
}

get_build_artifacts_gtest() {
  (
    setup_build_variables_gtest
    echo "${GTEST_INSTALL_PATH}"
  )
}

setup_artifact_variables_gtest() {
  setup_build_variables_gtest
}

get_docker_config_id_gtest() {
  (
    setup_build_variables_gtest
    echo "${GTEST_VERSION}"
  )
}