Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read tests from the file system #1

Open
3 tasks
Willem3141 opened this issue Jan 19, 2015 · 1 comment
Open
3 tasks

Read tests from the file system #1

Willem3141 opened this issue Jan 19, 2015 · 1 comment

Comments

@Willem3141
Copy link
Owner

It would be much nicer if tests, instead of being hard-coded into the binary, would be read from /var/tests at runtime. A file would then contain a series of tests which are executed by the test runner.

  • Decide a binary format for tests (KEXC, or just binary code without a header or something?)
  • Implement getting a list of tests to execute
  • Implement reading and calling a test
@ddevault
Copy link
Collaborator

I think that loading KEXC files from /var/tests/ would be a good idea. We could have a custom KEXC header that lists tests and such, i.e.

#include "kernel.inc"
#include "tests.inc"
.db "KEXC"
.db KEXC_TEST_TABLE
.dw tests
.db KEXC_HEADER_END

tests:
    .dw test_1, test_1_name
    .dw test_2, test_2_name
    .dw test_3, test_3_name

test_1_name:
    .db "Test 1", 0
test_1:
    assert(1)
    ; ...
    ret

; ...

Repository owner deleted a comment from jk8898 Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants