sbsv2/raptor/test/smoke_suite/featurevariants.py
branchwip
changeset 5 593a8820b912
parent 3 e1eecf4d390d
child 20 d1f6767eec1a
equal deleted inserted replaced
3:e1eecf4d390d 5:593a8820b912
    13 #
    13 #
    14 # Description: 
    14 # Description: 
    15 #
    15 #
    16 
    16 
    17 from raptor_tests import SmokeTest
    17 from raptor_tests import SmokeTest
       
    18 import os
    18 
    19 
    19 def run():
    20 def run():
    20 	t = SmokeTest()
    21 	t = SmokeTest()
    21 	
    22 	
    22 	# tests for building feature variants
    23 	# tests for building feature variants
   226 	
   227 	
   227 	# tests for the createvmap script
   228 	# tests for the createvmap script
   228 	createvmap = "python $(SBS_HOME)/bin/createvmap.py"
   229 	createvmap = "python $(SBS_HOME)/bin/createvmap.py"
   229 	vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap"
   230 	vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap"
   230 	vmap = " -o " + vmapfile
   231 	vmap = " -o " + vmapfile
   231 	bvcpp = " -c $(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp"
   232 	
   232 	if t.onWindows:
   233 	if 'SBS_BVCPP' in os.environ:
   233 		bvcpp += ".exe"
   234 		bvcpp = " -c " + os.environ['SBS_BVCPP']
       
   235 	else:
       
   236 		bvcpp = " -c $(SBS_HOME)/$(HOSTPLATFORM_DIR)/bv/bin/cpp"
       
   237 		if t.onWindows:
       
   238 			bvcpp += ".exe"
   234 
   239 
   235 	bvdata = "$(SBS_HOME)/test/smoke_suite/test_resources/bv"
   240 	bvdata = "$(SBS_HOME)/test/smoke_suite/test_resources/bv"
   236 	
   241 	
   237 	preinc = " -p " + bvdata + "/var1/var1.h"
   242 	preinc = " -p " + bvdata + "/var1/var1.h"
   238 	listA = " -f " + bvdata + "/listA.txt"
   243 	listA = " -f " + bvdata + "/listA.txt"