Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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.