-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-tests.sh
42 lines (34 loc) · 2.04 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/env bash
export DISPLAY=":0"
xhost +local:docker
source ~/Sites/green-coding/green-metrics-tool/venv/bin/activate
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-calendar-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Calendar #${i}"
done
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-contacts-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Contacts #${i}"
done
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-files-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Files #${i}"
done
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-docs-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Docs #${i}"
done
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-video-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Video #${i}"
done
for i in {1..10}; do
sync
sudo /usr/sbin/sysctl -w vm.drop_caches=3
python3 ~/Sites/green-coding/green-metrics-tool/runner.py --uri ~/Sites/green-coding/nextcloud-energy-tests --filename usage_scenario-mariadb-talk-firefox.yml --dev-no-optimizations --allow-unsafe --name "Nextcloud Blue Angel - Talk #${i}"
done