sourcedir = "incr_test_scratch_sources"\r
outdir = "incr_test_scratch_classes"\r
errorList = []\r
-VERBOSE = 0\r
+VERBOSE = 1\r
\r
def createEmpty(dir):\r
if os.path.exists(dir):\r
print ">>>>test changed=%s, couldChange=%s, deleted=%s, errors=%s<<<<" % (changed, couldChange, deleted, errors)\r
\r
start = snapshot(outdir)\r
+ #print start\r
handler.errors = []\r
\r
time.sleep(0.1)\r
if len(handler.errors) > 0: return\r
\r
end = snapshot(outdir)\r
+ #print "end", end\r
u, c, d = diffSnapshots(start, end)\r
checkClasses("changed", c, makeList(changed) + makeList(couldChange)) \r
checkClasses("deleted", d, deleted) \r
\r
-"""\r
-Stress testing\r
-"""\r
-N = 2000\r
-l = []\r
-for i in range(N):\r
- name = "p1.Hello" + str(i)\r
- makeType(name)\r
- l.append("Hello" + str(i))\r
\r
-test(batch=1, changed=l)\r
-\r
-print "done", errorList\r
-sys.exit(0)\r
\r
\r
"""\r
print "done", errorList\r
sys.exit(0)\r
\r
+"""\r
+Bugzilla Bug 28807 \r
+ incremental compilation always fails with NullPointerException in 1.1 beta 2 \r
+"""\r
+makeType("incremental.BasicAspect")\r
+makeType("incremental.Basic")\r
+test(batch=1, changed=["Basic", "BasicAspect"])\r
+\r
+makeType("incremental.BasicAspect")\r
+test()\r
+\r
+print "done", errorList\r
+sys.exit(0)\r
+\r
+\r
+"""\r
+Stress testing\r
+"""\r
+N = 2000\r
+l = []\r
+for i in range(N):\r
+ name = "p1.Hello" + str(i)\r
+ makeType(name)\r
+ l.append("Hello" + str(i))\r
+\r
+test(batch=1, changed=l)\r
+\r
+print "done", errorList\r
+sys.exit(0)\r
\r
\r
"""\r