hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
miniBAT.py
Go to the documentation of this file.
1 import os
2 import sys
3 
4 ret = True
5 
6 CURRENT_DIR = os.path.dirname(__file__)
7 test_file = open(CURRENT_DIR + "/list_files.txt")
8 for line in test_file:
9  splitted_line = line.split()
10  input_file = splitted_line[0]
11  lang = splitted_line[1]
12  cmd = (CURRENT_DIR + "/test -c -i " + CURRENT_DIR + "/" + input_file + " -l " + lang)
13  ret = os.system(cmd)
14  if(ret):
15  print(lang + ": Error")
16  ret = False
17  else:
18  print(lang + ": Ok")
19 
20 sys.exit(ret)