os/ossrv/glib/tsrc/readme.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
This readme describes the way to run glib test cases.
sl@0
     2
sl@0
     3
When running the glib test cases please take care of the following:
sl@0
     4
sl@0
     5
1. The hardware image must have the language variants dlls if the ATSINPUT is created using genatsmodules_locale_specific.bat.
sl@0
     6
Language variant DLLs will not be flashed on to the device if we are using Engineering  English image. So we have to create our own customised image for testing the glib module.
sl@0
     7
sl@0
     8
Steps to be followed to test glib module.
sl@0
     9
a. Create a locale.iby file with following entries in the file.
sl@0
    10
/*
sl@0
    11
* ==============================================================================
sl@0
    12
*  Name        : locale.iby
sl@0
    13
*  Part of     : locale
sl@0
    14
*  Description : IBY file for locale
sl@0
    15
*  Version     : 
sl@0
    16
*
sl@0
    17
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
sl@0
    18
*
sl@0
    19
* This library is free software; you can redistribute it and/or
sl@0
    20
* modify it under the terms of the GNU Lesser General Public
sl@0
    21
* License as published by the Free Software Foundation; either
sl@0
    22
* version 2 of the License, or (at your option) any later version.
sl@0
    23
*
sl@0
    24
* This library is distributed in the hope that it will be useful,
sl@0
    25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
sl@0
    26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
sl@0
    27
* Lesser General Public License for more details.
sl@0
    28
*
sl@0
    29
* You should have received a copy of the GNU Lesser General Public
sl@0
    30
* License along with this library; if not, write to the
sl@0
    31
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
sl@0
    32
* Boston, MA 02111-1307, USA.
sl@0
    33
* ==============================================================================
sl@0
    34
*/
sl@0
    35
sl@0
    36
sl@0
    37
sl@0
    38
#ifndef LOCALE_IBY
sl@0
    39
#define LOCALE_IBY
sl@0
    40
sl@0
    41
file=\epoc32\release\armv5\urel\elocl.01            SHARED_LIB_DIR\elocl.01
sl@0
    42
file=\epoc32\release\armv5\urel\elocl.37            SHARED_LIB_DIR\elocl.37
sl@0
    43
file=\epoc32\release\armv5\urel\elocl.42            SHARED_LIB_DIR\elocl.42
sl@0
    44
file=\epoc32\release\armv5\urel\elocl.25            SHARED_LIB_DIR\elocl.25
sl@0
    45
file=\epoc32\release\armv5\urel\elocl.07            SHARED_LIB_DIR\elocl.07
sl@0
    46
file=\epoc32\release\armv5\urel\elocl.03            SHARED_LIB_DIR\elocl.03
sl@0
    47
file=\epoc32\release\armv5\urel\elocl.54            SHARED_LIB_DIR\elocl.54
sl@0
    48
file=\epoc32\release\armv5\urel\elocl.10            SHARED_LIB_DIR\elocl.10
sl@0
    49
file=\epoc32\release\armv5\urel\elocl.04            SHARED_LIB_DIR\elocl.04
sl@0
    50
file=\epoc32\release\armv5\urel\elocl.49            SHARED_LIB_DIR\elocl.49
sl@0
    51
file=\epoc32\release\armv5\urel\elocl.09            SHARED_LIB_DIR\elocl.09
sl@0
    52
file=\epoc32\release\armv5\urel\elocl.51            SHARED_LIB_DIR\elocl.51
sl@0
    53
file=\epoc32\release\armv5\urel\elocl.02            SHARED_LIB_DIR\elocl.02
sl@0
    54
file=\epoc32\release\armv5\urel\elocl.57            SHARED_LIB_DIR\elocl.57
sl@0
    55
file=\epoc32\release\armv5\urel\elocl.45            SHARED_LIB_DIR\elocl.45
sl@0
    56
file=\epoc32\release\armv5\urel\elocl.17            SHARED_LIB_DIR\elocl.17
sl@0
    57
file=\epoc32\release\armv5\urel\elocl.59            SHARED_LIB_DIR\elocl.59
sl@0
    58
file=\epoc32\release\armv5\urel\elocl.15            SHARED_LIB_DIR\elocl.15
sl@0
    59
file=\epoc32\release\armv5\urel\elocl.05            SHARED_LIB_DIR\elocl.05
sl@0
    60
file=\epoc32\release\armv5\urel\elocl.32            SHARED_LIB_DIR\elocl.32
sl@0
    61
file=\epoc32\release\armv5\urel\elocl.68            SHARED_LIB_DIR\elocl.68
sl@0
    62
file=\epoc32\release\armv5\urel\elocl.67            SHARED_LIB_DIR\elocl.67
sl@0
    63
file=\epoc32\release\armv5\urel\elocl.70            SHARED_LIB_DIR\elocl.70
sl@0
    64
file=\epoc32\release\armv5\urel\elocl.18            SHARED_LIB_DIR\elocl.18
sl@0
    65
file=\epoc32\release\armv5\urel\elocl.08            SHARED_LIB_DIR\elocl.08
sl@0
    66
file=\epoc32\release\armv5\urel\elocl.27            SHARED_LIB_DIR\elocl.27
sl@0
    67
file=\epoc32\release\armv5\urel\elocl.76            SHARED_LIB_DIR\elocl.76
sl@0
    68
file=\epoc32\release\armv5\urel\elocl.13            SHARED_LIB_DIR\elocl.13
sl@0
    69
file=\epoc32\release\armv5\urel\elocl.78            SHARED_LIB_DIR\elocl.78
sl@0
    70
file=\epoc32\release\armv5\urel\elocl.16            SHARED_LIB_DIR\elocl.16
sl@0
    71
file=\epoc32\release\armv5\urel\elocl.26            SHARED_LIB_DIR\elocl.26
sl@0
    72
file=\epoc32\release\armv5\urel\elocl.28            SHARED_LIB_DIR\elocl.28
sl@0
    73
file=\epoc32\release\armv5\urel\elocl.79            SHARED_LIB_DIR\elocl.79
sl@0
    74
file=\epoc32\release\armv5\urel\elocl.06            SHARED_LIB_DIR\elocl.06
sl@0
    75
file=\epoc32\release\armv5\urel\elocl.33            SHARED_LIB_DIR\elocl.33
sl@0
    76
file=\epoc32\release\armv5\urel\elocl.39            SHARED_LIB_DIR\elocl.39
sl@0
    77
file=\epoc32\release\armv5\urel\elocl.14            SHARED_LIB_DIR\elocl.14
sl@0
    78
file=\epoc32\release\armv5\urel\elocl.93            SHARED_LIB_DIR\elocl.93
sl@0
    79
file=\epoc32\release\armv5\urel\elocl.96            SHARED_LIB_DIR\elocl.96
sl@0
    80
file=\epoc32\release\armv5\urel\elocl.31            SHARED_LIB_DIR\elocl.31
sl@0
    81
file=\epoc32\release\armv5\urel\elocl.30            SHARED_LIB_DIR\elocl.30
sl@0
    82
sl@0
    83
file=\epoc32\release\armv5\urel\SHIFTJIS.DLL            SHARED_LIB_DIR\SHIFTJIS.DLL
sl@0
    84
file=\epoc32\release\armv5\urel\EUCJP_PACKED.DLL      SHARED_LIB_DIR\EUCJP_PACKED.DLL
sl@0
    85
sl@0
    86
#endif
sl@0
    87
sl@0
    88
sl@0
    89
b.Place the locale.iby file in \EPOC32\rom\Include directory
sl@0
    90
c.Open S60.iby file from  \EPOC32\rom\Include directory and make an entry in the file as given below
sl@0
    91
   #include <locale.iby>                      
sl@0
    92
d. Give the following command to build the scarfe image
sl@0
    93
    isis_build.bat -rom -type=scarfe
sl@0
    94
 
sl@0
    95
2. Ensure that locales.txt is present at \epoc32\winscw\c\resource on emulator and at c:\resource on Hardware. If not present, copy the same to the specified location.
sl@0
    96
sl@0
    97
3. The following are manual test cases:
sl@0
    98
        a. tmanual - Prints instructions on screen. Please follow them. If nothing is printed it is considered as failed.
sl@0
    99
sl@0
   100
        b. log_manual1 - When the test case is executed, the getchar() API should not be executed. If it is executed the test case is considered as failed.
sl@0
   101
sl@0
   102
        c. log_test - prints the following message "test domain-message: test message printed successfully". If it does not print it, the test case is considered as failed.
sl@0
   103
sl@0
   104
        d. mem_profile_test - This will print memory profile on the screen. If it does not print the memory profile the test case is considered as failed.
sl@0
   105
        
sl@0
   106
        e. error_check_mutexes - This will terminate at some point inside error_check_mutexes function,if, in any case it creates result file then consider is as failed.
sl@0
   107
sl@0
   108
4. To generate the ATS test drops for non locale specific APIs use the batch file "genatsmodules.bat" placed in glib\internal. This will generate the "ATSINPUT" folder. 
sl@0
   109
   For locale specfic APIs use genatsmodules_locale_specific.bat placed in glib\internal.
sl@0
   110
sl@0
   111
5. At the end of the all the test cases a log file c:\logtests.txt will be generated which will describe the reason for failures if any.