-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
117 lines (94 loc) · 3.03 KB
/
config.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* The php configuration file for the remote part of
* moodle qtype_javaunittext.
*
* To use the remote server make sure a remoteserver URL is given in the clients config.
*
* @package qtype
* @subpackage javaunittest
* @author Michael Rumler, [email protected], Berlin Institute of Technology
* @author Martin Gauk, [email protected]
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
/**
* White list of all allowed moodle client domains for security reason.
* Edit and add your moodle domain and/or ip here.
* e.g. $whitelist = array (); $whitelist [0] = 'my.server.tld';
*
* @staticvar array whitelist
*/
$whitelist = array();
$whitelist[] = '127.0.0.1';
/**
* Username and password to access service
*
* @staticvar string USERNAME
* @staticvar string PASSWORD
*/
define('USERNAME', '');
define('PASSWORD', '');
/**
* Path to store files and compilation.
* In the non remote version the moodle variable $CFG->dataroot is used.
* Make sure the PHP/webserver user has enough rights here, we propose chmod 01700.
* e.g. define ( 'DATAROOT', '/var/www/moodledataremote/' );
*
* @staticvar string DATAROOT
*/
define('DATAROOT', '');
/**
* Memory limit (heap) in MB
* This sets the option -Xmx for the Java VM. Specifies the maximum size of the memory allocation pool.
*
* @staticvar int MEMORY_XMX
*/
define('MEMORY_XMX', 64);
/**
* Memory limit (output) in KB
* Limits the size of outputs during test executions.
*
* @staticvar int MEMORY_LIMIT_OUTPUT
*/
define('MEMORY_LIMIT_OUTPUT', 8);
/**
* Timeout in seconds (real time) for test executions.
*
* @staticvar int TIMEOUT_REAL
*/
define('TIMEOUT_REAL', 35);
/**
* Command before test execution
* This will be executed on shell before the tests. You may use ulimit to
* limit resources (e.g. cpu time) for the tests.
*
* e.g. 'ulimit -t 8' to set a limit of a maximum cpu time of 8 secs
*
* @staticvar int TIMEOUT_REAL
*/
define('PRECOMMAND', 'ulimit -t 8');
/**
* Configure local path settings here.
*
* @staticvar string PATH_TO_JAVAC
* @staticvar string PATH_TO_JAVA
* @staticvar string PATH_TO_JUNIT
* @staticvar string PATH_TO_HAMCREST
* @staticvar string PATH_TO_POLICY
*/
// e.g. define('PATH_TO_JAVAC', '/usr/lib/jvm/java-7-openjdk-amd64/bin/javac');
define('PATH_TO_JAVAC', '/usr/lib/jvm/java-6-openjdk-amd64/bin/javac');
// e.g. define ( 'PATH_TO_JAVA', '/usr/lib/jvm/java-7-openjdk-amd64/bin/java' );
define('PATH_TO_JAVA', '/usr/lib/jvm/java-6-openjdk-amd64/bin/java');
// e.g. define('PATH_TO_JUNIT', '/usr/share/java/junit.jar');
define('PATH_TO_JUNIT', '/usr/share/java/junit4.jar');
// e.g. define('PATH_TO_HAMCREST', '/usr/share/java/hamcrest.jar');
define('PATH_TO_HAMCREST', '/usr/share/java/hamcrest-core.jar');
// e.g. define('PATH_TO_POLICY', dirname(__FILE__) . '/polfiles/defaultpolicy');
define('PATH_TO_POLICY', dirname ( __FILE__ ) . '/polfiles/defaultpolicy');
/**
* Log all actions to a file or leave empty if there should be no log.
*
* @staticvar string LOGFILE
*/
define('LOGFILE', '');