Update copy_files blackbox test to include C
Tests that the the directive emits #line instead of #n. Signed-off-by: David Allsopp <david.allsopp@metastack.com>
This commit is contained in:
parent
9d3c0b649c
commit
5901d7dee3
|
@ -0,0 +1 @@
|
|||
#include "bar.h"
|
|
@ -0,0 +1 @@
|
|||
int foo () {return 42;}
|
|
@ -1,6 +1,14 @@
|
|||
(jbuild_version 1)
|
||||
|
||||
(copy_files# lexers/*.ml{,i})
|
||||
(copy_files# include/bar.h)
|
||||
|
||||
(executables
|
||||
((names (test))))
|
||||
(library
|
||||
((name foo)
|
||||
(c_names (bar))
|
||||
(modules ())
|
||||
(wrapped false)))
|
||||
|
||||
(executable
|
||||
((name test)
|
||||
(libraries (foo))))
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
$ $JBUILDER build -j1 test.exe .merlin --root . --debug-dependency-path
|
||||
ocamllex lexers/lexer1.ml
|
||||
ocamldep test.depends.ocamldep-output
|
||||
ocamldep foo.depends.ocamldep-output
|
||||
ocamlc lexer1.{cmi,cmo,cmt}
|
||||
ocamlc bar.o
|
||||
ocamlopt foo.{a,cmxa}
|
||||
ocamlopt lexer1.{cmx,o}
|
||||
ocamlc test.{cmi,cmo,cmt}
|
||||
ocamlmklib dllfoo_stubs.so,libfoo_stubs.a
|
||||
ocamlopt test.{cmx,o}
|
||||
ocamlopt test.exe
|
||||
|
|
Loading…
Reference in New Issue