public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
From: Carlos Maniero <carlos@maniero.me>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Cc: Carlos Maniero <carlos@maniero.me>
Subject: [PATCH olang v3 0/2] add integration test
Date: Fri, 16 Feb 2024 00:07:46 -0300	[thread overview]
Message-ID: <20240216030748.1365294-1-carlos@maniero.me> (raw)

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


             reply	other threads:[~2024-02-16  3:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-16  3:07 Carlos Maniero [this message]
2024-02-16  3:07 ` [PATCH olang v3 1/2] tests: add munit testing framework file Carlos Maniero
2024-02-16  3:07 ` [PATCH olang v3 2/2] tests: add integration test setup Carlos Maniero
2024-02-16  3:12   ` [olang/patches/.build.yml] build success builds.sr.ht
2024-02-16  8:33 ` [PATCH olang v3 0/2] add integration test 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=20240216030748.1365294-1-carlos@maniero.me \
    --to=carlos@maniero.me \
    --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