source: icGREP/icgrep-devel/QA/character_deposit/testfile_generator.py @ 5873

Last change on this file since 5873 was 5873, checked in by xwa163, 17 months ago
  1. Implement LZ4MultiplePdepKernel, which can do PDEP for more than one input streamset
  2. Add attributed Swizzled in StreamSet?, copy at least one whole block when doing temporary buffer copy for Swizzled InputStreamSet?
  3. Bug fixing for character_deposit pipeline
  4. Add more test files for character_deposit pipeline
File size: 421 bytes
Line 
1import random
2import string
3
4
5def generate_text(num_of_group):
6    output_str = ''
7    for i in range(num_of_group):
8        group_size = random.randrange(1, 7)
9        for j in range(group_size):
10            output_str += random.choice(string.ascii_uppercase)
11        for j in range(group_size):
12            output_str += 'b'
13
14    return output_str
15
16
17if __name__ == '__main__':
18    t = generate_text(20000)
19    print(t)
Note: See TracBrowser for help on using the repository browser.