add depends
This commit is contained in:
parent
473954be07
commit
49b7a37597
126 changed files with 6991 additions and 8425 deletions
9
test/virtual/dir.ml
Normal file
9
test/virtual/dir.ml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
let config =
|
||||
match Fpath.of_string "./" with
|
||||
| Error (`Msg e) -> failwith e
|
||||
| Ok v -> Some v
|
||||
|
||||
let data =
|
||||
match Bos.OS.Dir.current () with
|
||||
| Error (`Msg e) -> failwith e
|
||||
| Ok current -> Some current
|
||||
44
test/virtual/dune
Normal file
44
test/virtual/dune
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
(library
|
||||
(name config_test)
|
||||
(modules config)
|
||||
(implements config)
|
||||
(libraries uri fpath))
|
||||
|
||||
(library
|
||||
(name config_serv_test)
|
||||
(modules config_serv)
|
||||
(implements config_serv)
|
||||
(libraries uri fpath))
|
||||
|
||||
(library
|
||||
(name dir_test)
|
||||
(modules dir)
|
||||
(implements dir)
|
||||
(libraries fpath directories bos))
|
||||
|
||||
(executable
|
||||
(name make_config_test)
|
||||
(modules make_config_test)
|
||||
(libraries
|
||||
dir_test ; implements virtual module
|
||||
make_config_lib ; virtual lib
|
||||
fmt
|
||||
uri
|
||||
fpath
|
||||
bos
|
||||
scfg))
|
||||
|
||||
(rule
|
||||
(copy ../config.scfg ./config.scfg))
|
||||
|
||||
; todo fix "does not exists" on clean build
|
||||
|
||||
(rule
|
||||
(with-stdout-to
|
||||
config.ml
|
||||
(run ./make_config_test.exe --config)))
|
||||
|
||||
(rule
|
||||
(with-stdout-to
|
||||
config_serv.ml
|
||||
(run ./make_config_test.exe --config-serv)))
|
||||
1
test/virtual/make_config_test.ml
Normal file
1
test/virtual/make_config_test.ml
Normal file
|
|
@ -0,0 +1 @@
|
|||
include Make_config_lib
|
||||
Loading…
Add table
Add a link
Reference in a new issue