Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
7b85c61b
by Elias Pipping at 2016-10-03T01:05:41+00:00
-
59328877
by Raymond Toy at 2016-10-03T02:52:35+00:00
6 changed files:
- tests/issues.lisp
- + tests/resources/mr.15/dir/file-in-dir
- + tests/resources/mr.15/file
- + tests/resources/mr.15/link-to-dir
- + tests/resources/mr.15/link-to-dir-in-dir
- + tests/resources/mr.15/link-to-file
Changes:
... | ... | @@ -12,6 +12,12 @@ |
12 | 12 |
(declare (ignore arg))
|
13 | 13 |
form)
|
14 | 14 |
|
15 |
(defparameter *test-path*
|
|
16 |
(merge-pathnames (make-pathname :name :unspecific :type :unspecific
|
|
17 |
:version :unspecific)
|
|
18 |
*load-truename*)
|
|
19 |
"Directory for temporary test files.")
|
|
20 |
|
|
15 | 21 |
(define-test issue.1.a
|
16 | 22 |
(:tag :issues)
|
17 | 23 |
(assert-equal
|
... | ... | @@ -321,3 +327,23 @@ |
321 | 327 |
(assert-error 'kernel:simple-program-error
|
322 | 328 |
(ext:run-program "cat" nil
|
323 | 329 |
:before-execve t)))
|
330 |
|
|
331 |
(define-test mr.15
|
|
332 |
(:tag :issues)
|
|
333 |
(let (directories files)
|
|
334 |
(dolist (entry (directory (merge-pathnames "resources/mr.15/*.*" *test-path*)
|
|
335 |
:check-for-subdirs t
|
|
336 |
:follow-links nil
|
|
337 |
:truenamep nil))
|
|
338 |
(let ((filename (pathname-name entry))
|
|
339 |
(directory (first (last (pathname-directory entry)))))
|
|
340 |
(if filename
|
|
341 |
(push filename files)
|
|
342 |
(push directory directories))))
|
|
343 |
(assert (null (set-difference files
|
|
344 |
'("file" "link-to-dir"
|
|
345 |
"link-to-dir-in-dir" "link-to-file")
|
|
346 |
:test #'string-equal)))
|
|
347 |
(assert (null (set-difference directories
|
|
348 |
'(".dir" "dir")
|
|
349 |
:test #'string-equal)))))
|
1 |
dir
|
|
\ No newline at end of file |
1 |
dir/dir-in-dir
|
|
\ No newline at end of file |
1 |
file
|
|
\ No newline at end of file |