File: start_donate_cpu_server_test_local.sh

package info (click to toggle)
cppcheck 2.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,132 kB
  • sloc: cpp: 268,935; python: 20,890; ansic: 8,090; sh: 1,045; makefile: 1,008; xml: 1,005; cs: 291
file content (31 lines) | stat: -rwxr-xr-x 825 bytes parent folder | download | duplicates (4)
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
#!/bin/sh
# Script for setting up everything that is needed and then running donate-cpu-server.py as
# a local server for testing.
# To start a real server instead of a local one simply remove the "--test" parameter.

# You can move this script to another location but then you have to set this path accordingly.
cppcheck_tools_path=..

# Paths that should not be changed:
dacaathome_path=~/daca@home
donatedresults_path=${dacaathome_path}/donated-results

if [ ! -d "${dacaathome_path}" ]
then
    mkdir "${dacaathome_path}"
fi

if [ ! -d "${donatedresults_path}" ]
then
    mkdir "${donatedresults_path}"
fi

if [ ! -f "${dacaathome_path}/packages.txt" ]
then
    "${cppcheck_tools_path}/daca2-getpackages.py" > "${dacaathome_path}/packages.txt"
fi

while :
do
    "${cppcheck_tools_path}/donate-cpu-server.py" --test
done