#!/usr/bin/env python3 import pystache #print(pystache.render('Hi {{person}}!', {'person': 'Mom'})) tests = [ 'test_encrypt_raw_10M', # 'test_encrypt_raw_100k', # 'test_encrypt_raw_10k', # 'test_decrypt_raw_100k', # 'test_decrypt_raw_10M', # 'test_decrypt_raw_10k', # 'test_decrypt_raw_1M', # 'test_decrypt_raw_500k', # 'test_encrypt_raw_1M', # 'test_encrypt_raw_500k', # 'test_initialization', # 'test_async_create_1000_10k', # 'test_async_create_100_100k', # 'test_create_1000_10k', # 'test_create_100_100k', # 'test_create_20_500k', # 'test_decrypt_doc_100k', # 'test_decrypt_doc_10M', # 'test_decrypt_doc_10k', #'test_decrypt_doc_1M' ] DIR = './visualization/' template = open(DIR + 'template.mustache', 'r').read() for test in tests: out_file = DIR + test + '.json' print('Generating ' + out_file) context = { 'title': test, 'query': "commit_info.project:soledad AND commit_info.branch='master' AND machine_info.host='weasel' AND name='" + test + "'" } rendered = pystache.render(template, context) #print(context) out = open(out_file, 'w') out.write(rendered) out.flush()