I have spent some time creating a testing framework that we can hopefully use for the future of ADTOOLS etc.
https://github.com/3246251196/adtools_testingCloning this, CD'ing into it and running:
./adt -b
./adt -t
Copying over the adt_tests.lha to your AmigaOne machine, extracting it, and running
execute run_all.script
Should be all that is needed. Run:
adt
on your linux machine for more information. The "user.script" is purposefully commented out to reduce the risk of GURU during the invocation of tests.
Now, I want to talk about the test (in the context of NEWLIB):
2_capehill_adtools_issue_139_test_code
This was test written to test shared object constructors and destructors. There are two issues I see with this test:
When running the run#?.script for each STATIC and DYNAMIC:
In both the STATIC and DYNAMIC versions, I notice that once the MAIN function ends then no printing from STDOUT is respected, despite indirection. In other words, any printing to STDOUT from the destructor is not written to the file via indirection. So, I would like to know why redirection does not work in both of these cases.
Forgetting the run#?.script for a moment; when invoking the executable directly by running main#?.exe in each STATIC and DYNAMIC the STATIC version works okay but the DYNAMIC version only displays constructor "ctor" and not "ctor2".
I only have the public version of ELF.LIBRARY, so I am not sure if that is the issue.
To reproduce this, follow the steps listed at the begging of this post.
===
Once more, I invite anyone to add more tests to this repository - with a Pull Request I will happily pull. I will also try and get this framework integrated into ADTOOLS.