X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/test/perf/strsrchperf/StrSrchPerf_r.pl diff --git a/icuSources/test/perf/strsrchperf/StrSrchPerf_r.pl b/icuSources/test/perf/strsrchperf/StrSrchPerf_r.pl old mode 100644 new mode 100755 index ac3c4295..7b16dc8a --- a/icuSources/test/perf/strsrchperf/StrSrchPerf_r.pl +++ b/icuSources/test/perf/strsrchperf/StrSrchPerf_r.pl @@ -1,7 +1,11 @@ #!/usr/bin/perl # ******************************************************************** +# * Copyright (C) 2016 and later: Unicode, Inc. and others. +# * License & terms of use: http://www.unicode.org/copyright.html#License +# ******************************************************************** +# ******************************************************************** # * COPYRIGHT: -# * Copyright (c) 2008, International Business Machines +# * Copyright (c) 2008-2013, International Business Machines # * Corporation and others. All Rights Reserved. # ******************************************************************** @@ -34,12 +38,12 @@ my $p1; # Previous my $p2; # Latest if ($OnWindows) { - $p1 = $ICUPathPrevious . "/strsrchperf/Release/strsrchperf.exe -b"; - $p2 = $ICUPathLatest . "/strsrchperf/Release/strsrchperf.exe -b"; + $p1 = "cd ".$ICUPrevious."/bin && ".$ICUPathPrevious . "/strsrchperf/$WindowsPlatform/Release/strsrchperf.exe -b"; + $p2 = "cd ".$ICULatest."/bin && ".$ICUPathLatest . "/strsrchperf/$WindowsPlatform/Release/strsrchperf.exe -b"; } else { - $p1 = $ICUPathPrevious . "/strsrchperf/strsrchperf -b"; - $p2 = $ICUPathLatest . "/strsrchperf/strsrchperf -b"; + $p1 = "LD_LIBRARY_PATH=".$ICUPrevious."/source/lib:".$ICUPrevious."/source/tools/ctestfw ".$ICUPathPrevious . "/strsrchperf/strsrchperf -b"; + $p2 = "LD_LIBRARY_PATH=".$ICULatest."/source/lib:".$ICULatest."/source/tools/ctestfw ".$ICUPathLatest . "/strsrchperf/strsrchperf -b"; } my $dataFiles = {