script/autobuild.py: add pidl tests
authorStefan Metzmacher <metze@samba.org>
Wed, 5 Jan 2011 08:30:48 +0000 (09:30 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 5 Jan 2011 13:29:54 +0000 (14:29 +0100)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan  5 14:29:54 CET 2011 on sn-devel-104

script/autobuild.py

index d62eb0ef93c9f864e81ae78a22b8338498e0f7d1..3b11b39b5e6649d102dddeb09959858c7b8d27d1 100755 (executable)
@@ -70,6 +70,14 @@ tasks = {
                      ("test", "make test", "text/plain"),
                      ("check-clean-tree", "../../script/clean-source-tree.sh", "text/plain"),
                      ("clean", "make clean", "text/plain") ],
+
+    "pidl" : [ ("configure", "perl Makefile.PL PREFIX=${PREFIX_DIR}", "text/plain"),
+               ("touch", "touch *.yp", "text/plain"),
+               ("make", "make", "text/plain"),
+               ("test", "make test", "text/plain"),
+               ("install", "make install", "text/plain"),
+               ("check-clean-tree", "../script/clean-source-tree.sh", "text/plain"),
+               ("clean", "make clean", "text/plain") ],
 }
 
 retry_task = [ ( "retry",
@@ -138,6 +146,7 @@ class builder(object):
             return
         (self.stage, self.cmd, self.output_mime_type) = self.sequence[self.next]
         self.cmd = self.cmd.replace("${PREFIX}", "--prefix=%s" % self.prefix)
+        self.cmd = self.cmd.replace("${PREFIX_DIR}", "%s" % self.prefix)
 #        if self.output_mime_type == "text/x-subunit":
 #            self.cmd += " | %s --immediate" % (os.path.join(os.path.dirname(__file__), "selftest/format-subunit"))
         print '%s: [%s] Running %s' % (self.name, self.stage, self.cmd)