CYB3RMX / Qu1cksc0pe

All-in-One malware analysis tool.
GNU General Public License v3.0
1.27k stars 180 forks source link

Introduce preliminary integration testing helper script (hardcoded to linux analyzer only for now) #65

Closed luis261 closed 1 month ago

luis261 commented 3 months ago

Hello, Friend

this script constitutes the first, tiny step towards automated testing.

This relates to the integration testing part of #60 (see that issue for a broader overview/more details in terms of ideas).

In the future, an improved, parameterized version of this script will be ran autmatically as a CI job to verify pull requests as soon as they are submitted (if you'd like that). For now, it just exists as a basic version we/I can improve later and to help a tiny bit with manual testing.

[!NOTE]

  • since the no_banner option isn't present on master yet, the script will fail to run properly if you try it out right now as is
  • for now, it still needs to be copied from the new "Tests" directory to the root of the repo before being executed
    • I think that's ok for now, I'll see how I handle paths down the line once this gets further/fully automated
luis261 commented 2 months ago

@CYB3RMX can I get your opinion on this?

I don't particularly enjoy writing bash and am not great at it, but I imagine I'll just slowly improve the script each time I end up doing manual tests until it can take over at some point, which could help us a lot in the long term (if we generally build up testing utils and finally all put them together into a testing pipeline that's fully automated later on).