check sexc's command line on a sexc process
The -- split, the -o - spelling and the dependency rule were exported to be unit tested, as lists and strings sexc might never hand on; a stand-in cc and the depfile show what it does hand on.
This commit is contained in:
@@ -72,6 +72,14 @@
|
||||
(irregex-match ".*/greet-app: greet-app\\.sex .*/greet\\.sex .*/ledger\\.sex"
|
||||
(call-with-input-file (built "greet-app.d") read-line)))
|
||||
|
||||
;;; Each module has a rule of its own, so make takes one deleted since as
|
||||
;;; out of date rather than as a file it has no rule to make
|
||||
(test "and gives each a rule of its own"
|
||||
'("greet.sex:" "ledger.sex:")
|
||||
(filter-map (lambda (line)
|
||||
(and (irregex-match ".*\\.sex:" line) (pathname-strip-directory line)))
|
||||
(call-with-input-file (built "greet-app.d") read-lines)))
|
||||
|
||||
(test "the app runs through both"
|
||||
'("hello, world"
|
||||
"hello, sex"
|
||||
|
||||
Reference in New Issue
Block a user