forked from aas-integration/integration-test2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_randoop.py
More file actions
executable file
·36 lines (29 loc) · 785 Bytes
/
Copy pathrun_randoop.py
File metadata and controls
executable file
·36 lines (29 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
import os,sys,common
import time
def main():
if not os.path.exists(common.CORPUS_DIR):
print("Please run python fetch_corpus.py first to fetch the corpus.")
sys.exit(1)
return
if not os.path.exists(common.LIBS_DIR):
print("Please run fetch_dependencies.sh first to fetch the necessary tools.")
sys.exit(1)
return
project = ""
if len(sys.argv) == 2:
project = sys.argv[1]
else:
print('must supply single test name')
exit()
print("Running analysis on corpus.")
print(time.strftime('%X %x'))
tools = ['randoop']
print("Cleaning {}".format(project))
common.clean_project(project)
common.run_dljc(project, tools)
print(time.strftime('%X %x'))
if __name__ == "__main__":
main()
else:
print('huh?')