sionescu / iolib

Common Lisp I/O library
http://common-lisp.net/project/iolib/
MIT License
141 stars 31 forks source link

Tweak to take advantage of asdf pathname services #43

Closed fare closed 7 years ago

fare commented 7 years ago

Some tweaks for the build & test infrastructure:

In tests/streams.lisp, you could have:

(defvar *data-dir* (asdf:system-relative-pathname "iolib" "tests/data/"))

(defvar *test-dir*
  (asdf:apply-output-translations
   (asdf:system-relative-pathname "iolib" "tests/test-dir/")))

(You could also use (uiop:subpathname (uiop:current-lisp-file) "test-dir/") but that isn't as nice in this context.)

sionescu commented 7 years ago

Thanks, fix committed.