]> hydra-www.ietfng.org Git - dyna2/commit
Overhaul pipeline and self-tests (╯°□°)╯︵ ┻━┻
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 20 Dec 2012 05:06:55 +0000 (00:06 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 20 Dec 2012 05:35:31 +0000 (00:35 -0500)
commitef5ac8c2c19b06c5edfd8fa8a6d035202bc208d9
tree946ed6eba5a900764fb969b2688d1993efb811f9
parent2fca3b98700c43ee2b886ec58a42e089ecd5829e
Overhaul pipeline and self-tests (╯°□°)╯︵ ┻━┻

This moves us to the much more pleasant position of having one main driver
(in Dyna.Main.Driver) which runs the (common) analysis workers and then
hands off to a user-specified backend (though the interface of
Dyna.Main.BackendDefn).  Along the way, we can dump (to stderr or to files)
things we might care about.

Move the python interpreter and debugging tool over to the new pipeline
driver.  While doing that, add a "ghcbuild" target to the Makefile that may
behave better than the cabal-istic build mechanism for older GHCs than the
one on my machine.

Add a Python backend selftest module which compares us against "golden"
files in examples/expected/; they are named ".py.out" on the chance that we
get similar golden files for other backends eventually.  Wire this in to the
main test harness on the "simple" and "papa2" examples.

While here, move the test harness out of Dyna.Test to Dyna.Main.TestsDriver,
update the README, and move it to Markdown.

┬──┬ ノ( ゜-゜ノ)
20 files changed:
.gitignore
Makefile
README [deleted file]
README.md [new file with mode: 0644]
bin/interpreter.py
bin/prototype.py
bin/utils.py
dyna.cabal
examples/expected/papa2.py.out [new file with mode: 0644]
examples/expected/simple.py.out [new file with mode: 0644]
src/Dyna/Analysis/RuleMode.hs
src/Dyna/Backend/Debugging.hs [deleted file]
src/Dyna/Backend/Python.hs
src/Dyna/Backend/Python/Selftest.hs [new file with mode: 0644]
src/Dyna/Main/BackendDefn.hs [new file with mode: 0644]
src/Dyna/Main/Driver.hs [new file with mode: 0644]
src/Dyna/Main/Exception.hs
src/Dyna/Main/TestsDriver.hs [new file with mode: 0644]
src/Dyna/Test/Main.hs [deleted file]
src/Dyna/Test/Main2.hs [deleted file]