From: Yann Hamdaoui <yann.hamdaoui@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Oasis strange behavior
Date: Thu, 22 Sep 2016 23:37:09 +0200 [thread overview]
Message-ID: <e59e3c89-a7d9-ec66-4f96-254c7c5b4996@gmail.com> (raw)
Dear list,
I have a small toy library that I used to build using oasis, and
everything worked fine. But after I tried to add a test section for unit
testing and modify the _oasis file accordingly (I hadn't touched it for
a few months), I face a rather strange behavior : setup.ml doesn't
complain but doesn't build anything. After some investigation, it seems
that oasis only take into account the last section of my file _oasis.
If I do :
[...]
OASISFormat: 0.4
BuildTools: ocamlbuild
Plugins: META (0.4), DevFiles (0.4)
Library "mechaml"
Path: src
Modules: Agent, Page, Cookiejar
InternalModules: Infix
BuildDepends: lambdasoup, lwt, cohttp, cohttp.lwt, uri
Executable "unit_tests"
Build$: flag(tests)
Path: test
MainIs: test.ml
BuildDepends: oUnit, mechaml
Test "unit"
Command: $unit_test
WorkingDirectory: test
SourceRepository "master"
Type: git
Location: https://github.com/yannham/mechaml.git/
Branch: master
Browser: https://github.com/yannham/mechaml
Then nothing get built (after configure and build executed succesfully)
and I have :
%oasis query ListSections
SrcRepo(master)
%
Like I only have one section of the source repository.
If I comment out the last three sections (so that only Library remains),
then the library is built as before. If I comment the two last sections,
query only gives "Executable(unit_tests)" and if I try configure, the
script complains that the package "mechaml" doesn't exist, so the
section Library is indeed thrown.
I have the same behavior with an _oasis file generated automatically by
oasis quickstart. Does anybody have the same issue ? Am i doing
something wrong ?
I run oasis version 0.4.7 with compiler switch 4.03.0+flambda
next reply other threads:[~2016-09-22 21:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 21:37 Yann Hamdaoui [this message]
2016-09-23 5:24 ` Simon Cruanes
2016-09-23 14:47 ` Hendrik Boom
2016-09-26 2:20 ` Boutillier, Pierre
2016-09-28 18:30 ` Ivan Gotovchits
2016-09-28 20:24 ` Yann Hamdaoui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e59e3c89-a7d9-ec66-4f96-254c7c5b4996@gmail.com \
--to=yann.hamdaoui@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox