How to use filesystems method in autotest

Best Python code snippet using autotest_python

SConscript

Source:SConscript Github

copy

Full Screen

1Import('RTT_ROOT')2Import('rtconfig')3from building import *4# The set of source files associated with this SConscript file.5dfs = Split("""6src/dfs.c7src/dfs_fs.c8src/dfs_file.c9src/dfs_posix.c10""")11# DFS-ELMFAT options12elmfat = Split("""13filesystems/elmfat/dfs_elm.c14filesystems/elmfat/ff.c15""")16# DFS-ROMFS options17romfs = Split("""18filesystems/romfs/dfs_romfs.c19""")20if not GetDepend('DFS_ROMFS_ROOT'):21 romfs = romfs + Split('filesystems/romfs/romfs.c')22# DFS-DeviceFS options23devfs = Split("""24filesystems/devfs/devfs.c25filesystems/devfs/console.c26""")27# DFS-YAFFS2 options28yaffs2_src = Split("""29filesystems/yaffs2/dfs_yaffs2.c30filesystems/yaffs2/yaffs_osglue.c31filesystems/yaffs2/yaffs_nandcfg.c32filesystems/yaffs2/yaffs/yaffs_allocator.c33filesystems/yaffs2/yaffs/yaffs_bitmap.c34filesystems/yaffs2/yaffs/yaffs_checkptrw.c35filesystems/yaffs2/yaffs/yaffs_ecc.c 36filesystems/yaffs2/yaffs/yaffs_guts.c37filesystems/yaffs2/yaffs/yaffs_nameval.c38filesystems/yaffs2/yaffs/yaffs_nand.c39filesystems/yaffs2/yaffs/yaffs_packedtags1.c40filesystems/yaffs2/yaffs/yaffs_packedtags2.c41filesystems/yaffs2/yaffs/yaffs_summary.c42filesystems/yaffs2/yaffs/yaffs_tagscompat.c43filesystems/yaffs2/yaffs/yaffs_verify.c44filesystems/yaffs2/yaffs/yaffs_yaffs1.c45filesystems/yaffs2/yaffs/yaffs_yaffs2.c46filesystems/yaffs2/yaffs/direct/yaffs_attribs.c47filesystems/yaffs2/yaffs/direct/yaffs_hweight.c48filesystems/yaffs2/yaffs/direct/yaffs_nandif.c49filesystems/yaffs2/yaffs/direct/yaffs_qsort.c50filesystems/yaffs2/yaffs/direct/yaffsfs.c51""")52nfs = Split('''53filesystems/nfs/mount_clnt.c54filesystems/nfs/mount_xdr.c55filesystems/nfs/nfs_clnt.c56filesystems/nfs/nfs_xdr.c57filesystems/nfs/dfs_nfs.c58filesystems/nfs/rpc/auth_none.c59filesystems/nfs/rpc/clnt_generic.c60filesystems/nfs/rpc/clnt_udp.c61filesystems/nfs/rpc/rpc_prot.c62filesystems/nfs/rpc/pmap.c63filesystems/nfs/rpc/xdr.c64filesystems/nfs/rpc/xdr_mem.c65''')66uffs = Split('''67filesystems/uffs/src/uffs/uffs_badblock.c68filesystems/uffs/src/uffs/uffs_blockinfo.c69filesystems/uffs/src/uffs/uffs_buf.c70filesystems/uffs/src/uffs/uffs_debug.c71filesystems/uffs/src/uffs/uffs_device.c72filesystems/uffs/src/uffs/uffs_ecc.c73filesystems/uffs/src/uffs/uffs_crc.c74filesystems/uffs/src/uffs/uffs_fd.c75filesystems/uffs/src/uffs/uffs_find.c76filesystems/uffs/src/uffs/uffs_flash.c77filesystems/uffs/src/uffs/uffs_fs.c78filesystems/uffs/src/uffs/uffs_init.c79filesystems/uffs/src/uffs/uffs_mem.c80filesystems/uffs/src/uffs/uffs_mtb.c81filesystems/uffs/src/uffs/uffs_pool.c82filesystems/uffs/src/uffs/uffs_public.c83filesystems/uffs/src/uffs/uffs_tree.c84filesystems/uffs/src/uffs/uffs_utils.c85filesystems/uffs/src/uffs/uffs_version.c86filesystems/uffs/dfs_uffs.c87filesystems/uffs/uffs_nandif.c88filesystems/uffs/uffs_rtthread.c89''')90jffs2 = Split('''91filesystems/jffs2/dfs_jffs2.c92filesystems/jffs2/porting.c93filesystems/jffs2/cyg/compress/src/adler32.c94filesystems/jffs2/cyg/compress/src/compress.c95filesystems/jffs2/cyg/compress/src/deflate.c96filesystems/jffs2/cyg/compress/src/infback.c97filesystems/jffs2/cyg/compress/src/inffast.c98filesystems/jffs2/cyg/compress/src/inflate.c99filesystems/jffs2/cyg/compress/src/inftrees.c100filesystems/jffs2/cyg/compress/src/trees.c101filesystems/jffs2/cyg/compress/src/uncompr.c102filesystems/jffs2/cyg/compress/src/zutil.c103filesystems/jffs2/cyg/crc/crc16.c104filesystems/jffs2/cyg/crc/crc32.c105filesystems/jffs2/cyg/crc/posix_crc.c106filesystems/jffs2/kernel/rbtree.c107filesystems/jffs2/src/build.c108filesystems/jffs2/src/compr.c109filesystems/jffs2/src/compr_rtime.c110filesystems/jffs2/src/compr_rubin.c111filesystems/jffs2/src/compr_zlib.c112filesystems/jffs2/src/debug.c113filesystems/jffs2/src/dir-ecos.c114filesystems/jffs2/src/erase.c115filesystems/jffs2/src/flashio.c116filesystems/jffs2/src/fs-ecos.c117filesystems/jffs2/src/gc.c118filesystems/jffs2/src/gcthread.c119filesystems/jffs2/src/malloc-ecos.c120filesystems/jffs2/src/nodelist.c121filesystems/jffs2/src/nodemgmt.c122filesystems/jffs2/src/read.c123filesystems/jffs2/src/readinode.c124filesystems/jffs2/src/scan.c125filesystems/jffs2/src/write.c126''')127src_local = dfs128CPPDEFINES = []129# The set of source files associated with this SConscript file.130path = [RTT_ROOT + '/components/dfs', RTT_ROOT + '/components/dfs/include']131if GetDepend('RT_USING_DFS_YAFFS2'):132 src_local = src_local + yaffs2_src133 path = path + [RTT_ROOT + '/components/dfs/filesystems/yaffs2/yaffs', \134 RTT_ROOT + '/components/dfs/filesystems/yaffs2/yaffs/direct' ]135if GetDepend('RT_USING_DFS_ELMFAT'):136 if GetDepend('RT_DFS_ELM_USE_LFN'):137 if GetDepend('RT_DFS_ELM_CODE_PAGE_FILE'):138 elmfat += ['filesystems/elmfat/option/ccfile.c']139 else:140 if GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 932:141 elmfat += ['filesystems/elmfat/option/cc932.c']142 elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 936:143 elmfat += ['filesystems/elmfat/option/cc936.c']144 elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 949:145 elmfat += ['filesystems/elmfat/option/cc949.c']146 elif GetConfigValue('RT_DFS_ELM_CODE_PAGE') == 950:147 elmfat += ['filesystems/elmfat/option/cc950.c']148 else:149 elmfat += ['filesystems/elmfat/option/ccsbcs.c']150 src_local = src_local + elmfat151if GetDepend(['RT_USING_DFS_NFS', 'RT_USING_LWIP']):152 src_local = src_local + nfs153 path = path + [RTT_ROOT + '/components/dfs/filesystems/nfs']154if GetDepend('RT_USING_DFS_ROMFS'):155 src_local = src_local + romfs156 path = path + [RTT_ROOT + '/components/dfs/filesystems/romfs']157if GetDepend('RT_USING_DFS_DEVFS'):158 src_local = src_local + devfs159 path = path + [RTT_ROOT + '/components/dfs/filesystems/devfs']160if GetDepend('RT_USING_DFS_UFFS'):161 src_local = src_local + uffs162 path = path + [RTT_ROOT + '/components/dfs/filesystems/uffs/src/inc', \163 RTT_ROOT + '/components/dfs/filesystems/uffs'] #, \164 # RTT_ROOT + '/components/dfs/filesystems/uffs/flash']165if GetDepend('RT_USING_DFS_JFFS2'):166 src_local = src_local + jffs2167 path = path + [RTT_ROOT + '/components/dfs/filesystems/jffs2/src', \168 RTT_ROOT + '/components/dfs/filesystems/jffs2/kernel', \169 RTT_ROOT + '/components/dfs/filesystems/jffs2/include', \170 RTT_ROOT + '/components/dfs/filesystems/jffs2', \171 RTT_ROOT + '/components/dfs/filesystems/jffs2/cyg/compress']172group = DefineGroup('Filesystem', src_local, depend = ['RT_USING_DFS'], CPPPATH = path, CPPDEFINES = CPPDEFINES)...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful