Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: ports/gtest/build.sh

Issue 1563353002: Remove use of --no-preserve=mode argument to 'cp' (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 CTEST_EXECUTABLES=" 5 CTEST_EXECUTABLES="
6 gtest_break_on_failure_unittest_ 6 gtest_break_on_failure_unittest_
7 gtest_catch_exceptions_ex_test_ 7 gtest_catch_exceptions_ex_test_
8 gtest_catch_exceptions_no_ex_test_ 8 gtest_catch_exceptions_no_ex_test_
9 gtest_color_test_ 9 gtest_color_test_
10 gtest_env_var_test_ 10 gtest_env_var_test_
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 BuildStep() { 73 BuildStep() {
74 return 74 return
75 } 75 }
76 76
77 InstallStep() { 77 InstallStep() {
78 local srcdir=${DESTDIR}/${PREFIX}/src 78 local srcdir=${DESTDIR}/${PREFIX}/src
79 MakeDir ${srcdir}/gtest/include 79 MakeDir ${srcdir}/gtest/include
80 80
81 LogExecute cp -r --no-preserve=mode ${SRC_DIR}/include/gtest \ 81 LogExecute cp -r ${SRC_DIR}/include/gtest ${srcdir}/gtest/include/gtest
82 ${srcdir}/gtest/include/gtest 82 LogExecute cp -r ${SRC_DIR}/src ${srcdir}/gtest
83
84 LogExecute cp -r --no-preserve=mode ${SRC_DIR}/src ${srcdir}/gtest
85 } 83 }
86 84
87 TestStep() { 85 TestStep() {
88 if [[ -z ${GTEST_TEST:-} ]]; then 86 if [[ -z ${GTEST_TEST:-} ]]; then
89 Banner "Skipping tests (set GTEST_TEST to enable)" 87 Banner "Skipping tests (set GTEST_TEST to enable)"
90 return 88 return
91 fi 89 fi
92 DefaultBuildStep 90 DefaultBuildStep
93 if [ "${NACL_ARCH}" = "pnacl" ]; then 91 if [ "${NACL_ARCH}" = "pnacl" ]; then
94 return 92 return
95 fi 93 fi
96 for exe in $CTEST_EXECUTABLES; do 94 for exe in $CTEST_EXECUTABLES; do
97 mv $exe $exe$NACL_EXEEXT 95 mv $exe $exe$NACL_EXEEXT
98 WriteLauncherScript $exe $exe$NACL_EXEEXT 96 WriteLauncherScript $exe $exe$NACL_EXEEXT
99 done 97 done
100 LogExecute make TZ=gmt test 98 LogExecute make TZ=gmt test
101 } 99 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698