Improve copy_files test for c files to make sure source is tracked

This commit is contained in:
Rudi Grinberg 2017-12-22 11:57:16 +08:00 committed by David Allsopp
parent 5901d7dee3
commit f365e8f157
2 changed files with 8 additions and 0 deletions

View File

@ -12,3 +12,8 @@
(executable
((name test)
(libraries (foo))))
(alias
((name bar-source)
(deps (bar.h))
(action (echo "${read:bar.h}"))))

View File

@ -10,3 +10,6 @@
ocamlmklib dllfoo_stubs.so,libfoo_stubs.a
ocamlopt test.{cmx,o}
ocamlopt test.exe
$ $JBUILDER build -j1 @bar-source --root .
#line 1 "include/bar.h"
int foo () {return 42;}