// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// !@file
// 
//


RUN_SCRIPT z:\TestData\Scripts\te_smscaps_setup.script
/// positive test


//ECapabilityReadUserData  + ECapabilityWriteUserData +   ECapabilityNetworkServices + ECapabilityWriteDeviceData + ECapabilityReadDeviceData
// ECapabilityNetworkControl is added i order to enable shutdown of protocol API ( ox 00400)
RUN_PROGRAM -1 setcap te_smscaps.exe 1a430 C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT  z:\testdata\scripts\te_smscapsReadWriteNetwork.script


// negative tests - TCB is never set
//ECapabilityReadUserData
RUN_PROGRAM -1 setcap te_smscaps.exe f7ffe C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsRead.script


//ECapabilityWriteUserData
RUN_PROGRAM -1 setcap te_smscaps.exe efffe C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsWrite.script


//ECapabilityReadUserData  + ECapabilityWriteUserData
RUN_PROGRAM -1 setcap te_smscaps.exe e7ffe C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsReadWrite.script


//ECapabilityReadDeviceData
RUN_PROGRAM -1 setcap te_smscaps.exe fffee C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsReadDevice.script


//ECapabilityWriteDeviceData
RUN_PROGRAM -1 setcap te_smscaps.exe fffde C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsWriteDevice.script


//ECapabilityWriteUserData + ECapabilityNetworkServices
RUN_PROGRAM -1 setcap te_smscaps.exe edffe C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsWriteNetwork.script

//ECapabilityReadUserData  + ECapabilityWriteUserData +   ECapabilityNetworkServices
RUN_PROGRAM -1 setcap te_smscaps.exe e5ffe C:\sys\bin\te_smscaps_sc.exe
RUN_SCRIPT z:\testdata\scripts\te_smscapsNoReadWriteNetwork.script
