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

PPC RZIL tests #75

Merged
merged 74 commits into from
Aug 6, 2022
Merged

PPC RZIL tests #75

merged 74 commits into from
Aug 6, 2022

Conversation

Rot127
Copy link
Member

@Rot127 Rot127 commented Apr 29, 2022

This PR adds the test binaries for the PPC uplifting.
It adds:

  • README with documentation
  • A build script
  • A script to run all rz-tracetests
  • Four binaries
    • asm_tests: Holds all implemented instructions. Disassembly is meant to be copied to rizin/test/db/asm/ppc64
    • pseudo_fuzz_tests: Copy of asm_tests but is compiled to a ELF file and run with QEMU. Each instruction class is given static random data for testing.
    • ppc64le, ppc32be Big and little endian binaries which are meant to test edge cases as well as branch instructions. Should more or less cover all possible execution paths in the RZIL code.

The builds of the ELF binaries are not reproducible. If this is a problem?

@Rot127
Copy link
Member Author

Rot127 commented May 10, 2022

Please do not merge. The binary is currently 17M large. Which is really not necessary.

@Rot127 Rot127 mentioned this pull request May 13, 2022
5 tasks
@wargio wargio marked this pull request as draft May 24, 2022 19:17
elf/ppc/ppc64_fp.S Outdated Show resolved Hide resolved
@Rot127 Rot127 marked this pull request as ready for review July 31, 2022 23:04
@XVilka
Copy link
Member

XVilka commented Aug 6, 2022

@Rot127 GitHub says there is some conflict - please rebase and merge.

@XVilka XVilka requested a review from thestr4ng3r August 6, 2022 16:31
@wargio
Copy link
Member

wargio commented Aug 6, 2022

not to me., but yeah, rebase just in case

@Rot127
Copy link
Member Author

Rot127 commented Aug 6, 2022

Probably happened because I pushed to the same branch after it was merged before.

@Rot127
Copy link
Member Author

Rot127 commented Aug 6, 2022

Those two binaries the test fails for should be removed.

@thestr4ng3r
Copy link
Member

Those two binaries the test fails for should be removed.

Why? We have the policy to not allow any removals to prevent breaking tests of older rizin commits.

@Rot127
Copy link
Member Author

Rot127 commented Aug 6, 2022

Why? We have the policy to not allow any removals to prevent breaking tests of older rizin commits.

I added these binaries for testing in the beginning of rizinorg/rizin#2823 but quickly stopped using them. Those two were merged in #73 and #72 before rizinorg/rizin#2823 was ready for review. The current PPC RZIL tests don't use them anymore.

If rizinorg/rizin#2823 is squashed there will be no commit which uses them.

Copy link
Member

@thestr4ng3r thestr4ng3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, then lgtm.

@wargio wargio merged commit 7d0c31a into master Aug 6, 2022
@wargio wargio deleted the ppc-il-tests branch August 6, 2022 19:55
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

Successfully merging this pull request may close these issues.

4 participants