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

Byte Tester: Allow multiple source files #421

Open
lhsazevedo opened this issue Jul 4, 2021 · 3 comments
Open

Byte Tester: Allow multiple source files #421

lhsazevedo opened this issue Jul 4, 2021 · 3 comments

Comments

@lhsazevedo
Copy link
Contributor

Some tests check the output of multiple source files, and cannot be tested using the new source file option.

They could be if we allow multiple source files on byte tester.
The tests instructions of each file would simply be concatenated as if it was one big file, example:

main.s:

@BT result.rom
.db "01>"     // @BT TEST-01 01 START
ld a, (hl)    // @BT DE AD

-------

more.s:

ld c, a       // @BT BE EF
.db "<01"     // @BT END

$ byte_tester -s main.s more.s

Tests instructions read by byte tester:
result.rom TEST-01 01 START DE AD BE EF END

@vhelin
Copy link
Owner

vhelin commented Jul 5, 2021

Sounds good!

@jeffythedragonslayer
Copy link
Contributor

jeffythedragonslayer commented Feb 22, 2023

I wonder if this could be hacked together with https://tldp.org/LDP/abs/html/process-sub.html

Start with

cat main.s more.s

@vhelin
Copy link
Owner

vhelin commented Feb 22, 2023

I don't think that would work on an Amiga where I use the run_tests.sh script to run the tests. There the shell is not a modern Bash shell, and it's pretty buggy and old. That said I think we should make this by enhancing byte_tester as it shouldn't be a huge task and would then work everywhere regardless of the shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants