From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CL6rH/w072YDjwAA62LTzQ:P1 (envelope-from ) for ; Sat, 21 Sep 2024 23:05:00 +0200 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 CL6rH/w072YDjwAA62LTzQ (envelope-from ) for ; Sat, 21 Sep 2024 23:05:00 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=LffblMyl; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=Dn5PDKS9; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1726952700; 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=Ibs+MvdkI3bbLBHCjE+meSCvlPT9p+oqBAEpjEnHzJg=; b=v7Mn5FTIS/q4yiVS6LejINofbQo0nQlWV8LYkTpMX5k1FobxgZcmL5VqETzqVR4KwUB80Z jg7+D1Op1jToyFMgeos+WAW3XAj2QHpPxaZ38SqGGQALJdnfyyX1+4etQCZu99KRBREK8k 5Nw+hihQq+xUnnWw6WTI6CHYD79yXiXmnYRwscs/FSb0/3WpN4YRrDP/C849zK3M9anbqh lHgAcwena1/tXOiwvB1EScW7bvuLScZikUPe1yuykUznW8T0Ix7d6qOubsmAJwoGgN7IzH EvGqHrrMghRbdlmE0tiQdSyDHOvmtl/naCjfgfXZOQ3/c9EK9R0Ag3KZAWOQIA== ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1726952700; a=rsa-sha256; cv=none; b=CONdhD/v588FNNiplMX2wpJ/+KBB/yFGAUdoWaJGz1xCLZoY6cxWmQvD1ZqbeQcA9Rw1DG Z/AJs19dQja9lodh47Jc/RymjniePL1XguMHqxeVlCY5CUH08gSOWnbrukjJGQlScyDTf6 HDT4/Q6G4l0LeXFg5KU3aB1MzyUyQpAO7jay2+ad4lbBYnmuJQ578BRHkkfujgVaUA+oBc lfBdT5ElgIwO+PG68w9UIManM+PfdotJISYOyIjw3CcvZzZsGAYHA+KQ1JbXLpKprbxQ4g +BIWxRr2TvDiWSbqYvyfzhgmSHBygc10UwgxHqT9ZveZziKd+fKf0BFNvONJbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=LffblMyl; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=Dn5PDKS9; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com 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 098911C1BE for ; Sat, 21 Sep 2024 23:05:00 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=LxHc8FXcr6qK+6oMPKUXljQOAdHOXlhzQeEyYwznCt4=; 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=1726952699; v=1; b=LffblMylsAScsMx4+6zMfDq8MYk/mgfx8Or+MnO+RjAtQE1M40YiHtRBtdH2Xkwq5T1OLPb9 rSQpmcVnz7ylBLFMCRdMJDnDEsxVtID0HDAmCDMGuOKUY2oScd010dTtb/Fr15t6QaliEX5f/bd oDpys+/K65/APdVuXKirpBLi/EXD6578YFUqebWrA+O0kzf04WNPtR0CbLyKwu9/hrUVdtWMw+F vFfgRDPWPP2bKw+7uDzKfzqDifn2OqOEj4qLwCBt9FWjxUOqdPbiSxUiRHI0/se34LoQFkT2gHX NDbKmxho5lI2f4E6j4RuGHLXpHP1+KO+zdFdmWzpmN3GA== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 49CC3202E2 for ; Sat, 21 Sep 2024 21:04:59 +0000 (UTC) Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) by mail-a.sr.ht (Postfix) with ESMTPS id 9B52C2026B for <~johnnyrichard/olang-devel@lists.sr.ht>; Sat, 21 Sep 2024 21:04:58 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1726952698; 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=Ibs+MvdkI3bbLBHCjE+meSCvlPT9p+oqBAEpjEnHzJg=; b=Dn5PDKS9Vapkh16pAKVow+GCpjL9uQ5NdgagnLHk+Bd36L0MQiTJ00mvv/MGR4OkH25JyW LRotUGkV6VOIzyK7G0KkWslfYdzVk2K6e32TYTsPitK1sozN/4UvfJYD7VopAMZZrG+pZt 5mSomUUdxxzFBV5FeQrwzrk692G3E5cjORj7ZGRt9T7rcPmMoevNAh9fXbGwHJfx8owPD3 fT13a22r4YH1I4GHbfn/N/7eXYh+uXbVmkRAPOkXgD2M8ypwRsei5jNQV66mSD0s6Q8N1h 4RCl1A8sB+okZP3ast/gbkMIRfIyqBRj15Lr6owhLWCPfqGPUVzGWi1iWZP3vg== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang v1 0/2] tests: build: improve makefile for tests Date: Sat, 21 Sep 2024 23:02:47 +0200 Message-ID: <20240921210512.1100242-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Flow: FLOW_IN X-Migadu-Country: NL X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.90 X-Migadu-Queue-Id: 098911C1BE X-Spam-Score: -5.90 X-TUID: QLxlO26yEnh5 This is an attempt of improve the development experience by improving the folder structure of functional tests and making better usage of make execution to enable parallelization support. Johnny Richard (2): tests: build: enhance compiler functional tests tests: build: add parallelization support for unit tests Makefile | 12 +++--- .../tests => execute}/0001_main_exit.ol | 24 +++++------ .../0002_binary_operator_addition.ol | 0 .../0003_binary_operator_multiplication.ol | 0 .../0004_binary_operator_division.ol | 0 .../0005_binary_operator_reminder.ol | 0 .../0006_binary_operator_subtraction.ol | 0 .../0007_binary_operator_eq.ol | 0 .../0008_binary_operator_lt.ol | 0 .../0009_binary_operator_gt.ol | 0 .../0010_binary_operator_neq.ol | 0 .../0011_binary_operator_leq.ol | 0 .../0012_binary_operator_geq.ol | 0 .../0013_binary_operator_lshift.ol | 0 .../0014_binary_operator_rshift.ol | 0 .../0015_binary_operator_xor.ol | 0 .../0016_binary_operator_and.ol | 0 .../0017_binary_operator_or.ol | 0 .../0018_binary_operator_logical_and.ol | 0 .../0019_binary_operator_logical_or.ol | 0 .../tests => execute}/0020_if_statement.ol | 2 +- .../0021_if_statement_failed.ol | 0 .../0022_if_statement_literal.ol | 0 .../tests => execute}/0023_else_statement.ol | 2 +- .../tests => execute}/0024_var_definition.ol | 2 +- .../0025_var_definition_nested.ol | 0 tests/execute/Makefile | 15 +++++++ tests/{integration/test.sh => execute/run.sh} | 0 tests/integration/Makefile | 9 ----- tests/unit/Makefile | 40 +++++++++---------- 30 files changed, 54 insertions(+), 52 deletions(-) rename tests/{integration/tests => execute}/0001_main_exit.ol (66%) rename tests/{integration/tests => execute}/0002_binary_operator_addition.ol (100%) rename tests/{integration/tests => execute}/0003_binary_operator_multiplication.ol (100%) rename tests/{integration/tests => execute}/0004_binary_operator_division.ol (100%) rename tests/{integration/tests => execute}/0005_binary_operator_reminder.ol (100%) rename tests/{integration/tests => execute}/0006_binary_operator_subtraction.ol (100%) rename tests/{integration/tests => execute}/0007_binary_operator_eq.ol (100%) rename tests/{integration/tests => execute}/0008_binary_operator_lt.ol (100%) rename tests/{integration/tests => execute}/0009_binary_operator_gt.ol (100%) rename tests/{integration/tests => execute}/0010_binary_operator_neq.ol (100%) rename tests/{integration/tests => execute}/0011_binary_operator_leq.ol (100%) rename tests/{integration/tests => execute}/0012_binary_operator_geq.ol (100%) rename tests/{integration/tests => execute}/0013_binary_operator_lshift.ol (100%) rename tests/{integration/tests => execute}/0014_binary_operator_rshift.ol (100%) rename tests/{integration/tests => execute}/0015_binary_operator_xor.ol (100%) rename tests/{integration/tests => execute}/0016_binary_operator_and.ol (100%) rename tests/{integration/tests => execute}/0017_binary_operator_or.ol (100%) rename tests/{integration/tests => execute}/0018_binary_operator_logical_and.ol (100%) rename tests/{integration/tests => execute}/0019_binary_operator_logical_or.ol (100%) rename tests/{integration/tests => execute}/0020_if_statement.ol (96%) rename tests/{integration/tests => execute}/0021_if_statement_failed.ol (100%) rename tests/{integration/tests => execute}/0022_if_statement_literal.ol (100%) rename tests/{integration/tests => execute}/0023_else_statement.ol (96%) rename tests/{integration/tests => execute}/0024_var_definition.ol (96%) rename tests/{integration/tests => execute}/0025_var_definition_nested.ol (100%) create mode 100644 tests/execute/Makefile rename tests/{integration/test.sh => execute/run.sh} (100%) delete mode 100644 tests/integration/Makefile base-commit: 0d9ff9cbb463f044c7d482a4045d7668664e0d35 -- 2.46.0