English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlbuild: simplification of invocation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-16 (09:07)
From: Renald Buter <buter@c...>
Subject: ocamlbuild: simplification of invocation

I'm not sure if this is the right forum to ask this question, but I'll 
post it anyway :)

Hello list,

I have a simple test setup that I'd like to build with ocamlbuild:

  open OUnit

  let test_failure _ = assert_failure "failed"

  let test_suite = "Setup" >::: [
      "failure" >:: test_failure

  let _ = run_test_tt_main test_suite

To build this, I have to enter:

  ocamlbuild -cflags -I,+oUnit -lflags -I,+oUnit -libs unix,oUnit 

Now, is there any way of simplifying this? I've tried looking into the 
tags for the _tags file, but got confused...

With kind regards,

Renald Buter

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.