fix raco exe' for
module+' submodules
Closes PR 13116
Merge to v5.3.1
original commit: e1a6d2b07d
This commit is contained in:
parent
639af63b3f
commit
5eaf286081
7
collects/tests/racket/embed-me20.rkt
Normal file
7
collects/tests/racket/embed-me20.rkt
Normal file
|
@ -0,0 +1,7 @@
|
|||
#lang racket/base
|
||||
|
||||
;; like "embed-me16.rkt" using `module+'
|
||||
(module+ main
|
||||
(with-output-to-file "stdout"
|
||||
(lambda () (printf "This is 20.\n"))
|
||||
#:exists 'append))
|
|
@ -288,6 +288,14 @@
|
|||
(path->string (build-path (collection-path "tests" "racket") "embed-me16.rkt")))
|
||||
(try-exe (mk-dest mred?) "This is 16.\n" mred?)
|
||||
|
||||
;; raco exe on a module with a `main' submodule+
|
||||
(system* raco
|
||||
"exe"
|
||||
"-o" (path->string (mk-dest mred?))
|
||||
(if mred? "--gui" "--")
|
||||
(path->string (build-path (collection-path "tests" "racket") "embed-me20.rkt")))
|
||||
(try-exe (mk-dest mred?) "This is 20.\n" mred?)
|
||||
|
||||
;;raco exe --launcher
|
||||
(system* raco
|
||||
"exe"
|
||||
|
|
Loading…
Reference in New Issue
Block a user