Mobile/NativeTests/Notes
From MozillaWiki
< Mobile | NativeTests
Meta bug for getting native tests to pass bug 547626
patch to build and run tests:
python script to run native tests (WIP)
import devicemanager import re retre = re.compile('.*with return code ([0-9]+).*') dm = devicemanager.DeviceManager('192.168.1.201', 27020) fhandle = open('nativetests.manifest', 'r') manifest_data = fhandle.read().split('\n') fhandle.close() fhandle = open('nativetests.results', 'w') for line in manifest_data: #assuming each line in a filename only with no directory path fhandle.write('|-\n|' + line); dm.pushFile(line, '/tests/fennec/xulrunner/' + line) process = dm.launchProcess(['/tests/fennec/xulrunner/' + line]) output = dm.communicate(process) if (output != None and output[0] != None): if (output[0].endswith(' 0\n')): fhandle.write('\n| PASS \n') else: fhandle.write('\n| FAIL \n') fhandle.flush() else: fhandle.write('\n| HANG \n') fhandle.close()
nativetests.manifest:
BadPlugin.exe GoodPlugin.exe NormalizationTest.exe PrimitiveTest.exe PropertiesTest.exe ReadNTLM.exe ShowSSEConfig.exe SimpleTypeLib.exe TestAUSReadStrings.exe TestArguments.exe TestAutoPtr.exe TestBlockingProcess.exe TestBlockingSocket.exe TestCOMPtr.exe TestCOMPtrEq.exe TestCallTemplates.exe TestCallbacks.exe TestCookie.exe TestDNS.exe TestFactory.exe TestFile.exe TestGetURL.exe TestHashtables.exe TestID.exe TestINIParser.exe TestIncrementalDownload.exe TestLineBreak.exe TestMinStringAPI.exe TestNativeXMLHttpRequest.exe TestOOM.exe TestObserverArray.exe TestObserverService.exe TestOpen.exe TestPageLoad.exe TestParser.exe TestPipe.exe TestPlainTextSerializer.exe TestPoisonArea.exe TestQuickReturn.exe TestRacingServiceManager.exe TestRegistrationOrder.exe TestServ.exe TestServMgr.exe TestStandardURL.exe TestStreamConv.exe TestStreamLoader.exe TestStringAPI.exe TestTXMgr.exe TestTextFormatter.exe TestThreadPoolListener.exe TestTimers.exe TestURLParser.exe TestUpload.exe TestXPC.exe UnicharSelfTest.exe WriteArgument.exe accept.exe acceptread.exe acceptreademu.exe addrstr.exe affinity.exe alarm.exe anonfm.exe append.exe arena.exe atomic.exe attach.exe base64t.exe bigfile.exe bigfile2.exe bigfile3.exe certutil.exe cleanup.exe cltsrv.exe concur.exe cvar.exe cvar2.exe dceemu.exe dlltest.exe dtoa.exe env.exe errcodes.exe errset.exe exit.exe fdcach.exe fileio.exe foreign.exe forktest.exe formattm.exe fsync.exe getai.exe gethost.exe getopt.exe getproto.exe grabpage.exe i2l.exe initclk.exe inrval.exe instrumt.exe intrio.exe intrupt.exe io_timeout.exe ioconthr.exe ipv6.exe join.exe joinkk.exe joinku.exe joinuk.exe joinuu.exe layer.exe lazyinit.exe libfilename.exe lltest.exe lock.exe lockfile.exe logfile.exe logger.exe makedir.exe many_cv.exe mbcs.exe multiacc.exe multiwait.exe nameshm1.exe nbconn.exe nblayer.exe nonblock.exe nsIFileEnumerator.exe nsTestSample.exe nsinstall.exe ntioto.exe ntoh.exe obsints.exe op_2long.exe op_excl.exe op_filnf.exe op_filok.exe op_noacc.exe op_nofil.exe openfile.exe parent.exe parsetm.exe peek.exe perf.exe pipeping.exe pipeping2.exe pipepong.exe pipepong2.exe pipeself.exe pk12util.exe poll_er.exe poll_nm.exe poll_to.exe pollable.exe prftest.exe prftest1.exe prftest2.exe primblok.exe priotest.exe provider.exe proxy-create-threadsafety.exe proxytests.exe prpoll.exe prpollml.exe randseed.exe ranfile.exe rdfcat.exe rdfpoll.exe reinit.exe rmdir.exe rwlocktest.exe sel_spd.exe selct_er.exe selct_nm.exe selct_to.exe select2.exe selintr.exe sem.exe sema.exe semaerr.exe semaerr1.exe semaping.exe semapong.exe sendzlf.exe server_test.exe servr_kk.exe servr_ku.exe servr_uk.exe servr_uu.exe short_thread.exe sigpipe.exe socket.exe sockopt.exe sockping.exe sockpong.exe sprintf.exe sproc_ch.exe sproc_p.exe ssltunnel.exe stack.exe stdio.exe str2addr.exe string.exe strod.exe suspend.exe switch.exe system.exe test_IHistory.exe test_mutex.exe test_statement_scoper.exe test_transaction_helper.exe testbit.exe threads.exe thrpool_client.exe thrpool_server.exe thruput.exe timemac.exe timetest.exe tmoacc.exe tmocon.exe tpd.exe triplescat.exe udpsrv.exe urltest.exe vercheck.exe version.exe writev.exe xnotify.exe y2k.exe y2ktmo.exe zerolen.exe