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

Move test elfs to test dir #12092

Merged
merged 2 commits into from
Jun 2, 2022
Merged

Move test elfs to test dir #12092

merged 2 commits into from
Jun 2, 2022

Conversation

Megamouse
Copy link
Contributor

TEST12345 is already taken by dev builds

TEST12345 is already taken by dev builds
.gitignore Show resolved Hide resolved
@kd-11
Copy link
Contributor

kd-11 commented May 26, 2022

You can pick another titleID like RPCS34567. If they are in bin how do you trivially them on linux appimages for example? Users should not need to search for these.

@elad335
Copy link
Contributor

elad335 commented May 26, 2022

I vote putting it outside of games' file system visibility as well, shouldn't be accessible by them and they can delete it in theory.

@MSuih
Copy link
Member

MSuih commented May 26, 2022

I don't think they are included in appimages anyways, are they? People do seem to need to download these manually on Linux.

Or if they are then maybe they're not extracting properly.

@RainbowCookie32
Copy link
Contributor

I don't think they are included in appimages anyways, are they? People do seem to need to download these manually on Linux.

Or if they are then maybe they're not extracting properly.

If they are, I was never able to find them. Maybe it's hidden somewhere inside the AppImage itself, but dev_hdd0 never had them out of the box, I had to get them from GitHub or a Windows zip.

@kd-11
Copy link
Contributor

kd-11 commented May 26, 2022

I don't think they are included in appimages anyways, are they? People do seem to need to download these manually on Linux.

Or if they are then maybe they're not extracting properly.

Then this is a bug.
While most developers don't care much about these, they are very useful when diagnosing user-specific problems. The first thing we ask users reporting issues is to run triangle test and cube test just to make sure they didn't mess up their graphics drivers too badly in the first place. This is a much easier way to get a layman to test a sample that allows us to eliminate game-specific weirdness.

In the end, you can put them wherever, it just needs to be easy to find. Or you can add some debug menu to the GUI to access them or something.

@Megamouse
Copy link
Contributor Author

I don't feel like fixing a Leenux bug xD

@RipleyTom
Copy link
Contributor

GuiConfigs are atm stored inside the Appimage and require special code to handle( see https://github.com/RPCS3/rpcs3/blob/master/rpcs3/rpcs3qt/gui_application.cpp#L557 ). There is no easy way to do the same for the test elfs since the appimage basically extracts in a random tmp directory. If we include the test elfs with the appimage they'd end up in said random directory.

We could in theory copy them from the tmp directory to ~/.config/rpcs3/test/ but that'd need to be done on each boot of rpcs3, or at least do a hash of the files vs the hash of the appimage files and then overwrite if they're not the same. Thought that'd overwrite new tests with old tests if using an old appimage which might not be desired...

    install(DIRECTORY ../bin/test
        DESTINATION ${CMAKE_INSTALL_DATADIR}/rpcs3)

at https://github.com/RPCS3/rpcs3/blob/master/rpcs3/CMakeLists.txt#L194 to add them to the AppImage.

@Megamouse
Copy link
Contributor Author

Whatever floats your boat

@Nekotekina
Copy link
Member

Maybe make a special boot menu for tests? That could work for appimages as well.

@Darkhost1999
Copy link
Contributor

You know how there is log and tty tabs?
What if we did Games List and tests tabs but for the games list.
The idea is to allow importing custom elfs there as well as including the test elfs.
The 2nd idea is we could allow custom configs for the elfs allowing the same configuring for them as we do our eboot.bin files. This would solve custom configs for VSH as well if implemented. But doesn't exactly discuss where are we going to store the TEST12345 files. Have we settled on an idea?

@elad335
Copy link
Contributor

elad335 commented Jun 2, 2022

Maybe store them online.

@Megamouse
Copy link
Contributor Author

It's pointless to show tests in the game list.
It's useless for 99.9% of all users.
In my opinion it's enough to have them in some dir and boot them with the menu.
Of course we could add a menu option that opens the proper dir already.

@elad335
Copy link
Contributor

elad335 commented Jun 2, 2022

Tests should run on all RPCS3 versions, making them online not only solves this problem but also allows an official way to use the latest hw tests to compare the performance/accuracy of all RPCS3 builds in addition to saving RPCS3 package space.

@Megamouse
Copy link
Contributor Author

That's completely missing the point of this PR

@Megamouse
Copy link
Contributor Author

Megamouse commented Jun 2, 2022

I don't care where they are i just want them out of my elveon dir xD

Copy link
Contributor

@RipleyTom RipleyTom left a comment

Choose a reason for hiding this comment

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

A work of art! (I'll fix the linux thing in a separate PR)

@Megamouse Megamouse merged commit 26045a9 into RPCS3:master Jun 2, 2022
@Vestrel
Copy link
Contributor

Vestrel commented Jun 2, 2022

Should close #11326

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

Successfully merging this pull request may close these issues.

9 participants