caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Robert Soulé" <soule@cs.cornell.edu>
To: caml-list@inria.fr
Subject: [Caml-list] OASIS help
Date: Wed, 6 Nov 2013 11:09:39 -0500	[thread overview]
Message-ID: <CAFwK7-eyXP2drZ7wz6b2BQsycnVvZuYTJY7vUB0zX3ME17acxw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Hello,

I am trying to create an _oasis file with a Test section. My test will
call an executable that is built in an Executable section. The test
executable links agains links against my project library, which uses
some c code. My oasis file is attached.

When I run "oasis setup" and then "make", everything works fine. I see
Test.native in my directory, as I would expect.

However, I run into problems when I run "make test":

$ ocaml setup.ml -test
W: Tests are turned off, consider enabling with 'ocaml setup.ml
-configure --enable-tests'

$ ocaml setup.ml -configure --enable-tests
ocamlfind: Package `with-c' not found
W: Field 'pkg_with_c' is not set: Command
''/Users/soule/.opam/4.00.1/bin/ocamlfind' query -format %d with-c >
'/var/folders/q1/hc432vx951b6dlfrvybzm4d40000gn/T/oasis-c91777.txt''
terminated with error code 2
E: Cannot find findlib package with-c
E: Failure("1 configuration error")

Is there an extra Field I need to add in the Test section if I am
running an executable that links against C code?

thank you,
Robert

[-- Attachment #2: _oasis --]
[-- Type: application/octet-stream, Size: 281 bytes --]

Executable test
 Install: false
 Build$: flag(is_native)
 Path:       test
 MainIs:     Test.ml
 CompiledObject: native
 BuildDepends:
   oUnit,
   pa_ounit,
   pa_ounit.syntax,
   mylibwithc

Test all_tests
  Type: Custom (0.0.1)
  Command: $test
  Run: true
  TestTools: test




             reply	other threads:[~2013-11-06 16:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 16:09 Robert Soulé [this message]
2013-11-10 21:08 ` Sylvain Le Gall
2015-02-10 12:58 [Caml-list] oasis help Jiten Pathy
2015-02-10 13:19 ` Jeremie Dimino
2015-02-10 14:07   ` Jiten Pathy
2016-11-10  9:08 [Caml-list] OASIS help Laurent Thévenoux
     [not found] <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr>
2016-11-10  9:27 ` Francois BERENGER
2016-11-10  9:49   ` Laurent Thévenoux
2016-11-10  9:52     ` Francois BERENGER
2016-11-11 10:52       ` Bikal Gurung

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=CAFwK7-eyXP2drZ7wz6b2BQsycnVvZuYTJY7vUB0zX3ME17acxw@mail.gmail.com \
    --to=soule@cs.cornell.edu \
    --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;
as well as URLs for NNTP newsgroup(s).