List Info

Thread: Add --image-file option to gst-load and gst-sunit




Add --image-file option to gst-load and gst-sunit
country flaguser name
Switzerland
2007-06-01 01:33:49
This option obviously cannot be implemented in the same file
as 
scripts/Load.st and scripts/Test.st, because it must be
passed to gst 
directly as -I.  So we need to make gst-load and gst-sunit a
different 
script than the Load.st and Test.st files.

I chose to write a shell script, but with a nice
command-line parser 
written in Smalltalk (about 15 lines of code!).

In addition, I added a --test option to gst-load, so that
you can avoid 
loading the package if the testsuite fails.  In theory, this
could be 
implemented within scripts/Load.st, but in the future we'll
support 
running the testsuite *without putting it in the saved
image*; so I've 
already implemented it outside scripts/Load.st.

Paolo

_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )