From aa98e2588a0fd2b10b141d96dc62a273f5619384 Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Mon, 15 Jan 2024 13:54:43 +0100 Subject: [PATCH 1/3] Add required dependencies for application tester to run --- scripts/application_tester/requirements.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/application_tester/requirements.txt diff --git a/scripts/application_tester/requirements.txt b/scripts/application_tester/requirements.txt new file mode 100644 index 00000000000..15882e9ff6b --- /dev/null +++ b/scripts/application_tester/requirements.txt @@ -0,0 +1,7 @@ +sentry_sdk==1.31.0 +pydantic==1.10.11 +file-read-backwards==3.0.0 +psutil==5.9.5 +colorlog==6.7.0 +configobj==5.0.8 +aiohttp==3.9.0 \ No newline at end of file From 8ca3148cbdfdc9a4c84f8c93724ebec8b36e8fd7 Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Tue, 16 Jan 2024 14:42:41 +0100 Subject: [PATCH 2/3] Add a step in Github action to install application tester dependencies --- .github/workflows/application_tester.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/application_tester.yml b/.github/workflows/application_tester.yml index 404567676bd..d0535f07282 100644 --- a/.github/workflows/application_tester.yml +++ b/.github/workflows/application_tester.yml @@ -70,6 +70,10 @@ jobs: if: runner.os == 'Linux' uses: pyvista/setup-headless-display-action@v1 + - name: Install application tester dependencies + run: | + pip install -r ./scripts/application_tester/requirements.txt + - name: Application Tester timeout-minutes: 5 env: From 97b9557c38759c1e5c7d808c0cbd327c626d0b1f Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Wed, 17 Jan 2024 14:48:12 +0100 Subject: [PATCH 3/3] Update application tester README.md file --- scripts/application_tester/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/application_tester/README.md b/scripts/application_tester/README.md index 7168085208e..e1ec554cedc 100644 --- a/scripts/application_tester/README.md +++ b/scripts/application_tester/README.md @@ -3,8 +3,13 @@ > **_NOTE:_** code moved from: https://github.com/Tribler/application-tester/ This repository hosts code for the Tribler application tester, which aims to automatically test Tribler using code injection. -To run the Tribler application tester, it requires a path to the Tribler executable, for example: +To run the Tribler application tester, dependencies specified in `scripts/application_tester/requirements.txt` must be installed. +``` +pip install -r scripts/application_tester/requirements.txt +``` + +Further, the script requires a path to the Tribler executable to be passed as an argument, for example: ``` python scripts/application_tester/main.py -p "python src/run_tribler.py" ```