public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
* [PATCH olang v2 0/2] Add integration tests
@ 2024-02-16  2:58 Carlos Maniero
  2024-02-16  2:58 ` [PATCH olang v2 1/2] tests: add munit testing framework file Carlos Maniero
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Carlos Maniero @ 2024-02-16  2:58 UTC (permalink / raw)
  To: ~johnnyrichard/olang-devel; +Cc: Carlos Maniero

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-16 15:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16  2:58 [PATCH olang v2 0/2] Add integration tests Carlos Maniero
2024-02-16  2:58 ` [PATCH olang v2 1/2] tests: add munit testing framework file Carlos Maniero
2024-02-16  2:58 ` [PATCH olang v2 2/2] tests: add integration test setup Carlos Maniero
2024-02-16  3:03   ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-02-16  3:15 ` [PATCH olang v2 0/2] Add integration tests Carlos Maniero
2024-02-16  8:02   ` Johnny Richard
2024-02-16 13:43     ` Carlos Maniero
2024-02-16 16:06       ` Johnny Richard

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