Best Python code snippet using sure_python
gyptest-cl-optimizations.py
Source:gyptest-cl-optimizations.py
...14 # It's hard to map flags to output contents in a non-fragile way (especially15 # handling both 2008/2010), so just verify the correct ninja command line16 # contents.17 ninja_file = test.built_file_path('obj/test_opt_off.ninja', chdir=CHDIR)18 test.must_contain(ninja_file, 'cflags = /Od')19 ninja_file = test.built_file_path('obj/test_opt_lev_size.ninja', chdir=CHDIR)20 test.must_contain(ninja_file, 'cflags = /O1')21 ninja_file = test.built_file_path('obj/test_opt_lev_speed.ninja', chdir=CHDIR)22 test.must_contain(ninja_file, 'cflags = /O2')23 ninja_file = test.built_file_path('obj/test_opt_lev_max.ninja', chdir=CHDIR)24 test.must_contain(ninja_file, 'cflags = /Ox')25 ninja_file = test.built_file_path('obj/test_opt_unset.ninja', chdir=CHDIR)26 test.must_not_contain(ninja_file, '/Od')27 test.must_not_contain(ninja_file, '/O1')28 test.must_not_contain(ninja_file, '/Ox')29 # Set by default if none specified.30 test.must_contain(ninja_file, '/O2')31 ninja_file = test.built_file_path('obj/test_opt_fpo.ninja', chdir=CHDIR)32 test.must_contain(ninja_file, '/Oy')33 test.must_not_contain(ninja_file, '/Oy-')34 ninja_file = test.built_file_path('obj/test_opt_fpo_off.ninja', chdir=CHDIR)35 test.must_contain(ninja_file, '/Oy-')36 ninja_file = test.built_file_path('obj/test_opt_intrinsic.ninja',37 chdir=CHDIR)38 test.must_contain(ninja_file, '/Oi')39 test.must_not_contain(ninja_file, '/Oi-')40 ninja_file = test.built_file_path('obj/test_opt_intrinsic_off.ninja',41 chdir=CHDIR)42 test.must_contain(ninja_file, '/Oi-')43 ninja_file = test.built_file_path('obj/test_opt_inline_off.ninja',44 chdir=CHDIR)45 test.must_contain(ninja_file, '/Ob0')46 ninja_file = test.built_file_path('obj/test_opt_inline_manual.ninja',47 chdir=CHDIR)48 test.must_contain(ninja_file, '/Ob1')49 ninja_file = test.built_file_path('obj/test_opt_inline_auto.ninja',50 chdir=CHDIR)51 test.must_contain(ninja_file, '/Ob2')52 ninja_file = test.built_file_path('obj/test_opt_neither.ninja',53 chdir=CHDIR)54 test.must_not_contain(ninja_file, '/Os')55 test.must_not_contain(ninja_file, '/Ot')56 ninja_file = test.built_file_path('obj/test_opt_size.ninja',57 chdir=CHDIR)58 test.must_contain(ninja_file, '/Os')59 ninja_file = test.built_file_path('obj/test_opt_speed.ninja',60 chdir=CHDIR)61 test.must_contain(ninja_file, '/Ot')62 ninja_file = test.built_file_path('obj/test_opt_wpo.ninja',63 chdir=CHDIR)64 test.must_contain(ninja_file, '/GL')65 ninja_file = test.built_file_path('obj/test_opt_sp.ninja',66 chdir=CHDIR)67 test.must_contain(ninja_file, '/GF')68 ninja_file = test.built_file_path('obj/test_opt_sp_off.ninja',69 chdir=CHDIR)70 test.must_not_contain(ninja_file, '/GF')71 ninja_file = test.built_file_path('obj/test_opt_fso.ninja',72 chdir=CHDIR)73 test.must_contain(ninja_file, '/GT')74 ninja_file = test.built_file_path('obj/test_opt_fso_off.ninja',75 chdir=CHDIR)76 test.must_not_contain(ninja_file, '/GT')...
gyptest-cl-optimizations.py.svn-base
Source:gyptest-cl-optimizations.py.svn-base
...14 # It's hard to map flags to output contents in a non-fragile way (especially15 # handling both 2008/2010), so just verify the correct ninja command line16 # contents.17 ninja_file = test.built_file_path('obj/test_opt_off.ninja', chdir=CHDIR)18 test.must_contain(ninja_file, 'cflags = /Od')19 ninja_file = test.built_file_path('obj/test_opt_lev_size.ninja', chdir=CHDIR)20 test.must_contain(ninja_file, 'cflags = /O1')21 ninja_file = test.built_file_path('obj/test_opt_lev_speed.ninja', chdir=CHDIR)22 test.must_contain(ninja_file, 'cflags = /O2')23 ninja_file = test.built_file_path('obj/test_opt_lev_max.ninja', chdir=CHDIR)24 test.must_contain(ninja_file, 'cflags = /Ox')25 ninja_file = test.built_file_path('obj/test_opt_unset.ninja', chdir=CHDIR)26 test.must_not_contain(ninja_file, '/Od')27 test.must_not_contain(ninja_file, '/O1')28 test.must_not_contain(ninja_file, '/Ox')29 # Set by default if none specified.30 test.must_contain(ninja_file, '/O2')31 ninja_file = test.built_file_path('obj/test_opt_fpo.ninja', chdir=CHDIR)32 test.must_contain(ninja_file, '/Oy')33 test.must_not_contain(ninja_file, '/Oy-')34 ninja_file = test.built_file_path('obj/test_opt_fpo_off.ninja', chdir=CHDIR)35 test.must_contain(ninja_file, '/Oy-')36 ninja_file = test.built_file_path('obj/test_opt_intrinsic.ninja',37 chdir=CHDIR)38 test.must_contain(ninja_file, '/Oi')39 test.must_not_contain(ninja_file, '/Oi-')40 ninja_file = test.built_file_path('obj/test_opt_intrinsic_off.ninja',41 chdir=CHDIR)42 test.must_contain(ninja_file, '/Oi-')43 ninja_file = test.built_file_path('obj/test_opt_inline_off.ninja',44 chdir=CHDIR)45 test.must_contain(ninja_file, '/Ob0')46 ninja_file = test.built_file_path('obj/test_opt_inline_manual.ninja',47 chdir=CHDIR)48 test.must_contain(ninja_file, '/Ob1')49 ninja_file = test.built_file_path('obj/test_opt_inline_auto.ninja',50 chdir=CHDIR)51 test.must_contain(ninja_file, '/Ob2')52 ninja_file = test.built_file_path('obj/test_opt_neither.ninja',53 chdir=CHDIR)54 test.must_not_contain(ninja_file, '/Os')55 test.must_not_contain(ninja_file, '/Ot')56 ninja_file = test.built_file_path('obj/test_opt_size.ninja',57 chdir=CHDIR)58 test.must_contain(ninja_file, '/Os')59 ninja_file = test.built_file_path('obj/test_opt_speed.ninja',60 chdir=CHDIR)61 test.must_contain(ninja_file, '/Ot')62 ninja_file = test.built_file_path('obj/test_opt_wpo.ninja',63 chdir=CHDIR)64 test.must_contain(ninja_file, '/GL')65 ninja_file = test.built_file_path('obj/test_opt_sp.ninja',66 chdir=CHDIR)67 test.must_contain(ninja_file, '/GF')68 ninja_file = test.built_file_path('obj/test_opt_sp_off.ninja',69 chdir=CHDIR)70 test.must_not_contain(ninja_file, '/GF')71 ninja_file = test.built_file_path('obj/test_opt_fso.ninja',72 chdir=CHDIR)73 test.must_contain(ninja_file, '/GT')74 ninja_file = test.built_file_path('obj/test_opt_fso_off.ninja',75 chdir=CHDIR)76 test.must_not_contain(ninja_file, '/GT')...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!