User:Socke/Testable Begin

From Free Pascal wiki
< User:Socke
Revision as of 16:49, 3 September 2014 by Socke (talk | contribs) (→‎Template parameters: no spaces)
Jump to navigationJump to search

Usage

Create an own Wiki page for each testable code. Each page should look like

{{User:Socke/Testable_Begin}}
<syntaxhighlight>
program myprogram;

begin
// your code
end;
</syntaxhighlight>
{{User:Socke/Testable_End}}

The whole template has to be in one line; the template name has to use the underscored template name—{{User:Socke/Testable_Begin}} is okay, {{User:Socke/Testable Begin}} is not. You may not specify each parameter on a new line (unless you optimize the regular expressions which are used to parse this).

Valid example Invalid example
{{User:Socke/Testable_Begin|os=Linux|preset=MyPresetConfig|packages=LCL}}
{{User:Socke/Testable_Begin
|os=Linux
|preset=MyPresetConfig
|packages=LCL
}}

Template parameters

You can specify some paramters to this template which are recognized by the testing utility (but not used in any means).

Parameter Description
preset Predefined set of FPC/Lazarus configuration (e.g. Raspberry)
os Operating system (e.g. WinXP, MaxOSX10.6, Debian7, etc.)
packages Required Lazarus Packages in build environment; Package names are separated by comma e.g. PascalIO,LCL,LCLBase. There must not be any spaces in this value.