<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As shown in my last message:<div><br></div><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; ">bash-3.2$ test/run-tests.sh lwm64</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; "><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px; "><font class="Apple-style-span" color="#F61D20">(load "test/compile-asdf.lisp") <<---- AHA! Wrong!</font></span></font></div><div><font class="Apple-style-span" color="#F61D20" face="Courier"><br></font></div><div><font class="Apple-style-span" color="#F61D20" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">The first argument is the name of my binary "lwm64" which was created to present a shell interface, no IDE. It is otherwise a bare LWM image with no extra features added.</font></div><div><font class="Apple-style-span" color="#F61D20" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">When LWM64 loads up, it assumes the working directory that was in effect in the shell at the time the command was invoked. So to run the test script properly, (according to your -eval argument) we have to be in the directory above the test subdirectory when the LWM64 is invoked.</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">But again... the argument to LWM must be a *Lisp String* following the -eval command line argument. And that probably accounts for some of the problem. How you quote a string argument in a shell script is another problem...</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">- DM</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><div>On Feb 27, 2010, at 17:13 PM, Faré wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>What is your first argument to run-tests.sh?<br>Did you modify run-tests.sh to support it? See the case "$lisp" statement.<br><br>Please pull the latest git, it has some additional sanity checking.<br><br>[ François-René ÐVB Rideau | Reflection&Cybernethics | <a href="http://fare.tunes.org">http://fare.tunes.org</a> ]<br>The problem with most conspiracy theories is that they seem to believe that<br>for a group of people to behave in a way detrimental to the common good<br>requires intent.<br><br>The problem with most statist theories is that they seem to believe that<br>for a group of people to behave in a way beneficial to the common good<br>requires intent.<br><br><br><br><br><br>On 27 February 2010 19:02, David McClain <<a href="mailto:dbm@refined-audiometrics.com">dbm@refined-audiometrics.com</a>> wrote:<br><blockquote type="cite">Ahhh... yes, in doing my manual test, I discovered that the submitted -eval<br></blockquote><blockquote type="cite">argument needs to be a string.<br></blockquote><blockquote type="cite">Furthermore, when I modify your script with 'echo' so that I can examine<br></blockquote><blockquote type="cite">what is being performed, here are the results:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">;; Script as modified in the 4th line..<br></blockquote><blockquote type="cite">do_tests() {<br></blockquote><blockquote type="cite"> command=$1 eval=$2 fasl_ext=$3<br></blockquote><blockquote type="cite"> rm -f *.$fasl_ext ~/.cache/common-lisp/"`pwd`"/*.$fasl_ext || true<br></blockquote><blockquote type="cite"> ( cd .. && echo $command $eval "(load \"test/compile-asdf.lisp\")" )<br></blockquote><blockquote type="cite"> if [ $? -eq 0 ] ; then<br></blockquote><blockquote type="cite"> echo "Compiled OK"<br></blockquote><blockquote type="cite"> test_count=0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">bash-3.2$ test/run-tests.sh lwm64<br></blockquote><blockquote type="cite">(load "test/compile-asdf.lisp") <<---- AHA! Wrong!<br></blockquote><blockquote type="cite">Compiled OK<br></blockquote><blockquote type="cite">Testing: *.script<br></blockquote><blockquote type="cite">test/run-tests.sh: line 69: (load "*.script"): command not found<br></blockquote><blockquote type="cite">Using , *.script failed<br></blockquote><blockquote type="cite">-#---------------------------------------<br></blockquote><blockquote type="cite">Using<br></blockquote><blockquote type="cite">Ran 1 tests:<br></blockquote><blockquote type="cite"> 0 passing and 1 failing<br></blockquote><blockquote type="cite">failing test(s): *.script<br></blockquote><blockquote type="cite">-#---------------------------------------<br></blockquote><blockquote type="cite">bash-3.2$<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So $command, $eval, and $fasl_ext must not be getting set properly<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Feb 27, 2010, at 16:54 PM, David McClain wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Guys,<br></blockquote><blockquote type="cite">I don't have a problem dealing with LW. But I want to have them work on<br></blockquote><blockquote type="cite">things that are within their purview.<br></blockquote><blockquote type="cite">The script problem is being reported by Bash, not LWM. The environment is<br></blockquote><blockquote type="cite">Mac OS X 10.6.2 (Snow Leopard).<br></blockquote><blockquote type="cite">I can invoke LWM from a command line just fine, including passing an initial<br></blockquote><blockquote type="cite">SExpr for eval. Here is a direct example, performed in Emacs in Shell mode:<br></blockquote><blockquote type="cite">bash-3.2$ lwm64 -siteinit - -init - -eval "(print :hello)"<br></blockquote><blockquote type="cite">LispWorks(R): The Common Lisp Programming Environment<br></blockquote><blockquote type="cite">Copyright (C) 1987-2009 LispWorks Ltd. All rights reserved.<br></blockquote><blockquote type="cite">Version 6.0.0<br></blockquote><blockquote type="cite">Saved by dbmcclain as lwm64, at 27 Feb 2010 6:37<br></blockquote><blockquote type="cite">User dbmcclain on RoadKill.local<br></blockquote><blockquote type="cite">:HELLO<br></blockquote><blockquote type="cite">CL-USER 1 ><br></blockquote><blockquote type="cite">So the problem is one of the script in getting Bash to properly interpret<br></blockquote><blockquote type="cite">the synthesized command.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dr. David McClain<br></blockquote><blockquote type="cite"><a href="mailto:dbm@refined-audiometrics.com">dbm@refined-audiometrics.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">asdf-devel mailing list<br></blockquote><blockquote type="cite"><a href="mailto:asdf-devel@common-lisp.net">asdf-devel@common-lisp.net</a><br></blockquote><blockquote type="cite"><a href="http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel">http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dr. David McClain<br></blockquote><blockquote type="cite"><a href="mailto:dbm@refined-audiometrics.com">dbm@refined-audiometrics.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">asdf-devel mailing list<br></blockquote><blockquote type="cite"><a href="mailto:asdf-devel@common-lisp.net">asdf-devel@common-lisp.net</a><br></blockquote><blockquote type="cite"><a href="http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel">http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-devel</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>Dr. David McClain</div><div><a href="mailto:dbm@refined-audiometrics.com">dbm@refined-audiometrics.com</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>