Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

How would I automate testing a system?


walterw

Recommended Posts

With all of the tools such as docker and virtualbox, I can easily launch a VM, but what I would like to do is to simulate all of the typical activity I perform on my machine and replay that against the VM to see what works and doesn't work.

 

Is this possible using off-the-shelf software?  For example, I would like to plug in a USB thumbdrive, join a wifi network, have certain displays connected, etc.

Link to comment
Share on other sites

That doesn't answer how I would test a linux image (where an image is an ISO ...).  Sure, whatever I ultimately would invoke could be initiated by this, but I'm looking for the tool that would simulate network traffic, someone logging in, plugging in a monitor, etc.

I would imagine I could hack together a bunch of scripts to do stuff in virtualbox, but that is sort of limited I would imagine and tied to virtualbox.  Even then, I'd probably have to code in C or something.

Link to comment
Share on other sites

 

4 hours ago, walterw said:

With all of the tools such as docker and virtualbox, I can easily launch a VM, but what I would like to do is to simulate all of the typical activity I perform on my machine and replay that against the VM to see what works and doesn't work.

 

Is this possible using off-the-shelf software?  For example, I would like to plug in a USB thumbdrive, join a wifi network, have certain displays connected, etc.

Well sorry then, but none of your text does say "image" or "iso-imager" or anything similar. I thought your are talking about funtoo and funtoo as such can be installed of a live rescue cd, but using stages. Stages as such can be tested using LXD and simple scripts. What are you trying to solve?

Network traffic = installing packages inside the stage would generate traffic

hardware stuff is not easy to simulate would be my guess

But I still don't understand why? Do you have bad experience? Is this stuff not working? (logging as a user, plugging a monitor)

Link to comment
Share on other sites

Well, yes, stuff generally works; however, when I need to print or something I haven't done in a year, it may not work and chasing down the problem when I need it to work is bothersome.  And, by then it would be nearly impossible to see what change may have caused it.  It might turn out that an application configuration needs to be changed.

 

If all of that stuff could be simulated, then once I have the activity captured where I could replay it later, then I would have a guarantee that a new build is good before I actually decide to reboot to it.  It is the same reason we have kits.

Link to comment
Share on other sites

Fair point, but don't know how to automate stuff such as printing - how would you tell the script the print succeeded? And do you really want to print everyday a test page? Just an example.

Sorry I can't help. Maybe someone else has an idea how to test general user interaction with the system.

Stuff gets tested by users running kits. If a bug is there it gets reported and gets squashed the best thing to do is tell your friends to use funtoo so the userbase grows and more people run software and report bugs.

I haven't had problems with:

  • usb drives not being recognized by the system
  • monitors being plugged in
  • loggin in

Funtoo makes it easy with debian-kernel (most of the stuff just works - hardware), curated kits where stuff is not upgraded just because there is a new version of something ...

If you think of something, please let me know.

take care

Link to comment
Share on other sites

  • 4 weeks later...

With the advent of virtualization, I wouldn't actually do these things, they would be simulated.  I mean, there is no way Google or ... Microsoft manually test their products.  Maybe there is some proprietary product that does this testing.

It isn't whether I have issues with these things, it is whether I *COULD* have issues with these things and not know about it.  I'd rather know when I build my system that something is broken so I could just not upgrade.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...