]> granicus.if.org Git - python/commitdiff
After generating the Python file with definitions try to run it, so
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Aug 2002 21:48:16 +0000 (21:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Aug 2002 21:48:16 +0000 (21:48 +0000)
we catch errors during the build process in stead of later during runtime.

27 files changed:
Mac/Modules/ae/aescan.py
Mac/Modules/app/appscan.py
Mac/Modules/carbonevt/CarbonEvtscan.py
Mac/Modules/cf/cfscan.py
Mac/Modules/cg/cgscan.py
Mac/Modules/cm/cmscan.py
Mac/Modules/ctl/ctlscan.py
Mac/Modules/dlg/dlgscan.py
Mac/Modules/drag/dragscan.py
Mac/Modules/evt/evtscan.py
Mac/Modules/fm/fmscan.py
Mac/Modules/help/helpscan.py
Mac/Modules/htmlrender/htmlscan.py
Mac/Modules/ibcarbon/IBCarbonscan.py
Mac/Modules/icn/icnscan.py
Mac/Modules/list/listscan.py
Mac/Modules/menu/menuscan.py
Mac/Modules/mlte/mltescan.py
Mac/Modules/qd/qdscan.py
Mac/Modules/qdoffs/qdoffsscan.py
Mac/Modules/qt/qtscan.py
Mac/Modules/res/resscan.py
Mac/Modules/scrap/scrapscan.py
Mac/Modules/snd/sndscan.py
Mac/Modules/te/tescan.py
Mac/Modules/waste/wastescan.py
Mac/Modules/win/winscan.py

index b406ce784f40a5a3a43c68caa55ff074494061e3..3a59ec8561eaea3b68c9b5954d8a33ff4decbab2 100644 (file)
@@ -20,6 +20,8 @@ def main():
        scanner = AppleEventsScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done Scanning and Generating, now doing 'import aesupport' ==="
        import aesupport
        print "=== Done 'import aesupport'.  It's up to you to compile AEmodule.c ==="
index 286d3ce5167daa12953afbec88cd3f7044774b6d..695e0d94636ba704cbd23465121287610a795609 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 467b8a848af7bca2299092cc0649131c16bbadb6..d3088fd0f2300e328ca491ef66f2bd481f6165c2 100644 (file)
@@ -19,6 +19,8 @@ def main():
        scanner = CarbonEvents_Scanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "--done scanning, importing--"
        import CarbonEvtsupport
        print "done"
index 0bcf914842e7c8d20200e69a749215370e5978fb..aa0ea3de434ddeb05806bbea5ee8ccd43d5ad1df 100644 (file)
@@ -44,6 +44,8 @@ def main():
        scanner.scan()
        scanner.gentypetest(SHORT+"typetest.py")
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 4ed2127be76542fa15b0832754cb43231838a965..5d84500d6eb6a8ba23989fe654cbd76cde49df40 100755 (executable)
@@ -22,6 +22,8 @@ def main():
        scanner.scan()
        scanner.gentypetest(SHORT+"typetest.py")
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index c846eb00af7b9c5d15a1003cdb021da4bb2c34c3..7ca15f24fb17ffbf509444977917c17ba321eceb 100644 (file)
@@ -16,6 +16,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index aac2cc44468615e8b9d55098a382a8ab95820272..25250091e3a8966fc6710f05445ee723736e2f87 100644 (file)
@@ -14,6 +14,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now doing 'import ctlsupport' ==="
        import ctlsupport
        print "=== Done.  It's up to you to compile Ctlmodule.c ==="
index 828fd540692193445e6cfbe9f6afe5733c92cba4..770d4d21892141e519f55f112e2cb1f6b6c2c879 100644 (file)
@@ -18,6 +18,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 1d62f6e70f4c76b6a4b5446cf1d924019c949174..e305e04bd580205fd70adf0b8f87873d231d2a47 100644 (file)
@@ -25,6 +25,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now doing 'import dragsupport' ==="
        import dragsupport
        print "=== Done.  It's up to you to compile Dragmodule.c ==="
index dcb9ee040de020e05072e0e56a1f95e274820201..0c0ff4948fbb65b9bd89dab86ba11434d3f5dafa 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 8deee504dd6cb0c419c0cecde8bd3880a3f9fb90..2364980bfc9ba0a4e4322af02868a3f0cc3a88f5 100644 (file)
@@ -16,6 +16,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index fdfd78028eb46fcaee49ae3f953505a18e71cf4d..67a7e53f596297442390b258f08cb44798fb10c2 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index ff2de327e356e7091dea496033ab162de0d46c9a..81f107c2b1b2d46e79e2680f236ea318f0329d7b 100644 (file)
@@ -19,6 +19,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index c0dea7e901825b52194f424486875e4d5f2eaffd..1f05217253f9d67d44d48434dc5de054e4ee5af6 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = IBCarbon_Scanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "--done scanning, importing--"
        import IBCarbonsupport
        print "done"
index 519d9e52e6226c1b7ec6dc09905df54d3fdc6d4e..6ed3108831e5ad5545fda8bdfb61d926d03ca482 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index d9638aa32adec1949aef801ac54be7ba1c05c972..d835a688bed712528b7093bc391f44d440f42c31 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 625e7ed71a69b245d660a0ac1d06c1dd6b690b78..60c691525f1cec39b337faadb13de691f5351ee7 100644 (file)
@@ -13,6 +13,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now doing 'import menusupport' ==="
        import menusupport
        print "=== Done.  It's up to you to compile Menumodule.c ==="
index e55f22270300ac24ef00a05df2449d714191f90d..980a98e97c693c535e5116da883513003b868d52 100644 (file)
@@ -19,6 +19,8 @@ def main():
        scanner.scan()
        scanner.gentypetest(SHORT+"typetest.py")
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 1258a303db14c2f69fb1f85453c2b4e95bc467a1..4c69ab054315af2daca72afd3f52300b2fc331d8 100644 (file)
@@ -40,6 +40,8 @@ def main():
                ifp.close()
                ofp.close()
                
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        import qdsupport
        print "=== Done.  It's up to you to compile it now! ==="
index b2b55b22fc5f03e006b36d5bf5175d9d4e50d1ac..ae7070777d2159776d70e65faee7ec9b0c60eb37 100644 (file)
@@ -13,6 +13,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        import qdoffssupport
        print "=== Done.  It's up to you to compile it now! ==="
index bcd16d91d9ea0abe5375ec6228ce0d8356d68173..3edf870b1ce5c67031b88745055ddfcf61b92dfa 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index cf4bcb136f420d98b52a5af7a32944984984c7b5..51bf38d4550e71eb9919bdd11f24e5acb4296099 100644 (file)
@@ -19,6 +19,8 @@ def main():
        scanner = ResourcesScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now doing 'import ressupport' ==="
        import ressupport
        print "=== Done 'import ressupport'.  It's up to you to compile Resmodule.c ==="
index dbb083b3643d72d1d27d12a40d9b1eaa0b846cff..b54d09d4f45050b5bb4035ca10e51d75ec93e7b5 100644 (file)
@@ -19,6 +19,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index fc665bb4bcda094cde5d74c16f9bb34d758a1285..fc358a047afaee9cef799ed776e828cf82dee9b8 100644 (file)
@@ -16,6 +16,8 @@ def main():
        scanner = SoundScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now doing 'import sndsupport' ==="
        import sndsupport
        print "=== Done.  It's up to you to compile Sndmodule.c ==="
index 5ad1f18ea776f56ed342677e82510c11cbad7764..ed37dbbe253dfcdc77c3346628a094b720dda927 100644 (file)
@@ -17,6 +17,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index d2f367dd54309a2e2f53138ff7aec6e42a8d666e..b0644ecf66fc9313e5034b41aa13b8a930c5a27f 100644 (file)
@@ -24,6 +24,8 @@ def main():
        scanner.scan()
 ##     scanner.gentypetest(SHORT+"typetest.py")
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        exec "import " + SHORT + "support"
        print "=== Done.  It's up to you to compile it now! ==="
index 0052fad60c0600d313b01a6e847e15336e63691c..06b421f830a744a2a72fbea79cf616bfb3117f4f 100644 (file)
@@ -13,6 +13,8 @@ def main():
        scanner = MyScanner(input, output, defsoutput)
        scanner.scan()
        scanner.close()
+       print "=== Testing definitions output code ==="
+       execfile(defsoutput, {}, {})
        print "=== Done scanning and generating, now importing the generated code... ==="
        import winsupport
        print "=== Done.  It's up to you to compile it now! ==="