Skip to content

Commit

Permalink
After generating the Python file with definitions try to run it, so
Browse files Browse the repository at this point in the history
we catch errors during the build process in stead of later during runtime.
  • Loading branch information
jackjansen committed Aug 15, 2002
1 parent 8120415 commit 87eea88
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mac/Modules/ae/aescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/app/appscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/carbonevt/CarbonEvtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/cf/cfscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/cg/cgscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/cm/cmscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/ctl/ctlscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/dlg/dlgscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/drag/dragscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/evt/evtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/fm/fmscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/help/helpscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/htmlrender/htmlscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/ibcarbon/IBCarbonscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/icn/icnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/list/listscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/menu/menuscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/mlte/mltescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/qd/qdscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/qdoffs/qdoffsscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/qt/qtscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/res/resscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/scrap/scrapscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/snd/sndscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/te/tescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/waste/wastescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down
2 changes: 2 additions & 0 deletions Mac/Modules/win/winscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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! ==="
Expand Down

0 comments on commit 87eea88

Please sign in to comment.