Test rouge highlighter
This commit is contained in:
+24
-18
@@ -6,10 +6,11 @@ permalink: /how-to/
|
||||
|
||||
# How to Get the Sources
|
||||
This step should be simple:
|
||||
{% highlight bash %}
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Samsung/jerryscript.git
|
||||
cd jerryscript
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
# How to Setup Recommended Prerequisites
|
||||
|
||||
@@ -29,13 +30,13 @@ These tools are required for development:
|
||||
- `cppcheck` requires `libpcre`
|
||||
- `vera++` requires `tcl`, `tk` and `boost`
|
||||
|
||||
{% highlight bash %}
|
||||
```bash
|
||||
sudo apt-get install gcc g++
|
||||
sudo apt-get install gcc-arm-none-eabi g++-arm-none-eabi
|
||||
sudo apt-get install cmake
|
||||
sudo apt-get install libpcre3 libpcre3-dev
|
||||
sudo apt-get install tcl8.6 tcl8.6-dev tk8.6-dev libboost-all-dev
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
To make our scripts run correctly, several shell utilities should be available the system:
|
||||
|
||||
@@ -49,9 +50,10 @@ To make our scripts run correctly, several shell utilities should be available t
|
||||
# How to Build
|
||||
|
||||
After setting up prerequisites, let's built the engine:
|
||||
{% highlight bash %}
|
||||
|
||||
```
|
||||
make
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
Upon first build, `make` would try to setup prerequisites, required for further development and pre-commit testing:
|
||||
- stm32f3 and stm32f4 libraries
|
||||
@@ -60,32 +62,36 @@ Upon first build, `make` would try to setup prerequisites, required for further
|
||||
- vera++ 1.2.1
|
||||
|
||||
It may take time, so go grab some coffee:
|
||||
{% highlight bash %}
|
||||
|
||||
```bash
|
||||
Setting up prerequisites... (log file: ./build/prerequisites/prerequisites.log)
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
## How to Build Debug Version
|
||||
To build debug version for Linux:
|
||||
{% highlight bash %}
|
||||
|
||||
```bash
|
||||
make debug.linux
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
To build debug version for Linux without LTO (Link Time Optimization):
|
||||
{% highlight bash %}
|
||||
|
||||
```bash
|
||||
LTO=off make debug.linux
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
# How to Run Unittests
|
||||
{% highlight bash %}
|
||||
```bash
|
||||
make unittests
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
# How to Check the Patch
|
||||
{% highlight bash %}
|
||||
```bash
|
||||
make precommit -j
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
Sometimes pre-commit testing fails, in that case you'll see message like that:
|
||||
{% highlight bash %}
|
||||
|
||||
```bash
|
||||
Build failed. See ./build/bin/unittests/make.log for details.
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user