1
0
forked from alex-eg/sex

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:
2026-10-20 11:51:31 +03:00
parent ab881e4c31
commit 600b4801de
8 changed files with 126 additions and 91 deletions

View File

@@ -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"