From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IDscKV/KHl/CLQAA0tVLHw (envelope-from ) for ; Mon, 27 Jul 2020 12:36:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GIAGJV/KHl8cCgAAB5/wlQ (envelope-from ) for ; Mon, 27 Jul 2020 12:36:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4DBF9401AE for ; Mon, 27 Jul 2020 12:36:46 +0000 (UTC) Received: from localhost ([::1]:52078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k02N3-0006hn-DZ for larch@yhetil.org; Mon, 27 Jul 2020 08:36:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k02MX-0006fX-9r for emacs-orgmode@gnu.org; Mon, 27 Jul 2020 08:36:13 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:40661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k02MV-00088o-1S for emacs-orgmode@gnu.org; Mon, 27 Jul 2020 08:36:12 -0400 Received: by mail-qk1-x731.google.com with SMTP id h7so14988458qkk.7 for ; Mon, 27 Jul 2020 05:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lrde-epita-fr.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=141LzL9x4FRwHK9OOdirYL4j8qyzFX/1Yuw5thgwTfc=; b=VOhojC+PJwnMrpG0bRnbEAx3TA6ROsYOKRm2aiivzyQQCWVDeeJUcwx9IDpBWT9qrr Z5JNmGl0P2yrenoRmrXf+a8mafc7RUdirPYj5J2r6NkuPm2nWSSrm7Q6TsaGnybx8QWg zGQXe2wBvQ0YphPP0L6GztKLESczlgaj93ns7qmN0gZzovYsgXr6gI6SU53cQFU1MXUc 6njPLzf7iLmFGuZgh1oSN9qYRQGepNDKRwHzRTjoVMYi22NZ9Ws5Crnu291ufSgieeUP fUGP6cfpGZMaHlahog75RPDXoie2eiz5EOsRxWVHfbPDFXyJmiviRAkX9Y8AjzFufjHx ayxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=141LzL9x4FRwHK9OOdirYL4j8qyzFX/1Yuw5thgwTfc=; b=AGh6dG47JesfxdECstznGOUPZAaU40LCNb2vuWaIXpYutuRxGbo4SkaFc+nh3Anxec Shty1QV7x0dC6w56uM0FKoOoMN2k6dJkdGUVnF/QVkK5x2Pp6Og/31QzGdsFF0Sn4kuX fnZXpp2QgmXZlbI58ztvFHtv9A+o/9KpCaIatjMaHP6LXPnUALKEVH65mBdy4j97Pq3R ikxqODbuXPTurjxH3Krxr5BhlDdBm417lAhy0Z/PDEVTBVtkqAjZ7uhk0A0+RMdptvsg LVc2Kgbedhofbj8lxC/0CchuPc538mRpk/KFAx27IaKsYqgHVinLjztvLUwt7bK5gVKD OIRQ== X-Gm-Message-State: AOAM5332G6CKYAWJ3Dj7qu0SL5WonfUyRl3E/OmPaUFhRCqoA0Zcog/i HFVtUDsAhmXpQVqv2LQ9cBwBxYXfjLD2KcK03UTLlTqDEx4= X-Google-Smtp-Source: ABdhPJxONarBT77QEw7FYRtPy77BHEcw5Rm17m9jNSoY9GCCitwguqa/WYwBoL6tfSw9f9jysvHAgHg3QtU/JG7uEas= X-Received: by 2002:a05:620a:13c4:: with SMTP id g4mr23037666qkl.142.1595853369251; Mon, 27 Jul 2020 05:36:09 -0700 (PDT) MIME-Version: 1.0 From: Alexandre Duret-Lutz Date: Mon, 27 Jul 2020 14:35:58 +0200 Message-ID: Subject: diagnosing SRC blocks with different output on export To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=aduret@gmail.com; helo=mail-qk1-x731.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lrde-epita-fr.20150623.gappssmtp.com header.s=20150623 header.b=VOhojC+P; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: Iah/DBMa0hw8 Hi, Is there a way to mark certain SRC blocks such that if evaluating them during export produces a result different from the one stored in the file, then the export process aborts with an error? I'm using org-mode to document an automaton library, and use org-babel block to run some examples and have their output automatically recomputed when the library is improved. However, some examples expect some specific automata to be produced, maybe because I discuss some particularities of that example automaton in the text ; if an update of the library causes this to change, I need to detect that change to adjust all the text around it in the documentation, or find a better exemple. So I'd like org-mode to signal me that my expected result is non-longuer what is produced by causing the export (and therefore my build) to fail. Can this be achieved already? Reading https://orgmode.org/manual/Results-of-Evaluation.html it seems like I'd like I'm asking for a new form of handling. Something like "compare" instead of "replace". Best regards -- Alexandre Duret-Lutz