automated testing with CL & darcs
I spent a good chunk of today trying to get darcs to run my unit tests automatically. I haven\’t actually gotten it right yet, but at least I have it running the tests before each commit (even if the commit happens regardless).
I set up the auto-testing with darcs setpref test \"chmod +x test/run-tests; test/run-tests\". test/run-tests is the test script, but darcs doesn\’t allow you to add executable files to the repository, so you have to run chmod on the script before it can actually be executed.
Here\’s the test script itself:
What it should be doing is running the tests, and returning non-zero on failure. It runs the tests, but the failure bit isn\’t exactly happening yet.
I figured I\’d throw this out there and see if anyone else has a decent way of getting automated testing happening. The more I try to bridge between Lisp and Unix, the more I just want to live in a Lisp REPL.

October 21st, 2007 at 23:45
Have you considered switching to git?
October 22nd, 2007 at 10:48
I actually meant to mention that in the post. I do plan to use git on any new projects. I don’t know if it’s available for common-lisp.net projects yet, though.
October 23rd, 2007 at 11:51
Unfortunately, Git is not yet installed on c-l.net. There is a consensus to install it, but nobody with the permissions has had the time.
October 23rd, 2007 at 18:07
One of the issues you are running against is the fact that the asdf:test-op doesn’t have a nice means of returning answers to you to tell you if the test was passed or not. You might suggest modifying ASDF to make this possible (you can find the ASDF maintainers on cclan-list).