From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eOaSO5qT62VdlQAAbAwnHQ (envelope-from ) for ; Fri, 08 Mar 2024 23:39:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cPZqOJqT62VQ6QAA62LTzQ (envelope-from ) for ; Fri, 08 Mar 2024 23:39:22 +0100 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=mYJg+F6q; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=jzIsp5jS; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=none; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1709937562; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=EFb1hysD6ztId6wWe7LiX8GLQtjGdrGlwqtWAAKmRIs=; b=wF671I9Jm4cucgGgrPcLRB1UjddpkDalZg8X9mFXXl5f1hJywONeTWVNe0YPGI46twF2jC tVYJTa+dd3++LfNhhz8ZZcVFjPmjkaWepAXab5OVRmJa6InhGFUOHMRpVjNNokzaL4ViHm NEoT/ciz6Ldi5lkMPxqCOh7t8Z81IivNK09wwULCJoiiIH3QRS/QlMDd8TEG80Zx+t9gm2 wALOJ+de6L6C2Cn/4X7vWl4G0hVYD4O4A8ckkxAy4ei087yVU2NPz10w8ICrE4xVFDShrn 9D3uMMghC8kGct4IATWHThrM/3s0efBr19/sv0g+EbA2+v+4risj5GqNgufqaA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=mYJg+F6q; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=jzIsp5jS; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=none; arc=pass ("mailchannels.net:s=arc-2022:i=1") ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1709937562; a=rsa-sha256; cv=pass; b=FnjeSJY/dy2LEm2IFCkJ2xsOzkq/VfPCBXdW0Szalpu0QxqG69WQ92uMfSt2/MNd4psWP/ /lApBmbS2N2aoqd06tLQnmlZhxsRhJy5FicxliWHlmN03aaRbBQt5PHtnU3saVrgsmd8ZM VWQrbP7KbYp2i7VKtmxvucOtxeS8JI68pCs1ghITbcygjgvNWKUS08AJ5rXLjStwnQK2nj xRLWDDeta8YakOGoZ83xVnsiwKlCl/f7XVADLBXn2oRD0HpYRAPz597DoG1QeTaXB39qQ3 ixYo7ab1hvegGgxzV5FDB60ok53t+QCWxlKY9DMPnkFnrtZW0nTr3cp3CqUKww== Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7381535A7E for ; Fri, 8 Mar 2024 23:39:22 +0100 (CET) DKIM-Signature: a=rsa-sha256; bh=zz1NYPIXhmi8xnH7EUVzaGWXpYjpdEIA4d7WHSMQEcY=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1709937562; v=1; b=mYJg+F6qPmVoxhfXraMT0LYO90b33Ux/kJN06FkN7u2kWKtrg02T8xbQdR9LUsxYO30WcuV0 iP5HZ0/GzAsjUzApjdO1Apwy7mwhs2dM8J9dAhDye6SjChG+G9vGvnbK81jywsI/pYPKGPLoNQW FEoehR9pr5DUQWAdmS2yuREYNRTrKWu5fH7x1WzK4Q3MZowMpYYuMm7hMvRsopdgDfiNv9E/jWM CdFoApDuZkhVkD06MHoEJqjQw7QcFG/aa+bJzHlWfZ2QSD679usKLCfsyfBe3cvsPcF9+tnfE5C 5Js+7JqBTuDd36/i4bHJMeXIpUrbtrYLQb6tykLVUmcJw== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 14A6420269 for ; Fri, 8 Mar 2024 22:39:22 +0000 (UTC) Received: from shrimp.cherry.relay.mailchannels.net (shrimp.cherry.relay.mailchannels.net [23.83.223.164]) by mail-a.sr.ht (Postfix) with ESMTPS id 1251B20256 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 8 Mar 2024 22:39:20 +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 51AC5840DA9 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 8 Mar 2024 22:39:19 +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 6BD9B840FA7 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 8 Mar 2024 22:39:18 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1709937558; a=rsa-sha256; cv=none; b=ikWPCl68SShJ9O6IcEd4urcYn2f7nX6+mnyKzUnR8KS8nPaI0UXxzDjoc7gUJxkzthve9P B+SL8iBF7LgX+0gxrFIRI0ecQFnQYlqqNOMMCBPRNBvzFYZux3tPolLWZxurhHPN1YRZYv yGeC824yr5h5mGwfvk0h/za2xMYJmnEYNszWw5hZ9C9HYNCr3fDUs92fzP2wtL6yvVBjQY +B6sblqIn955AEL6SnzeEdzaW8PwcAR819KeP7fkmLp2dW4NhbF6fLap1uz5geVTCfzKW/ j4laiI9r08fh58Q8CyECMy72IygegymsT93GLYnq5lyuci3tSp2zlFiYzpfXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1709937558; 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=EFb1hysD6ztId6wWe7LiX8GLQtjGdrGlwqtWAAKmRIs=; b=Yb1xNIL6PSu01aeTjZVOFX0lzhknbbFhuv1wu6nz2zPmZT9T2DLpk63sT01K0VSMEDJFHF c9dVm9QybTTbmEbpihaPhg0bdWE3n9XRbJlGKObjsOT+eKHZcfeamgOTGEZssy2WsLmV2t 5RNW4zKSkU1B7Iui/Px5ort1ZW3dlaeeSNNorinApXjFbUhLLvO4yU5MrXkF8bXwxwvFMT 9IYnIRDg/dHCY3AGypGBnxHQTffCunA+ge1/8FWyeDtvIS14Ro1tu2LqiqI8G7f0Sg7qDR 9RLdFdFMuK0Rz/qwxx03QtTkflQ2XLHTiXTIKpo0jKIOxz4RG5rgrhYVwz7iHw== ARC-Authentication-Results: i=1; rspamd-67fb46fddd-nnh5d; 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-Slimy-Squirrel: 40c564dc6618046b_1709937558974_1779531715 X-MC-Loop-Signature: 1709937558973:836542274 X-MC-Ingress-Time: 1709937558973 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.117.236.15 (trex/6.9.2); Fri, 08 Mar 2024 22:39:18 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1709937557; 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=EFb1hysD6ztId6wWe7LiX8GLQtjGdrGlwqtWAAKmRIs=; b=jzIsp5jSwi1V00Wbb8nFiRaqQht9xH24pV1DGZO/kSTIBBbyLsCmYLkYenf6Ul0IQPtOpZ 9sOOlDLuXEf1w/+xIF+zWxi0ZmZemZWz/oE59ouTSOS/PZd5i8x/OW6Q+DUllvta51FJXL /DDVJ3KchMj15ARqXEBaSPAPyct5N7etsa0NF06z1nDFD2kEXXM9clu6BcWcPw0Tw9Fczf ibpFWe5PrqdajlnuQZVmX0QLZ+ukQOHMjGpc3QY/ZXVl6JPXxlwLQWlprxMZlpXq7/A1X2 IYhD3tNz3Rgfb78vhdWl8wQ2DcSrm5CjS4ZL90rmNXH/45sJ+WEAWm+YBYG9aQ== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v2 0/3] test: cli: cover compilation pipeline Date: Fri, 8 Mar 2024 19:39:06 -0300 Message-Id: <20240308223909.3184226-1-carlos@maniero.me> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-Analysis: v=2.4 cv=SNJEVvvH c=1 sm=1 tr=0 ts=65eb9395 a=5+VMC1FZ3J4mVPAKpPmAqg==:117 a=5+VMC1FZ3J4mVPAKpPmAqg==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=l48hgfrA6iTekd3R-a8A:9 a=_jYoaIhPre-UvZIGVoyW:22 X-CM-Envelope: MS4xfJ//oSymTAGSKwmZV5I2H2+rKENCuTBYOJRdK4Ge/z45sdonCu+wJKARG/QynSLdeuUTu24dNFreAqbX9/GAJJtlly65nUElXYp/0I9kvLQvzb9JWKeG Tm2v5zDIxJ2NWz+qKIft4kYLdbUQiLcAKr1gBPVrsvxC3mhMIA7DSZZ+G9P2bTBtEkEfJg8PIJMqWb/azzp5zgCEFtbKVBQ5kNAE1QU1MJ9LfSwtULBxpKg9 X-AuthUser: carlos@maniero.me List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Country: NL X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.05 X-Spam-Score: -9.05 X-Migadu-Queue-Id: 7381535A7E X-TUID: /gEsCbKAp9v7 This patch is focused in coverig the entire compilation pipeline. Although as it is the second integration test of the olang codebase it also has a few housekeeping in order to provide a smooth test experience. V2: - Add a comment to stop truncating the stdout - Rename fd_pipe variable Carlos Maniero (3): tests: fix: rename dump tokens test name tests: decouple command execution from cli_runner tests: add tests for the minimal possible olang program tests/integration/Makefile | 4 +-- tests/integration/cli_runner.c | 60 +++++++++++++------------------- tests/integration/cli_runner.h | 10 ++++-- tests/integration/cli_test.c | 33 +++++++++++++++--- tests/integration/proc_exec.c | 63 ++++++++++++++++++++++++++++++++++ tests/integration/proc_exec.h | 36 +++++++++++++++++++ 6 files changed, 159 insertions(+), 47 deletions(-) create mode 100644 tests/integration/proc_exec.c create mode 100644 tests/integration/proc_exec.h -- 2.34.1