From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id F0C357EE51 for ; Wed, 15 May 2013 03:04:26 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.176 as permitted sender) identity=mailfrom; client-ip=134.160.33.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.176 as permitted sender) identity=helo; client-ip=134.160.33.176; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlYCAEzeklGGoCGwgGdsb2JhbABQCoM+wDKBGA4BAQsUBz6CHwEBBThAARALGAkWDwkDAgECAUUGDQEFAgEBiAgMvTKNYoE8B4NVA4kdjheBKIR0jj8 X-IPAS-Result: AlYCAEzeklGGoCGwgGdsb2JhbABQCoM+wDKBGA4BAQsUBz6CHwEBBThAARALGAkWDwkDAgECAUUGDQEFAgEBiAgMvTKNYoE8B4NVA4kdjheBKIR0jj8 X-IronPort-AV: E=Sophos;i="4.87,674,1363129200"; d="scan'208";a="17463219" Received: from postman4.riken.jp (HELO postman.riken.jp) ([134.160.33.176]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 May 2013 03:04:25 +0200 Received: from postman.riken.jp (postman4.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 6777A828093; Wed, 15 May 2013 10:04:21 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id E5F3B7F803F; Wed, 15 May 2013 10:04:20 +0900 (JST) Message-ID: <5192DF14.4080409@riken.jp> Date: Wed, 15 May 2013 10:04:20 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Sylvain Le Gall CC: caml-list References: <5191BBC4.1040402@riken.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.5.15.5116 Subject: [Caml-list] Re: oasis help: support for qtest in oasis On 05/14/2013 07:27 PM, Sylvain Le Gall wrote: > 2013/5/14 Francois Berenger : >> Hello, >> >> Is there some way to plug qtest into >> an oasis-managed project? >> >> My current problem is that qtest >> generates the main.ml (for example) file to run the tests >> and I don't want to add this file under VC >> so oasis should allow me to run a command >> to create this file before it is compiled. > > I don't know how qtest works, but I would say, that you should use > PreBuildCommand > http://oasis.forge.ocamlcore.org/MANUAL.html#package > This is a toplevel field and you can surround it with conditional: > > if flag(tests) > PreBuildCommand: foo-bar --output main.ml > > Is this what you want ? It looks perfect, just by looking at its name. I'll give it a try. Thanks a lot, F. PS: I looked in the oasis doc but was not able to identify this one