Change behavior. (require racket-makefile) and use (make <target>) instead of racket Makefile.rkt <target>
This commit is contained in:
+3
-3
@@ -32,18 +32,18 @@
|
||||
(list (list "result.txt"))
|
||||
void)
|
||||
|
||||
(run-selected-target!)
|
||||
(make-targets!)
|
||||
(check-equal? build-count 1)
|
||||
(check-true (file-exists? "result.txt"))
|
||||
|
||||
;; Nothing changed, so the file target remains up to date.
|
||||
(run-selected-target!)
|
||||
(make-targets!)
|
||||
(check-equal? build-count 1)
|
||||
|
||||
;; Make the input newer than the output and verify that it rebuilds.
|
||||
(define result-time (file-or-directory-modify-seconds "result.txt"))
|
||||
(file-or-directory-modify-seconds "input.txt" (+ result-time 2))
|
||||
(run-selected-target!)
|
||||
(make-targets!)
|
||||
(check-equal? build-count 2)))
|
||||
(lambda ()
|
||||
(delete-directory/files tmp #:must-exist? #f)))
|
||||
|
||||
Reference in New Issue
Block a user