From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QNDLN/1C8GX0DgEA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 12:56:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QNDLN/1C8GX0DgEA62LTzQ (envelope-from ) for ; Tue, 12 Mar 2024 12:56:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LuigWUx4; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710244605; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2pYuz9yp1nNlSaR49WdHZlXdBnhjvK79vi8n6whO3II=; b=pBE5GCfPFEUVDNV8l0CThDReD7YIEoXolwSIx2FjWQJI1yZ99kkgwI557QGQqM7VNE+eBK nfvtexbTw4IXNC7OqxHS4UoYJY29FUJVjyoJilFCq4RPDlSt4L/SXb4Fy7FLLOoJQrXkb/ 6FsE8OpCYiEZHSE/NeTUWr4bbK8YbBYjp7hLgAqlh+gdlNxltoqqQhw+VT8FhkQ+pLuPtt 0Pe/Y/no0Iu2pTxvgM0SDdKqdcA9OaHsSFurtVSole8vsSNCVnaW7v4TzPt/W50Mtb9V0H zGMZIXvZOEx3Y+PzMIGcIwXMC6f+wBCyT9VeO097PGvC+o3xjozffSIhg9NWBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LuigWUx4; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710244605; a=rsa-sha256; cv=none; b=IR5l8thRUd4R4P4RMzNOi7XbR1r9iLezRoyPdiXMfv2RjhWKBkHKxWHKWCz9hD5/0FVISI UawaTfZ10ajE89fqRTH4SORVJNuhhiurUJxVLvEui/1+Fs6dIFVjHdC59svgH2p40GWqKd KkjiY0gXsmODjjVPQFpOhXTr1Dz3Y3JdMroW+YYednNxOt6796wOIgFgZrJLDyBcO+SniN EnZSlJB/cj2XhcTLRyvx71JnO8U8h80fp7GqRC28zxkWJc3kQChhlnMdzHYRhxG4BbyDsn HIjSjC84lER0BOKktwDM3yuO/i7agve42L+9dZ5LeHWU0FF2cem2XIuewxF9vA== 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 7F3FA51DFE for ; Tue, 12 Mar 2024 12:56:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk0je-0005kL-VK; Tue, 12 Mar 2024 07:55:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk0jc-0005jN-Rf for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 07:55:57 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk0ja-0006w8-Pr for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 07:55:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 370AE240105 for ; Tue, 12 Mar 2024 12:55:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710244552; bh=gXe+WGFz+WvuBeYXaN5E6E6MpjMhqsbMa3Btdkr8SCI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=LuigWUx4LQIJvVRXfZcV/ZJ8Qu2ttVAUbM9MmwTRvSQS0RqYeRAPjbBbaEyRsSqLb WNS+O06dIHILVEfzBuAyKsNElKB1C2g+vPDj+VAhIT1/I9jClmWZoddTC4NQJA2SGQ B9EaSw9EGCECr+Ydg7HUVxDFTuv/8oqBtaQ2aT5IYu9myW5vqTj72y8QhhMZPzLeJN pwmpH0H3VWtL2WjfmKgv5Q+Qk6hWu2JuNErz7uLmj+z4GKzP59XVFJWsYDIOe5r274 8fwUP9EQrLXRqromt8Jd886pWfou71xKCyOJoPRGXjkXoL6uTvFSCe6IBdFVBz7oxF Gl1WLCoyB/i7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TvBtH26JSz9rxM; Tue, 12 Mar 2024 12:55:51 +0100 (CET) From: Ihor Radchenko To: Francesc Rocher Cc: emacs-orgmode@gnu.org Subject: Re: Testing issues for Ada/SPARK support in Babel In-Reply-To: References: <87le9szzev.fsf@localhost> <87le7at17k.fsf@bzg.fr> <87cyskn7xa.fsf@localhost> Date: Tue, 12 Mar 2024 12:00:04 +0000 Message-ID: <87plvzek3f.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.37 X-Spam-Score: -9.37 X-Migadu-Queue-Id: 7F3FA51DFE X-Migadu-Scanner: mx13.migadu.com X-TUID: d2MhNEHJLAEE Francesc Rocher writes: > I'm starting from scratch the set of tests for Ada/SPARK support in Babel. > I've prepared a file with the first example: > > ---8<--- testing/examples/ob-ada-spark-test-org ---8<--- > ... > Then in the file testing/test-ob-ada-spark.el I've defined the following > test: > > (ert-deftest ob-ada-spark/hello-world () > "Test simple Hello world." > (org-test-at-id "778e63c2-2644-4a6f-8e7d-f956fa3d9241" I recommend using `org-test-with-temp-text' when the tested Org snippet is short. Otherwise, it is harder to read the test. > $ make BTEST_RE='ob-ada-spark.*' test-dirty > > it fails because (org-babel-execute-src-block) returns nil: > > Test ob-ada-spark/hello-world condition: > (wrong-type-argument stringp nil) Is the file name exactly "ob-ada-spark-test-org"? Without .org extension? If yes, IDs inside that file may not be indexed properly. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at