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:
David Allsopp 2017-12-15 15:13:57 +00:00
parent 9d3c0b649c
commit 5901d7dee3
4 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1 @@
#include "bar.h"

View File

@ -0,0 +1 @@
int foo () {return 42;}

View File

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

View File

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