Skip to content
test-static-and-serial.script 897 B
Newer Older
;;; -*- Lisp -*-
(in-package :asdf-test)
#+gcl (trace coerce-pathname)
 (format t "dpd: ~S~%f1: ~S~%" *default-pathname-defaults* (asdf::merge-pathnames* "file1"))
 (setf asdf:*central-registry* '(*default-pathname-defaults*))
 (asdf:operate 'asdf:load-op 'static-and-serial)
 (let* ((file1 (asdf:compile-file-pathname* "file1.lisp"))
        (file1-date (file-write-date file1))
        (date1 (- file1-date 600))
        (date2 (- file1-date 300))
        (date3 (- file1-date 150)))

   (format t "file: ~S~%date: ~S~%" file1 file1-date)
   (asdf:clear-system 'static-and-serial)
   (touch-file "file2.lisp" date1)
   (touch-file "file1.lisp" date2)
   (touch-file file1 date3)
   (asdf:operate 'asdf:load-op 'static-and-serial)
   (assert (equal (file-write-date file1) date3))))