Commit d44e3c4f authored by Elemer Lelik's avatar Elemer Lelik
Browse files

Last sync 2016.04.01

parent b3f626b0
############################################################################### ##############################################################################
# Copyright (c) 2000-2015 Ericsson Telecom AB # Copyright (c) 2000-2016 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0 # are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at # which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html # http://www.eclipse.org/legal/epl-v10.html
############################################################################### #
# Contributors:
# Balasko, Jeno
# Lovassy, Arpad
#
##############################################################################
# #
# "org_eclipse_titan_executor_jni_JNIMiddleWare.h" is generated by javah (java header generator tool) # "org_eclipse_titan_executor_jni_JNIMiddleWare.h" is generated by javah (java header generator tool)
# DO NOT EDIT THAT FILE UNLESS YOU KNOW WHAT YOU ARE DOING # DO NOT EDIT THAT FILE UNLESS YOU KNOW WHAT YOU ARE DOING
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Balasko, Jeno
* Lovassy, Arpad
*
******************************************************************************/
#include "jnimw.h" #include "jnimw.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Balasko, Jeno
* Lovassy, Arpad
*
******************************************************************************/
#ifndef JNIMW_JNIMW_H #ifndef JNIMW_JNIMW_H
#define JNIMW_JNIMW_H #define JNIMW_JNIMW_H
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Baji, Laszlo
* Balasko, Jeno
* Lovassy, Arpad
*
******************************************************************************/
#include "jnimw.h" #include "jnimw.h"
#include "org_eclipse_titan_executor_jni_JNIMiddleWare.h" #include "org_eclipse_titan_executor_jni_JNIMiddleWare.h"
#include <sys/socket.h> #include <sys/socket.h>
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Balasko, Jeno
* Lovassy, Arpad
*
******************************************************************************/
/* DO NOT EDIT THIS FILE - it is machine generated */ /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h> #include <jni.h>
/* Header for class org_eclipse_titan_executor_jni_JNIMiddleWare */ /* Header for class org_eclipse_titan_executor_jni_JNIMiddleWare */
......
############################################################################### ##############################################################################
# Copyright (c) 2000-2015 Ericsson Telecom AB # Copyright (c) 2000-2016 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0 # are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at # which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html # http://www.eclipse.org/legal/epl-v10.html
############################################################################### #
# Contributors:
#
# Baji, Laszlo
# Balasko, Jeno
# Delic, Adam
# Forstner, Matyas
# Godar, Marton
# Horvath, Gabriella
# Koppany, Csaba
# Kovacs, Ferenc
# Kovacs, Zoltan
# Kremer, Peter
# Lovassy, Arpad
# Ormandi, Matyas
# Raduly, Csaba
# Szabados, Kristof
# Szabo, Janos Zoltan – initial implementation
# Torpis, Zsolt
# Zalanyi, Balazs Andor
#
##############################################################################
# Main Makefile for the TTCN-3 Test Executor # Main Makefile for the TTCN-3 Test Executor
# For use with GNU make only. # For use with GNU make only.
...@@ -65,8 +86,8 @@ endif ...@@ -65,8 +86,8 @@ endif
$(MAKE) -C $$dir $@ || exit; \ $(MAKE) -C $$dir $@ || exit; \
done done
ifeq ($(LICENSING), yes) ifeq ($(LICENSING), yes)
mkdir -p $(ETCDIR)/license mkdir -p $(ETCDIR)/licensegen
cp license/license.dat $(ETCDIR)/license cp licensegen/license.dat $(ETCDIR)/license
endif endif
chmod -R +r,go-w $(TTCN3_DIR) chmod -R +r,go-w $(TTCN3_DIR)
......
############################################################################### ###############################################################################
# Copyright (c) 2000-2015 Ericsson Telecom AB # Copyright (c) 2000-2016 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0 # are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at # which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html # http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# >
# Baji, Laszlo
# Balasko, Jeno
# Baranyi, Botond
# Beres, Szabolcs
# Delic, Adam
# Feher, Csaba
# Forstner, Matyas
# Kovacs, Ferenc
# Kremer, Peter
# Lovassy, Arpad
# Ormandi, Matyas
# Pandi, Krisztian
# Raduly, Csaba
# Szabados, Kristof
# Szabo, Janos Zoltan – initial implementation
# Szalai, Endre
# Zalanyi, Balazs Andor
#
############################################################################### ###############################################################################
ifndef TOP ifndef TOP
$(error please define TOP) $(error please define TOP)
...@@ -67,7 +88,7 @@ JNI := yes ...@@ -67,7 +88,7 @@ JNI := yes
# Path of the Java Developement Kit installation # Path of the Java Developement Kit installation
# (must be at least version 1.5.0_10) # (must be at least version 1.5.0_10)
JDKDIR := /usr/lib/jvm/default-java JDKDIR := /mnt/TTCN/Tools/jdk1.5.0_11
# Path of OpenSSL installation: (always required) # Path of OpenSSL installation: (always required)
OPENSSL_DIR := default OPENSSL_DIR := default
......
############################################################################### ##############################################################################
# Copyright (c) 2000-2015 Ericsson Telecom AB # Copyright (c) 2000-2016 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0 # are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at # which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html # http://www.eclipse.org/legal/epl-v10.html
############################################################################### #
# Contributors:
# Balasko, Jeno
# Baranyi, Botond
# Forstner, Matyas
# Kovacs, Ferenc
# Pandi, Krisztian
# Raduly, Csaba
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
# General stuff (to be included at the end of makefiles). The # General stuff (to be included at the end of makefiles). The
# following variables are used: DEPFILES, SUBDIRS... # following variables are used: DEPFILES, SUBDIRS...
......
****************************************************************************** ******************************************************************************
* Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* Balasko, Jeno
* Baranyi, Botond
* Pilisi, Gergely
****************************************************************************** ******************************************************************************
Cygwin setup Cygwin setup
- If Cygwin is installed already, refresh your Cygwin installation - If Cygwin is installed already, refresh your Cygwin installation
Titan is always build for the newest Cygwin version available. Titan is always build for the newest Cygwin version available.
Start the Cygwin setup utility (see below), it will refresh your Start the Cygwin setup utility (see below), it will refresh your
installed Cygwin packages to the newest versions. installed Cygwin packages to the newest versions.
- If Cygwin is not installed yet: - If Cygwin is not installed yet:
(A) Download and execute the latest cygwin installer utility, (A) Download and execute the latest cygwin installer utility,
please use the 64-bit version installer: please use the 64-bit version installer:
https://cygwin.com/setup-x86_64.exe https://cygwin.com/setup-x86_64.exe
(B) Select Install from Internet (recommended to save local disk space) (B) Select Install from Internet (recommended to save local disk space)
(C) Choose Cygwin installation root directory (C:\cygwin is recommended) (C) Choose Cygwin installation root directory (C:\cygwin is recommended)
Select All Users, or Just Me. Select All Users, or Just Me.
(D) Select "Local Package Directory" (typically the same directory, (D) Select "Local Package Directory" (typically the same directory,
where the setup....exe Cygwin installer utility is stored). where the setup....exe Cygwin installer utility is stored).
(E) Use Internet Explorer Proxy Settings (recommended). (E) Use Internet Explorer Proxy Settings (recommended).
(F) Select a download mirror site. (F) Select a download mirror site.
(G) In the package selection dialog, (G) In the package selection dialog,
Note: You can select different views to find the required packages Note: You can select different views to find the required packages
easier and/or search the packages via the search field. easier and/or search the packages via the search field.
There are 3 hierarchical levels of minimally required packages, There are 3 hierarchical levels of minimally required packages,
depending on your task. depending on your task.
Note: Cygwin installer will automatically select the packages the Note: Cygwin installer will automatically select the packages the
manually selected ones are depending on; do NOT deselect manually selected ones are depending on; do NOT deselect
any automatically selected package! any automatically selected package!
a) Test execution ONLY (command line or from Eclipse Executor): a) Test execution ONLY (command line or from Eclipse Executor):
Base: <all packages> (Default setting of the installer) Base: <all packages> (Default setting of the installer)
Net: openssl Net: openssl
Tcl: expect Tcl: expect
b) Test case development: in addition to the above select the b) Test case development: in addition to the above select the
following packages: following packages:
Devel: binutils Devel: binutils
Devel: gcc-g++ Devel: gcc-g++
Devel: make Devel: make
Libs: libxml2-devel Libs: libxml2-devel
Net: openssl-devel (automatically installs Net:openssl Net: openssl-devel (automatically installs Net:openssl
as well, if selected) as well, if selected)
c) To compile your own Titan Cygwin binary: in addition to the c) To compile your own Titan Cygwin binary: in addition to the
above, select the following packages: above, select the following packages:
Devel: bison Devel: bison
Devel: ctags Devel: ctags
Devel: cygwin32-expat Devel: cygwin32-expat
Devel: diffstat Devel: diffstat
Devel: flex Devel: flex
Devel: gcc-core Devel: gcc-core
Editors: <any editor of your preference> (optional) Editors: <any editor of your preference> (optional)
Libs: libncurses-devel Libs: libncurses-devel
Libs: libreadline-devel Libs: libreadline-devel
If, after selecting the required packages and clicking on the If, after selecting the required packages and clicking on the
"Next" button, a "Resolving Dependcies" window lists further "Next" button, a "Resolving Dependcies" window lists further
required packages, ensure that the "Select required packages required packages, ensure that the "Select required packages
(RECOMMENDED)" checkbox is checked and click the "Next" button. (RECOMMENDED)" checkbox is checked and click the "Next" button.
(H) Select the Create icon on Desktop checkbox (H) Select the Create icon on Desktop checkbox
(I) (Optional) (I) (Optional)
Your "unix" home directory, by default is: Your "unix" home directory, by default is:
<your cygwin installation directory>/home/<yourUserId> <your cygwin installation directory>/home/<yourUserId>
If you are (also) working in command line mode, it is a good If you are (also) working in command line mode, it is a good
practice to change this to the folder where your TTCN-3 projects practice to change this to the folder where your TTCN-3 projects
are. are.
Edit the file <your cygwin installation directory>/etc/passw: Edit the file <your cygwin installation directory>/etc/passw:
In the line: In the line:
<yourUserId>:unused:<xxxxxx>:<yyyyy>:U-<yourDomain>\<yourUserId>, <yourUserId>:unused:<xxxxxx>:<yyyyy>:U-<yourDomain>\<yourUserId>,
S-1-5-21-nnnnnn...nnnnnn:/home/<yourUserId>:/bin/bash S-1-5-21-nnnnnn...nnnnnn:/home/<yourUserId>:/bin/bash
replace "/home/<yourUserId>" with the folder of your preference. replace "/home/<yourUserId>" with the folder of your preference.
Note: you can access all Windows drives from Cygwin as Note: you can access all Windows drives from Cygwin as
/cygdrive/<windowsDriveLetter>". /cygdrive/<windowsDriveLetter>".
Example: to set your "unix" home directory to the "My_Home" folder Example: to set your "unix" home directory to the "My_Home" folder
within your Windows Documents folder, you should replace within your Windows Documents folder, you should replace
"/home/<yourUserId>" by "/home/<yourUserId>" by
"/cygdrive/c/Users/<yourUserId>/Documents/My_Home" "/cygdrive/c/Users/<yourUserId>/Documents/My_Home"
WARNING: The path of your "unix" home directory shall not contain WARNING: The path of your "unix" home directory shall not contain
any space! any space!
(J) Using the bynary Titan package: download the Titan package for from (J) Using the bynary Titan package: download the Titan package for from
GitHub. Unpack the Titan package into a folder of your choice. GitHub. Unpack the Titan package into a folder of your choice.
Note: It is not a requirement, but is a kind of best practice to Note: It is not a requirement, but is a kind of best practice to
place Titan into a subfolder within your "unix" home directory. place Titan into a subfolder within your "unix" home directory.
Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc
file. Add these lines to it: file. Add these lines to it:
export PATH=${TTCN3_DIR}/bin:${PATH} export PATH=${TTCN3_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${TTCN3_DIR}/lib:${LD_LIBRARY_PATH}
(K) Compile Titan with Cygwin: (K) Compile Titan with Cygwin:
Get the latest source code from GitHub. Get the latest source code from GitHub.
Download and install JDK from Oracle's download site: Download and install JDK from Oracle's download site:
http://www.oracle.com/technetwork/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/index.html
Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc Edit the <your cygwin installation directory>/home/<yourUserId>/.bashrc
as above. as above.
Create titan/Makefile.personal with the following content: Create titan/Makefile.personal with the following content:
TTCN3_DIR := /home/<user id>/git/titan/Install TTCN3_DIR := /home/<user id>/git/titan/Install
JDKDIR := /home/<user id>/jdk JDKDIR := /home/<user id>/jdk
JNI := no JNI := no
GUI := no GUI := no
GEN_PDF := no GEN_PDF := no
DEBUG := no DEBUG := no
Compile Titan: Compile Titan:
cd titan cd titan
make -j make -j
make install make install
The compiled files will be placed into the titan/Install directory. The compiled files will be placed into the titan/Install directory.
(L) If you want to use graphical tools (like nedit for example), then you need to install the Cygwin/X (L) If you want to use graphical tools (like nedit for example), then you need to install the Cygwin/X
component too. The install procedure can be found at the homepage: component too. The install procedure can be found at the homepage:
http://x.cygwin.com/docs/ug/cygwin-x-ug.html http://x.cygwin.com/docs/ug/cygwin-x-ug.html
****************************************************************************** ******************************************************************************
* Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* Contributors:
* Balasko, Jeno
* Baranyi, Botond
* Lelik, Elemer
* Pilisi, Gergely
* Szabados, Kristof
****************************************************************************** ******************************************************************************
Build and install Titan on Linux Build and install Titan on Linux
...@@ -32,7 +38,7 @@ LICENSING := no ...@@ -32,7 +38,7 @@ LICENSING := no
USAGE_STATS := no USAGE_STATS := no
Several build options are possible; for details on options, please read through the Makefile.cfg. Several build options are possible; for details on options , please read through the Makefile.cfg.
Options can be overridden by the content of a file named Makefile.personal which can be used to Options can be overridden by the content of a file named Makefile.personal which can be used to
adapt to local installation directories, change config options etc. adapt to local installation directories, change config options etc.
Below, a small number of typical scenarios are presented. Below, a small number of typical scenarios are presented.
...@@ -54,6 +60,7 @@ GEN_PDF := no ...@@ -54,6 +60,7 @@ GEN_PDF := no
b) JNI enabled b) JNI enabled
install JDK into /home/<user id>/jdk install JDK into /home/<user id>/jdk
...@@ -97,7 +104,7 @@ make install ...@@ -97,7 +104,7 @@ make install
This will install Titan into /home/<user id>/titan.core/Install This will install Titan into /home/<user id>/titan.core/Install
7. Optionally, run function/regression tests 7. Optionally , run function/regression tests
cd /home/<user id>/titan.core/function_test cd /home/<user id>/titan.core/function_test
...@@ -123,5 +130,7 @@ make run ...@@ -123,5 +130,7 @@ make run
These tests might run for half an hour (regr.tests) to two hours (func.tests) These tests might run for half an hour (regr.tests) to two hours (func.tests)
8. Optionally, copy Titan into its final directory. 8. Optionally , copy Titan into its final directory.
From here on, you can continue with the Titan installation guide, see /Install/docs, to set/change environment variables etc. From here on, you can continue with the Titan installation guide, see /Install/docs,
to set/change environment variables etc.
****************************************************************************** ******************************************************************************
* Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* Contributors:
*
* Balasko, Jeno
* Baranyi, Botond
****************************************************************************** ******************************************************************************
MinGW setup MinGW setup
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Balasko, Jeno
* Baranyi, Botond
*
******************************************************************************/
#ifndef CHARCODING_HH #ifndef CHARCODING_HH
#define CHARCODING_HH #define CHARCODING_HH
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors:
* Balasko, Jeno
* Baranyi, Botond
*
******************************************************************************/
#include <cstring> #include <cstring>
......
/////////////////////////////////////////////////////////////////////////////// /******************************************************************************
// Copyright (c) 2000-2015 Ericsson Telecom AB * Copyright (c) 2000-2016 Ericsson Telecom AB
// All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
/////////////////////////////////////////////////////////////////////////////// *
* Contributors: