Example #1
0
def make_folder_resources(user, path):
    '''
    Creates a SimpleCell for every file in given path
    Returns the list of SimpleCell
    '''
    files = testfileutils.get_dir_files(path)
    return [BlockCellName('%s/%s' % (user, os.path.join(path, f))) for f in files]
Example #2
0
def make_folder_resources(user, path):
    '''
    Creates a SimpleCell for every file in given path
    Returns the list of SimpleCell
    '''
    files = testfileutils.get_dir_files(path)
    return [
        BlockCellName('%s/%s' % (user, os.path.join(path, f))) for f in files
    ]
    def test_find_csparse_implementations(self):
        '''This tests check that the cs.h file requires or is implemented by all other files
        in csparse, (they are all *.c files)'''
        sources = []
        for file_ in testfileutils.get_dir_files('csparse'):
            sources.append('user/csparse/' + file_)

        block_holder = self._process_from_files(sources)

        #Checks
        header = block_holder['cs.h'].cell
        sources = set(sources)
        sources.remove('user/csparse/cs.h')
        self.assertEqual(sources, header.dependencies.implicit)
Example #4
0
    def test_find_csparse_implementations(self):
        '''This tests check that the cs.h file requires or is implemented by all other files
        in csparse, (they are all *.c files)'''
        sources = []
        for file_ in testfileutils.get_dir_files('csparse'):
            sources.append('user/csparse/' + file_)

        block_holder = self._process_from_files(sources)

        #Checks
        header = block_holder['cs.h'].cell
        sources = set(sources)
        sources.remove('user/csparse/cs.h')
        self.assertEqual(sources, header.dependencies.implicit)