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 dog.birch.relay.mailchannels.net (dog.birch.relay.mailchannels.net [23.83.209.48]) by mail-a.sr.ht (Postfix) with ESMTPS id 8BC412010D for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:12:26 +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 DA9C376113A for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:12:24 +0000 (UTC) Received: from nl-srv-smtpout4.hostinger.io (unknown [127.0.0.6]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 4454A76122F for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:12:24 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1708053144; a=rsa-sha256; cv=none; b=FVxB0/0Ge7BjzvJmphszP+BjykxQIrng9Y/AuKW06nipBZdeiM4rLzd5AUPEYxbW/b7sU7 jmjONbWhcRaAOUIBMYql15rrs90Cm7PEm7aLH3Xt+us5OmQrUUw8l+9r+5RoQ/CgGVlhd9 VtqUgSEHCWhISPLzM6fP2JWiw2p/1As5KGXdR25sZ7aJbs8cwJdGFdTcb5Y4oh+2Cx6dFN V887LCfx//rRIFUcChHT1rrsAj69qe+1ouaCy0AGutS+3Vgsggm0VftN71lCxdYhoHaVym HGgH/u2kHn9Lq+jup0AiPvSApNAsL0JkwQv5q2XBKVitVGBNm+r2X/neFaZcrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1708053144; 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=e1Tr4mlG5wO+q20LrDYDLVDvOmyGUpTZFImYUPeDCjE=; b=vD1UhK0XPmi4TK42cXFzyVjpuWz41GTMQHCVSmnuJPDUVw/FiEvvhqhycIY3+ftShL92kc TQrxN4XNKXIjcqr2Vwik43fY1+x4wjjsuHtPRs1ukgBFOInhm3+Z2cYbO4yFRmNxOAs6Qc oXA6og22RlRjomo4QRR5czTx9kLSUQ6cOK68wTFWPLlNLLwOVtmfLANXtGXoPFPuaCw3zu C1oGeV0yllFOdlgcbWG7gUs2FpV6swcJsC9I3mlBWgfuE/UwBt7uWgsGI9LhKYZ1oiyq5e UlnboDsoeB9nh1ttg5RP1mAt+YiYhNuiR9ysKtZ3RmrZllrFgFi4CwD1SvYXFg== ARC-Authentication-Results: i=1; rspamd-55b4bfd7cb-4qb9c; 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-Robust-White: 61c6f6882a6c42d4_1708053144786_3518852011 X-MC-Loop-Signature: 1708053144786:1695185457 X-MC-Ingress-Time: 1708053144786 Received: from nl-srv-smtpout4.hostinger.io (nl-srv-smtpout4.hostinger.io [145.14.159.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.119.136 (trex/6.9.2); Fri, 16 Feb 2024 03:12:24 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1708053142; 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=e1Tr4mlG5wO+q20LrDYDLVDvOmyGUpTZFImYUPeDCjE=; b=kycLdvPt5OyX3XGKd+wm+pK7ro4WMUnzTFdS6zRNCCnCWu3in/tfSQ3hcexZS0KpcidSdY +W18+GeOnrKwkefpiRF/FMMYok4KayxGFPtANZ/JsMspt572h1VFgGaP8GKwI97cWifkXm GbEthzzYjZsZ0LDrwMJHiNGNeVc4riZ5euf3uMTXJAy0BJXx5QcOL8akr322HRqSyhHjBy Xv6AB2hGbsC0o9txss4b70NC3Kf7MmxgEWfnMDnYagybL4tV2FYm3T097o1sWC46Js87HI MA+RKOvGNTOhuc/IjNdE/8vgpHOAeTKRrowaQV9iph1Ozo69jxeM6wM/xx3UsQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v3 0/2] add integration test Date: Fri, 16 Feb 2024 00:07:46 -0300 Message-Id: <20240216030748.1365294-1-carlos@maniero.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-Envelope: MS4xfILoG84rvESxxuBy2S7RI1Fe7UPDmDD0X8/bXNAMdfi52j99w+Ow+e5NSGAASVFsjC2tuav3ebqu+fXlciVJCJ/kHwCX1MjEj1kowGkJpNhYhMXzkixn TlilYTtxLX74sIkpjdDUUuXfFec/6zEC7XzoTffntMHgWuuvrFRBx/cUZsJvCMvNs0np2MMs3XccQs8cSYDV6cVp5SEGXHr5gj7O8z5mLghST6ywlWadbGaA S3mqXVOr+xrdvy7qRbz6dQ== X-CM-Analysis: v=2.4 cv=DIOJ4TNb c=1 sm=1 tr=0 ts=65ced296 a=5+VMC1FZ3J4mVPAKpPmAqg==:117 a=5+VMC1FZ3J4mVPAKpPmAqg==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=BXDaF_L80NYA:10 a=jziKOLAnAAAA:8 a=nOxODxYpQ0qNYKVMLkMA:9 a=1ljl-wuu_96014yfT5Vk:22 X-AuthUser: carlos@maniero.me X-TUID: +K5crB70XYUq This patch is divided by two commits, the first is a copy of the customer version of munit cloned from pipalang. The second is a integration test setup that ensures the 0c binary is there and is executable. This patchset apply the changes suggested by johnny@johnnyrichard.com on 20240215162146.847336-1-carlos@maniero.me. v2: - uses perror and exit instead of assert - replace make with $(MAKE) on Makefile - create a check target on make to run all tests - make linter and linter-fix to lint all files - Although I still delegating the linter stuff to integration's Makefile the reason is because I have to remove munit files from the list to be linted since these files takes a long time to be processed and I don't wanna leak this detail to the global Makefile. v3: - I fail linter. Carlos Maniero (2): tests: add munit testing framework file tests: add integration test setup .build.yml | 4 + Makefile | 12 + tests/integration/Makefile | 27 + tests/integration/cli_runner.c | 77 ++ tests/integration/cli_runner.h | 27 + tests/integration/cli_test.c | 39 + tests/integration/munit.c | 2057 ++++++++++++++++++++++++++++++++ tests/integration/munit.h | 536 +++++++++ 8 files changed, 2779 insertions(+) create mode 100644 tests/integration/Makefile create mode 100644 tests/integration/cli_runner.c create mode 100644 tests/integration/cli_runner.h create mode 100644 tests/integration/cli_test.c create mode 100644 tests/integration/munit.c create mode 100644 tests/integration/munit.h -- 2.34.1