mte/unikernel/duniverse/ppxlib/test/driver/stdin_input/test.t/run.t

21 lines
425 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
The driver can read from stdin.
It works with sources...
$ ../identity_driver.exe -impl - << EOF
> let a = 1
> EOF
let a = 1
... but it should also work with binary ASTs.
We generate a binary AST file...
$ ../identity_driver.exe --dump-ast -o binary_ast -impl - << EOF
> let b = 2
> EOF
... and ensure the driver can also read it from stdin
$ cat binary_ast | ../identity_driver.exe -impl -
let b = 2