Skip to content

Alternative test method #2

@Fsu0413

Description

@Fsu0413

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions