185bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho#!/usr/bin/perl
2ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#  ********************************************************************
385bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho#  * Copyright (c) 2002-2008, International Business Machines
4ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#  * Corporation and others. All Rights Reserved.
5ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#  ********************************************************************
6ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
785bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho#use strict;
885bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho
985bf2e2fbc60a9f938064abc8127d61da7d19882Claire Horequire "../perldriver/Common.pl";
10ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
11ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruuse lib '../perldriver';
12ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
13ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruuse PerfFramework;
14ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
15ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querumy $options = {
1685bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho	       "title"=>"Normalization performance: ICU ".$ICULatestVersion." vs. Win",
1785bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho	       "headers"=>"Win ICU".$ICULatestVersion,
18ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	       "operationIs"=>"code point",
19ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	       "passes"=>"10",
20ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	       "time"=>"5",
21ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	       #"outputType"=>"HTML",
2285bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho	       "dataDir"=>$CollationDataPath,
2385bf2e2fbc60a9f938064abc8127d61da7d19882Claire Ho           "outputDir"=>"../results"
24ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	      };
25ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
26ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru# programs
27ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru# tests will be done for all the programs. Results will be stored and connected
2885bf2e2fbc60a9f938064abc8127d61da7d19882Claire Homy $p = $ICUPathLatest."/normperf/$WindowsPlatform/Release/normperf.exe -b -u";
29ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
30ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querumy $tests = {
31ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFC_NFD_Text",  ["$p TestWin_NFC_NFD_Text"  ,  "$p TestICU_NFC_NFD_Text" ],
32ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFC_NFC_Text",  ["$p TestWin_NFC_NFC_Text"  ,  "$p TestICU_NFC_NFC_Text" ],
33ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFC_Orig_Text", ["$p TestWin_NFC_Orig_Text" ,  "$p TestICU_NFC_Orig_Text"],
34ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFD_NFD_Text",  ["$p TestWin_NFD_NFD_Text"  ,  "$p TestICU_NFD_NFD_Text" ],
35ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFD_NFC_Text",  ["$p TestWin_NFD_NFC_Text"  ,  "$p TestICU_NFD_NFC_Text" ],
36ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	     "NFD_Orig_Text", ["$p TestWin_NFD_Orig_Text" ,  "$p TestICU_NFD_Orig_Text"]
37ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru	    };
38ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
39ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querumy $dataFiles = {
40ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		 "",
41ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		 [
42ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Asian.txt",
43ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Chinese.txt",
44ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Japanese.txt",
45ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Japanese_h.txt",
46ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Japanese_k.txt",
47ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Korean.txt",
48ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Latin.txt",
49ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_SerbianSH.txt",
50ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_SerbianSR.txt",
51ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "TestNames_Thai.txt",
52ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "Testnames_Russian.txt",
53ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "th18057.txt",
54ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "thesis.txt",
55ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		  "vfear11a.txt",
56ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		 ]
57ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru		};
58ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru
59ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste QuerurunTests($options, $tests, $dataFiles);
60