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 rusty.tulip.relay.mailchannels.net (rusty.tulip.relay.mailchannels.net [23.83.218.252]) by mail-a.sr.ht (Postfix) with ESMTPS id 0165020130 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:03:03 +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 2059482397 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:03:02 +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 57F6D814BE for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 16 Feb 2024 03:03:01 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1708052581; a=rsa-sha256; cv=none; b=XF1fuhf5VyxVCmY9Vt6a0C/jlwlQ4vY0nRbXgCSt2ChwR6HmOxNBYYtUCvwzIHesVwQI+7 t30MZt7LX1M8VVbuLnIrbGbTf2ws6q2LAeCeIH1/kMSNv2ejvv+kn+q8a9+WUl4kGcvzPh 1milC4GRDYBmBynFnUQCgQljTPXOexQjI//z+Cm0kq3J8rXYb230P8QSWdWCuyyetmeHou FiWapn5RNkrFXXgZG8q5qn4txBycxHBkoOxRFWzN3ec5I5W4uLDqisTUSSPuYVmZugYIMj oWZO8e6ay31NWx8cJa7u2IlW0Gy9zEjANr6+I6X2hzYyZse3FOn5Mn8kGvCicQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1708052581; 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=tU387/aSflb9ctBRSOpGmH/DddimyA0D/PRykVBhwqA=; b=E/gX4/2B8ECe+OEaPTanJETiH6P6QBxWFOXWUBL+XyvzAJIar3L/r1eGCo1pzmx7pw8fhY 9zrk/V7RlrQcUFEOdHxvxw6xAjCiz8kyZBPEaFCw6HLdI/DqPTPqZwXJwsivQzzNnbyzUq vQba1uMclaSD2pnE+9NAacd0+k5Qb8+aGCOGj2QVZ07HLT8i4pCblHgN2rknDLLn0GQ0yz UDuXFd3HBs+Y2F00W3njyAvAA0E60wKzJik52Tvx5SZZxiyabuMPeuKcLWGSBjxwNk8URS 2PBQzmVYs+xK5I6suYk01nd216yEdwme+laPPg05kfqHTtZsZcKi5fOSnc0Q3Q== ARC-Authentication-Results: i=1; rspamd-6bdc45795d-4sp4r; 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-Grain-Trouble: 0291e5c807d0823d_1708052581891_3821182701 X-MC-Loop-Signature: 1708052581891:2425562346 X-MC-Ingress-Time: 1708052581891 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.71 (trex/6.9.2); Fri, 16 Feb 2024 03:03:01 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1708052579; 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=tU387/aSflb9ctBRSOpGmH/DddimyA0D/PRykVBhwqA=; b=MuBb+FACLKDwTAha/QdY0coKAVEAgkkVl/Z4xp89Qc+n4hX7HQx6g+8VmaoYuhtivqHlpw c/9nlWGEaWnvVzzg8wfSmQz/k1GEc5PzrwHOlbi4KRgy8yz8Gh06d3eoUk3URCjSV/rX4x MuYYey194u3T3E7nMdBtGjDjJOF3I0tA9l+ewm8P+0na/Z0AF8JBpk3mo+k7TVcI5cTRN3 766Jh2pT8HxfLo+sM8NmRuvcUlgexpMQIlEEOVqFBajk2IsDjjGc4kpXA7jpbel0JPB3+f xRxYunJ0m9xyLzh2TKVcxiR6K8apol3pMR5GuEtBf0Um0/22sKZCiTYlPfBX6g== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v2 0/2] Add integration tests Date: Thu, 15 Feb 2024 23:58:13 -0300 Message-Id: <20240216025815.1355111-1-carlos@maniero.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-Envelope: MS4xfAGxZg41Y5vCQt/VGhSfzGWL+ExXJgaPVtWNjtRWFlyMk9sKA0AF6wC2fkmw2QjTPLiG7nz8AT8LN8t1SuFs2f0cH4HnemcQ2Z//pICGe5n7ecjfIVcH hfNLy2tIODdVpkv5+02zXxYUH2lyGeLi2fOBn7RecuT8miCaXjnSUFJXTkIID/VMpG8AbmTryLsbwmRhle/WE0sQByq5XchwxwlImAkQ3lRPOb5wxmJxjMoX P/xc1xdbt1g+3lqx+gisEA== X-CM-Analysis: v=2.4 cv=Rp/DLjmK c=1 sm=1 tr=0 ts=65ced063 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: /ek/LMsbrWdm 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. 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