From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail-a.sr.ht; dkim=pass header.d=maniero.me header.i=@maniero.me Received: from olivedrab.birch.relay.mailchannels.net (olivedrab.birch.relay.mailchannels.net [23.83.209.135]) by mail-a.sr.ht (Postfix) with ESMTPS id D9730200B4 for <~johnnyrichard/olang-devel@lists.sr.ht>; Sun, 18 Feb 2024 00:31:56 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D051F902E47 for <~johnnyrichard/olang-devel@lists.sr.ht>; Sun, 18 Feb 2024 00:31:54 +0000 (UTC) Received: from uk-fast-smtpout2.hostinger.io (unknown [127.0.0.6]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id E40C2902A3E for <~johnnyrichard/olang-devel@lists.sr.ht>; Sun, 18 Feb 2024 00:31:53 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1708216314; a=rsa-sha256; cv=none; b=g7Lu437nly1hWBKCLnIrczgGcu39/26SNr6pmtER5jtSzbzCh96AFT0MasfxhXEWvtdY5u 7xW9RC7fJBQEorgsvpaRd+a1MgcfYF/oXh57FLmesqq8uRL1V0UySr9CdtMkN98ecSfoaj tlehmsj3PRW4opQaaE/HgD2Z7YxHcf1DTwcWUWGQn3EQMeQrzXrpe5CsFHKI2zH212UvMY HfPQUqtPKXShDc4LzhS1N9d9B0dgrOCgjPO/TpSaxFWhMaI4FpX9A1j8q92iN1F8VrRMpt CLoyYlqj/SK0v/L+eJCGzd+22z6WKwMalNEoQpjFNrBnp1yzfEFy59Av+KHDOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1708216314; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=VtGhcdA1lzYD3hxMTGKjjXAWTLVEy2d5ONe7dt1G8WM=; b=E8oBBiGy0UyzZFJ5lD+gq5wR3Nwrc3w9Yt6S821vLGRBZnUPejOWU7tnyX0YN1VprRTCf7 SlYGAhpjnAW+7nC/UbsVVjGt2qlQGQEs5E3Q9K64jiRjYrCK5R5wJzI0MtQA2fD6n2RJIC JZJa5OR7twibKVLTQRjxyy3GizbiDTQ1iCpXM7Bb5cSCP6GmREfO5uByMCbetUercnJRrI D6uEIjgZtn6VUWFLk7W2ZqSqxbOEKiv7UeT6N9Abtdtqoh5NFGvFA6xbsM54Io7WAr0Zu3 S6Dd2PM8U6J+aBeIc7HS1hNx4b711pxAKfFxq1+ZiWiI5OHwIKk0/GY5T0ZQTA== ARC-Authentication-Results: i=1; rspamd-6bdc45795d-lxxw5; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Cure-Arithmetic: 6a1283631f22fa47_1708216314457_4119307797 X-MC-Loop-Signature: 1708216314457:1308533916 X-MC-Ingress-Time: 1708216314457 Received: from uk-fast-smtpout2.hostinger.io (uk-fast-smtpout2.hostinger.io [31.220.23.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.119.153.87 (trex/6.9.2); Sun, 18 Feb 2024 00:31:54 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1708216312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VtGhcdA1lzYD3hxMTGKjjXAWTLVEy2d5ONe7dt1G8WM=; b=mePJGqJAokjy5oshGnSh+gSv9KjI4C2jwUjBjbLm6T/EeXj2LRovJzyo/S5Ty5iHIGL/Fj MetmdT1YWtlmx6JHnb/eOZA3VCVIGEsMcYpNs/Rd3tLlzv6DLUsKCpScZ18j5tooTOkLuY 5PPo3NfydkinPF05ct6wep3ZxtVUePQeblgJ3dNrGJ+CvltWnabM1C1nJrAnkneBzCikNe nRg+JM7xEEhqqq7rsJQVt+JocLW0k7fufeDgOcXaYGVceKOx68p49H4G9QUBd4yldQ+5/P kcRlllDVg7FLtoLwueWdei/0BaTNapvIqxQtrdlmtOuPshtEylM99Tax6Z2qYw== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang 0/2] add unit tests config Date: Sat, 17 Feb 2024 21:27:11 -0300 Message-Id: <20240218002713.3705605-1-carlos@maniero.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-Envelope: MS4xfB7grVTV7LdYUkYS3uAC6HeMLGEn1ExSRFKV4m6nwIvvV+l2jU96KKhqxHuDXIH1RuITOgeyMtXXFK2f/C/K7Ah5LPoYE+9C1ADXk2ywRGQSv5wvcP3z FoFv2HtwFS/VfTDgxwkOYWIy5mX1LdqIGmAx5fxKFDwvlDcI/OGtyu1ySzs5IGQas4GhP3jwZpaqmpuI+HWGzlDIXrQN24Pcl/iwFLiXM9iqCC1tyKg1aDtM nlK2O1IgpWNFLFCOccGbPw== X-CM-Analysis: v=2.4 cv=Rp/DLjmK c=1 sm=1 tr=0 ts=65d14ff7 a=5+VMC1FZ3J4mVPAKpPmAqg==:117 a=5+VMC1FZ3J4mVPAKpPmAqg==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=BXDaF_L80NYA:10 a=6DWiq7mkhhopGT3gjQsA:9 a=zZCYzV9kfG8A:10 X-AuthUser: carlos@maniero.me X-TUID: NsP/UU33kNv7 Simple configurations to start supporting unit tests. Note that I moved the munit to a shared directory to avoid having it duplicated over te codebase. Although I kept the .o duplicated in each folder it is used so then It won't requires any extra configuration to clean the munit.o. The make clean of both integration and unit will handle the cleaning. Carlos Maniero (2): tests: move munit to a shared directory tests: add unit tests configuration Makefile | 6 +++++- tests/integration/Makefile | 16 +++++++++------ tests/{integration => shared}/munit.c | 0 tests/{integration => shared}/munit.h | 0 tests/unit/Makefile | 28 +++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 7 deletions(-) rename tests/{integration => shared}/munit.c (100%) rename tests/{integration => shared}/munit.h (100%) create mode 100644 tests/unit/Makefile -- 2.34.1