From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Johnny Richard <johnny@johnnyrichard.com>
Subject: [PATCH olang v2 0/3] improve test's makes and compiler binary
Date: Sun, 22 Sep 2024 17:15:53 +0200 [thread overview]
Message-ID: <20240922152119.1214443-1-johnny@johnnyrichard.com> (raw)
This is an attempt of improving the development experience by changing
the folder strucutre for tests and making a better usage of make
execution to enable parallelization support.
This patchset also changes the compiler binary from olang to olc.
- V2:
- rename olang binary to olc
- fix missing docs instructions for the new build
- replace 'execute' folder by 'olc' under tests
Johnny Richard (3):
olc: rename 'olang' binary to 'olc'
tests: build: enhance compiler tests
tests: build: add parallelization support for unit tests
.gitignore | 2 +-
Makefile | 31 ++++++--------
docs/info/contribution-guide.texi | 5 +--
docs/info/installation.texi | 4 +-
docs/man/man1/{olang.1 => olc.1} | 10 ++---
tests/integration/Makefile | 9 -----
.../tests => olc}/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
.../tests => olc}/0007_binary_operator_eq.ol | 0
.../tests => olc}/0008_binary_operator_lt.ol | 0
.../tests => olc}/0009_binary_operator_gt.ol | 0
.../tests => olc}/0010_binary_operator_neq.ol | 0
.../tests => olc}/0011_binary_operator_leq.ol | 0
.../tests => olc}/0012_binary_operator_geq.ol | 0
.../0013_binary_operator_lshift.ol | 0
.../0014_binary_operator_rshift.ol | 0
.../tests => olc}/0015_binary_operator_xor.ol | 2 +-
.../tests => olc}/0016_binary_operator_and.ol | 0
.../tests => olc}/0017_binary_operator_or.ol | 0
.../0018_binary_operator_logical_and.ol | 0
.../0019_binary_operator_logical_or.ol | 0
.../tests => olc}/0020_if_statement.ol | 2 +-
.../tests => olc}/0021_if_statement_failed.ol | 0
.../0022_if_statement_literal.ol | 0
.../tests => olc}/0023_else_statement.ol | 2 +-
.../tests => olc}/0024_var_definition.ol | 2 +-
.../0025_var_definition_nested.ol | 0
.../tests => olc}/0026_primitive_unsigneds.ol | 0
tests/olc/0026_primitive_unsigneds.ol.orig | 27 +++++++++++++
tests/olc/Makefile | 15 +++++++
tests/{integration/test.sh => olc/run.sh} | 2 +-
tests/unit/Makefile | 40 +++++++++----------
36 files changed, 100 insertions(+), 77 deletions(-)
rename docs/man/man1/{olang.1 => olc.1} (87%)
delete mode 100644 tests/integration/Makefile
rename tests/{integration/tests => olc}/0001_main_exit.ol (66%)
rename tests/{integration/tests => olc}/0002_binary_operator_addition.ol (100%)
rename tests/{integration/tests => olc}/0003_binary_operator_multiplication.ol (100%)
rename tests/{integration/tests => olc}/0004_binary_operator_division.ol (100%)
rename tests/{integration/tests => olc}/0005_binary_operator_reminder.ol (100%)
rename tests/{integration/tests => olc}/0006_binary_operator_subtraction.ol (100%)
rename tests/{integration/tests => olc}/0007_binary_operator_eq.ol (100%)
rename tests/{integration/tests => olc}/0008_binary_operator_lt.ol (100%)
rename tests/{integration/tests => olc}/0009_binary_operator_gt.ol (100%)
rename tests/{integration/tests => olc}/0010_binary_operator_neq.ol (100%)
rename tests/{integration/tests => olc}/0011_binary_operator_leq.ol (100%)
rename tests/{integration/tests => olc}/0012_binary_operator_geq.ol (100%)
rename tests/{integration/tests => olc}/0013_binary_operator_lshift.ol (100%)
rename tests/{integration/tests => olc}/0014_binary_operator_rshift.ol (100%)
rename tests/{integration/tests => olc}/0015_binary_operator_xor.ol (96%)
rename tests/{integration/tests => olc}/0016_binary_operator_and.ol (100%)
rename tests/{integration/tests => olc}/0017_binary_operator_or.ol (100%)
rename tests/{integration/tests => olc}/0018_binary_operator_logical_and.ol (100%)
rename tests/{integration/tests => olc}/0019_binary_operator_logical_or.ol (100%)
rename tests/{integration/tests => olc}/0020_if_statement.ol (96%)
rename tests/{integration/tests => olc}/0021_if_statement_failed.ol (100%)
rename tests/{integration/tests => olc}/0022_if_statement_literal.ol (100%)
rename tests/{integration/tests => olc}/0023_else_statement.ol (96%)
rename tests/{integration/tests => olc}/0024_var_definition.ol (96%)
rename tests/{integration/tests => olc}/0025_var_definition_nested.ol (100%)
rename tests/{integration/tests => olc}/0026_primitive_unsigneds.ol (100%)
create mode 100644 tests/olc/0026_primitive_unsigneds.ol.orig
create mode 100644 tests/olc/Makefile
rename tests/{integration/test.sh => olc/run.sh} (99%)
base-commit: e35d8835bf464a0f4de8b731fc248a7188fccef1
--
2.46.0
next reply other threads:[~2024-09-22 15:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-22 15:15 Johnny Richard [this message]
2024-09-22 15:15 ` [PATCH olang v2 1/3] olc: rename 'olang' binary to 'olc' Johnny Richard
2024-09-22 15:15 ` [PATCH olang v2 2/3] tests: build: enhance compiler tests Johnny Richard
2024-09-22 15:15 ` [PATCH olang v2 3/3] tests: build: add parallelization support for unit tests Johnny Richard
2024-09-23 9:09 ` [PATCH olang v2 0/3] improve test's makes and compiler binary Carlos Maniero
2024-09-23 10:57 ` Johnny Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240922152119.1214443-1-johnny@johnnyrichard.com \
--to=johnny@johnnyrichard.com \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox