Commit ff69ca9f authored by Yann Garcia's avatar Yann Garcia
Browse files

Review README file

parent 619a1096
Loading
Loading
Loading
Loading
+36 −20
Original line number Diff line number Diff line
@@ -85,6 +85,20 @@ Procedure on the host machine:
$ git clone --recurse-submodules https://forge.etsi.org/gitlab/ITS/TS.ITS.git ./TS.ITS_r1
```

- Select the branch you need:

 ITS Release 1

```sh
$ git checkout devel
```

 ITS Release 2

```sh
$ git checkout ttf_t024
```

- From the ETSI ITS Test System root directory, build the Docker image executing the following commands:

```sh
@@ -268,41 +282,43 @@ Procedure:
    - $HOME/dev
    - $HOME/lib
- In $HOME/frameworks, build the following package:
    - asn1c, according the procedure specified [here](https://github.com/vlm/asn1c.git)
    - Eclipse IDE for C/C++ Developers, according the procedure specified [here](https://www.eclipse.org/cdt/)
    - asn1c, according the procedure specified [here](https://github.com/fillabs/asn1c.git)
    - TITAN, according the procedure specified [here](https://github.com/eclipse/titan.core)
    - Import the TITAN plugin into your Eclipse IDE, according the procedure specified [here](https://github.com/eclipse/titan.core)

- Clone the ETSI ITS protocols project into $HOME/dev folder

```sh
$ git clone --recurse-submodules https://forge.etsi.org/gitlab/ITS/TS.ITS.git ./TS.ITS_r1
```

- Update your default environment with the content of the script $HOME/dev/TS.ITS_r1/scripts/devenv.bash.ubuntu
- Switch to the next clause (Usage)
- Select the branch you need:

 ITS Release 1 (this example)

### Using Eclipse TITAN
```sh
$ git checkout devel
```

 ITS Release 2

When cloning the ETSI ITS project, you can find two specific files:
- TTF011.tpd
- TTF011_Linux.tpd
```sh
$ git checkout ttf_t024
```

These two files are used create the ETSI ITS project workspace on Eclipse TITAN. To do it, please follow the steps below:
- Start eclipse using a new workspace, (e.g. with the name workspace_titan)
- Select the menu option File/import
- In the Dialog box,select TITAN/Project from .tpd file
- Select the correct TTF011.tpd file and follow the instructions
- Apply the configuration

NOTE: When the Eclipse TITAN workspace is created, you have to build manually the librairy 'libasn1c.so' following the commands below:
```sh
$ cd <eclipse workspace>/TS.ITS_r1/
$ mkdir -p ./bin/asn1
$ cd ./bin/asn1
$ make CC=gcc -f ../../asn1/Makefile
$ rm *.cc # To prevent TITAN to import these .cc source files into our project
$ ./switch_its_r2.sh
```

- Build a test suite (e.g. AtsCAM)

```sh
$ export ATS=AtsCAM && make
```

- Switch to the next clause (Usage)


# Usage

+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ set -o emacs
export HOME_FRAMEWORKS=${HOME}/frameworks
export HOME_LIB=${HOME}/lib
export HOME_BIN=${HOME}/bin
export HOME_BIN=${HOME}/include
export HOME_ETC=${HOME}/etc
export HOME_TMP=${HOME}/tmp
export HOME_DOCS=${HOME}/docs
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ set -o emacs
export HOME_FRAMEWORKS=${HOME}/frameworks
export HOME_LIB=${HOME}/lib
export HOME_BIN=${HOME}/bin
export HOME_BIN=${HOME}/include
export HOME_ETC=${HOME}/etc
export HOME_TMP=${HOME}/tmp
export HOME_DOCS=${HOME}/docs
+2 −2
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@

# Turn on debug mode
#set -vx

set -e
#set -e

# Colors and Prompt
#export PS1="\w\$ "
@@ -17,6 +16,7 @@ set -o emacs
export HOME_FRAMEWORKS=${HOME}/frameworks
export HOME_LIB=${HOME}/lib
export HOME_BIN=${HOME}/bin
export HOME_BIN=${HOME}/include
export HOME_ETC=${HOME}/etc
export HOME_TMP=${HOME}/tmp
export HOME_DOCS=${HOME}/docs
Original line number Diff line number Diff line
Subproject commit 0a28ff34d9ca15d6ed481dad98485210e4d6e179
Subproject commit 554d6b6b3ce1e51d88267a3c946cd30caac97a55