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

Alternative test method #2

Open
Fsu0413 opened this issue Jun 3, 2023 · 1 comment
Open

Alternative test method #2

Fsu0413 opened this issue Jun 3, 2023 · 1 comment

Comments

@Fsu0413
Copy link
Owner

Fsu0413 commented Jun 3, 2023

I think I should find alternative method for implementing make check for this project.

On 1.0.2 branch I rewrote all the cases.
They are easy to rewrite since they are just written using Bourne Shell (on Linux / macOS), which is existing knowledge for me. I only rewrote the logic using CMake and it's done.
But thing is different on 1.1.1 or later where it is written using Perl, which is unfourtunately not what I currently understand.
Also I don't think this is necessary since I am just reinventing the wheel.

Thing is I can't just use the original test cases since they depends on the original OpenSSL configuration file configdata.pm, which is generated by Configure.
So the question is how to easily implement make check.

Following solutions available but I have not decided what is the easiest for me.

  1. Generate configdata.pm using CMake, with hand-crafted exported template and run original test cases
  2. Manually reconstruct the build command line and generate configdata.pm using Configure and run original test cases
  3. Manually reconstruct the build command line and build separately another OpenSSL using the original Perl-based instruction, and compare the generated binary files (need investigation for byte to byte consistent)
  4. Manually reconstruct the build command line and build separately another OpenSSL using the original Perl-based instruction, but replace the binary and generated header files to the build result from my CMake project and run the original test cases

All these methods need investigation...

@Fsu0413
Copy link
Owner Author

Fsu0413 commented Jun 29, 2023

For 3: CMake currently doesn't provide an API for getting the path of object files. They said that the path of object files are implementation detail.

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

1 participant