1<?xml version="1.0" encoding="UTF-8"?> 2 3<!-- Copyright (c) 2014, STMicroelectronics International N.V. --> 4<!-- All rights reserved. --> 5<!-- --> 6<!-- Redistribution and use in source and binary forms, with or without --> 7<!-- modification, are permitted provided that the following conditions are met: --> 8<!-- --> 9<!-- 1. Redistributions of source code must retain the above copyright notice, --> 10<!-- this list of conditions and the following disclaimer. --> 11<!-- --> 12<!-- 2. Redistributions in binary form must reproduce the above copyright notice, --> 13<!-- this list of conditions and the following disclaimer in the documentation --> 14<!-- and/or other materials provided with the distribution. --> 15<!-- --> 16<!-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" --> 17<!-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE --> 18<!-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE --> 19<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE --> 20<!-- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR --> 21<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF --> 22<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS --> 23<!-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN --> 24<!-- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) --> 25<!-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE --> 26<!-- POSSIBILITY OF SUCH DAMAGE. --> 27 28<xsl:stylesheet version="1.0" 29xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 30 31<xsl:output method="text"/> 32<xsl:strip-space elements="*"/> 33<xsl:param name="target"/> 34<xsl:param name="f2" select="'TEE_DataStorage_API.xml'"/> 35<xsl:param name="f3" select="'TEE_Internal_API.xml'"/> 36<xsl:param name="f4" select="'TEE_TimeArithm_API.xml'"/> 37<xsl:param name="f5" select="'TEE_Crypto_API.xml'"/> 38<xsl:variable name="doc2" select="document($f2)"/> 39<xsl:variable name="doc3" select="document($f3)"/> 40<xsl:variable name="doc4" select="document($f4)"/> 41<xsl:variable name="doc5" select="document($f5)"/> 42 43<xsl:template match="package"> 44<xsl:text>/* 45 * Copyright (c) 2014, STMicroelectronics International N.V. 46 * 47 * This program is free software; you can redistribute it and/or modify 48 * it under the terms of the GNU General Public License Version 2 as 49 * published by the Free Software Foundation. 50 * 51 * This program is distributed in the hope that it will be useful, 52 * but WITHOUT ANY WARRANTY; without even the implied warranty of 53 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 54 * GNU General Public License for more details. 55 * 56 * You should have received a copy of the GNU General Public License along 57 * with this program; if not, write to the Free Software Foundation, Inc., 58 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 59 */ 60 61#ifndef ADBG_ENTRY_DECLARE_H 62#define ADBG_ENTRY_DECLARE_H 63 64#define ADBG_ENTRY_AUTO_GENERATED_TESTS() \ 65</xsl:text> 66<xsl:for-each select="initial-state/scenario"> 67<xsl:variable name="position" select="position()" /> ADBG_SUITE_ENTRY(XTEST_TEE_<xsl:value-of select="$position+7000" />, NULL)\ 68</xsl:for-each> 69<xsl:text>\ 70</xsl:text> 71<xsl:for-each select="$doc2/package/initial-state/scenario"> 72<xsl:variable name="position" select="position()" /> ADBG_SUITE_ENTRY(XTEST_TEE_<xsl:value-of select="$position+7500" />, NULL)\ 73</xsl:for-each> 74<xsl:text>\ 75</xsl:text> 76<xsl:for-each select="$doc3/package/initial-state/scenario"> 77<xsl:variable name="position" select="position()" /> ADBG_SUITE_ENTRY(XTEST_TEE_<xsl:value-of select="$position+8000" />, NULL)\ 78</xsl:for-each> 79<xsl:text>\ 80</xsl:text> 81<xsl:for-each select="$doc4/package/initial-state/scenario"> 82<xsl:variable name="position" select="position()" /> ADBG_SUITE_ENTRY(XTEST_TEE_<xsl:value-of select="$position+8500" />, NULL)\ 83</xsl:for-each> 84<xsl:text>\ 85</xsl:text> 86<xsl:for-each select="$doc5/package/initial-state/scenario"> 87<xsl:variable name="position" select="position()" /> ADBG_SUITE_ENTRY(XTEST_TEE_<xsl:value-of select="$position+9000" />, NULL)\ 88</xsl:for-each> 89<xsl:text> 90/* end of entry declarations */ 91 92#endif /*ADBG_ENTRY_DECLARE_H*/ 93</xsl:text> 94</xsl:template> 95</xsl:stylesheet> 96 97