X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ftest;h=e30b451c20e78d302237b0d4f02a60a0270deef9;hb=ab0db45e689d1992b62773a094111ea19115f77c;hp=a1856fd7d3c20c9dac64322f5734ed8fd5259858;hpb=434d5040b814eae784d080c695fe8c3d370a166b;p=swftools.git diff --git a/lib/as3/test b/lib/as3/test index a1856fd..e30b451 100755 --- a/lib/as3/test +++ b/lib/as3/test @@ -28,6 +28,11 @@ import marshal import select from optparse import OptionParser +CMD_ARGS=[] +#CMD = "./parser" +CMD="as3compile" +CMD_ARGS=["-o","abc.swf"] + def check(s): row = None ok = 0 @@ -101,12 +106,12 @@ class Cache: try: self.milestone = marshal.load(open(self.filename_milestone, "rb")) except IOError: - self.milstone = {} + self.milestone = {} def parse_args(self): parser = OptionParser() parser.add_option("-d", "--diff", dest="diff", help="Only run tests that failed the last time",action="store_true") - parser.add_option("-a", "--all", dest="all", help="Run all tests (also tests expected fail)",action="store_true") + parser.add_option("-a", "--all", dest="all", help="Run all tests (also tests expected to fail)",action="store_true") parser.add_option("-t", "--tag", dest="tag", help="Mark the current pass/fail statistic as milestone",action="store_true") (options, args) = parser.parse_args() @@ -171,7 +176,7 @@ class TestBase: def compile(self): try: os.unlink("abc.swf"); except: pass - ret,output = runcmd("./parser",[self.file],wait=cache.runtime) + ret,output = runcmd(CMD,CMD_ARGS+[self.file],wait=cache.runtime) self.compile_error = 0 self.compile_output = output self.exit_status = 0