# Extract the first list
extractAppList = open(firstList, "r")
for app in extractAppList:
- appList1.append(app.strip())
+ if '#' not in app:
+ appList1.append(app.strip())
extractAppList.close()
# Try to create pairs
secondList = sys.argv[5]
extractAppList = open(secondList, "r")
for app in extractAppList:
- appList2.append(app.strip())
+ if '#' not in app:
+ appList2.append(app.strip())
extractAppList.close()
# Just copy the first list to the second list
else:
# PART 2:
print "PHASE 2: Running JPF ...\n"
+# List down all the log file names
+writeLogList = open(jpfLogDir + "logList", "w+")
for item in appPairs:
+
# Copy apps into Extractor/App1 and Extractor/App2
os.system("cp " + appDir + item[0] + " Extractor/App1/App1.groovy")
os.system("cp " + appDir + item[1] + " Extractor/App2/App2.groovy")
# Call JPF
print "==> Calling JPF and generate logs ...\n"
- os.system("cd " + jpfDir + ";./run.sh " + jpfLogDir + item[0] + "--" + item[1] + ".log" + " main.jpf")
+ logName = jpfLogDir + item[0] + "--" + item[1] + ".log"
+ writeLogList.write(logName + "\n")
+ os.system("cd " + jpfDir + ";./run.sh " + logName + " main.jpf")
+
+writeLogList.close()