Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse Titan
titan.core
Commits
a9f6803c
Commit
a9f6803c
authored
Feb 14, 2020
by
Arpad Lovassy
Committed by
Gerrit Code Review
Feb 14, 2020
Browse files
Merge "BER* moved into EncodeDecode/BER"
parents
cdc0bfa5
cd0ae33a
Changes
32
Expand all
Hide whitespace changes
Inline
Side-by-side
regression_test/BER/.gitignore
deleted
100644 → 0
View file @
cdc0bfa5
Regr
Regr.cc
Regr_se[qt].cc
Regr_se[qt]of.cc
Regr_union.cc
Regr.hh
Regr.log
Regr1.cc
Regr1_se[qt].cc
Regr1_se[qt]of.cc
Regr1_union.cc
Regr1.hh
Regr2.cc
Regr2_se[qt].cc
Regr2_se[qt]of.cc
Regr2_union.cc
Regr2.hh
regression_test/BER/MyPort1.cc
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Forstner, Matyas
* Lovassy, Arpad
* Raduly, Csaba
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
// This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.2.pl2
// for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002
// You may modify this file. Complete the body of empty functions and
// add your member functions here.
#include "MyPort1.hh"
#ifndef OLD_NAMES
namespace
Regr
{
#endif
MyPort1
::
MyPort1
(
const
char
*
par_port_name
)
:
MyPort1_BASE
(
par_port_name
)
{
}
MyPort1
::~
MyPort1
()
{
}
void
MyPort1
::
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
)
{
}
void
MyPort1
::
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
)
{
}
void
MyPort1
::
user_map
(
const
char
*
system_port
)
{
}
void
MyPort1
::
user_unmap
(
const
char
*
system_port
)
{
}
void
MyPort1
::
user_start
()
{
}
void
MyPort1
::
user_stop
()
{
}
#ifndef OLD_NAMES
#define SEND_MACRO(module, type) \
void MyPort1::outgoing_send(const module::type& send_par) \
{ \
TTCN_Buffer buf; \
send_par.encode(module::type##_descr_, buf, \
TTCN_EncDec::CT_BER, BER_ENCODE_DER); \
OCTETSTRING os; \
buf.get_string(os); \
incoming_message(os); \
}
#else
#define SEND_MACRO(module, type) \
void MyPort1::outgoing_send(const type& send_par) \
{ \
TTCN_Buffer buf; \
send_par.encode(type##_descr_, buf, \
TTCN_EncDec::CT_BER, BER_ENCODE_DER); \
OCTETSTRING os; \
buf.get_string(os); \
incoming_message(os); \
}
#endif
SEND_MACRO
(
Regr1
,
T0
)
SEND_MACRO
(
Regr1
,
T2
)
SEND_MACRO
(
Regr1
,
T3
)
SEND_MACRO
(
Regr1
,
T4
)
SEND_MACRO
(
Regr1
,
T5
)
SEND_MACRO
(
Regr1
,
T6
)
SEND_MACRO
(
Regr1
,
T7
)
SEND_MACRO
(
Regr1
,
T8
)
SEND_MACRO
(
Regr2
,
T10
)
SEND_MACRO
(
Regr2
,
T11
)
#ifndef OLD_NAMES
}
/* end of namespace */
#endif
regression_test/BER/MyPort1.hh
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Forstner, Matyas
* Lovassy, Arpad
* Raduly, Csaba
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
// This Test Port skeleton header file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.2.pl2
// for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002
// You may modify this file. Add your attributes and prototypes of your
// member functions here.
#ifndef MyPort1_HH
#define MyPort1_HH
#include "Regr.hh"
#ifndef OLD_NAMES
namespace
Regr
{
#define REGR1_NS Regr1::
#define REGR2_NS Regr2::
#else
#define REGR1_NS
#define REGR2_NS
#endif
class
MyPort1
:
public
MyPort1_BASE
{
public:
MyPort1
(
const
char
*
par_port_name
);
~
MyPort1
();
void
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
);
void
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
);
protected:
void
user_map
(
const
char
*
system_port
);
void
user_unmap
(
const
char
*
system_port
);
void
user_start
();
void
user_stop
();
void
outgoing_send
(
const
REGR1_NS
T0
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T1
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T3
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T4
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T5
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T6
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T7
&
send_par
);
void
outgoing_send
(
const
REGR1_NS
T8
&
send_par
);
void
outgoing_send
(
const
REGR2_NS
T10
&
send_par
);
void
outgoing_send
(
const
REGR2_NS
T11
&
send_par
);
};
#ifndef OLD_NAMES
}
/* end of namespace */
#endif
#endif
regression_test/BER/MyPort2.cc
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Forstner, Matyas
* Lovassy, Arpad
* Raduly, Csaba
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
// This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.2.pl2
// for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002
// You may modify this file. Complete the body of empty functions and
// add your member functions here.
#include "MyPort2.hh"
#ifndef OLD_NAMES
namespace
Regr
{
#endif
MyPort2
::
MyPort2
(
const
char
*
par_port_name
)
:
MyPort2_BASE
(
par_port_name
)
{
}
MyPort2
::~
MyPort2
()
{
}
void
MyPort2
::
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
)
{
}
void
MyPort2
::
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
)
{
}
void
MyPort2
::
user_map
(
const
char
*
system_port
)
{
}
void
MyPort2
::
user_unmap
(
const
char
*
system_port
)
{
}
void
MyPort2
::
user_start
()
{
}
void
MyPort2
::
user_stop
()
{
}
#ifndef OLD_NAMES
#define DECODER_MACRO(module, type) \
{ \
module::type pdu; \
TTCN_EncDec::clear_error(); \
buf.rewind(); \
pdu.decode(module::type##_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); \
if(TTCN_EncDec::get_last_error_type() == TTCN_EncDec::ET_NONE) { \
incoming_message(pdu); \
return; \
} \
}
#else
#define DECODER_MACRO(module, type) \
{ \
type pdu; \
TTCN_EncDec::clear_error(); \
buf.rewind(); \
pdu.decode(type##_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); \
if(TTCN_EncDec::get_last_error_type() == TTCN_EncDec::ET_NONE) { \
incoming_message(pdu); \
return; \
} \
}
#endif
void
MyPort2
::
outgoing_send
(
const
OCTETSTRING
&
send_par
)
{
TTCN_EncDec
::
set_error_behavior
(
TTCN_EncDec
::
ET_ALL
,
TTCN_EncDec
::
EB_WARNING
);
TTCN_Buffer
buf
(
send_par
);
DECODER_MACRO
(
Regr1
,
T0
)
DECODER_MACRO
(
Regr1
,
T2
)
DECODER_MACRO
(
Regr1
,
T3
)
DECODER_MACRO
(
Regr1
,
T4
)
DECODER_MACRO
(
Regr1
,
T5
)
DECODER_MACRO
(
Regr1
,
T6
)
DECODER_MACRO
(
Regr1
,
T7
)
DECODER_MACRO
(
Regr1
,
T8
)
DECODER_MACRO
(
Regr2
,
T10
)
DECODER_MACRO
(
Regr2
,
T11
)
}
#ifndef OLD_NAMES
}
/* end of namespace */
#endif
regression_test/BER/MyPort2.hh
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Forstner, Matyas
* Lovassy, Arpad
* Raduly, Csaba
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
// This Test Port skeleton header file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.2.pl2
// for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002
// You may modify this file. Add your attributes and prototypes of your
// member functions here.
#ifndef MyPort2_HH
#define MyPort2_HH
#include "Regr.hh"
#ifndef OLD_NAMES
namespace
Regr
{
#endif
class
MyPort2
:
public
MyPort2_BASE
{
public:
MyPort2
(
const
char
*
par_port_name
);
~
MyPort2
();
void
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
);
void
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
);
protected:
void
user_map
(
const
char
*
system_port
);
void
user_unmap
(
const
char
*
system_port
);
void
user_start
();
void
user_stop
();
void
outgoing_send
(
const
OCTETSTRING
&
send_par
);
};
#ifndef OLD_NAMES
}
/* end of namespace */
#endif
#endif
regression_test/BER/Regr.ttcn
deleted
100644 → 0
View file @
cdc0bfa5
This diff is collapsed.
Click to expand it.
regression_test/BER_x682/.gitignore
deleted
100644 → 0
View file @
cdc0bfa5
X
X.cc
X_se[qt].cc
X_se[qt]of.cc
X_union.cc
X.hh
X.log
X682.cc
X682_se[qt].cc
X682_se[qt]of.cc
X682_union.cc
X682.hh
compile
regression_test/BER_x682/Makefile
deleted
100644 → 0
View file @
cdc0bfa5
##############################################################################
# Copyright (c) 2000-2019 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Balasko, Jeno
# Delic, Adam
# Koppany, Csaba
# Kovacs, Ferenc
# Raduly, Csaba
# Szabados, Kristof
# Szabo, Bence Janos
# Szabo, Janos Zoltan – initial implementation
#
##############################################################################
TOPDIR
:=
..
include
$(TOPDIR)/Makefile.regression
.PHONY
:
all clean dep run
TTCN3_LIB
=
ttcn3
$(RT2_SUFFIX)$(DYNAMIC_SUFFIX)
TTCN3_MODULES
=
X.ttcn
ASN1_MODULES
=
X682.asn
GENERATED_SOURCES
=
$(TTCN3_MODULES:.ttcn=.cc)
$(ASN1_MODULES:.asn=.cc)
GENERATED_HEADERS
=
$(TTCN3_MODULES:.ttcn=.hh)
$(ASN1_MODULES:.asn=.hh)
ifdef
CODE_SPLIT
GENERATED_SOURCES
:=
$(
foreach
file,
$(GENERATED_SOURCES:.cc=)
,
$(
addprefix
$(file)
, .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc
))
else
ifdef
SPLIT_TO_SLICES
POSTFIXES
:=
$(
foreach
file,
$(SPLIT_TO_SLICES)
,
$(
addsuffix
$(file)
, _part_
))
POSTFIXES
:=
$(
foreach
file,
$(POSTFIXES)
,
$(
addprefix
$(file)
, .cc
))
GENERATED_SOURCES2
:=
$(
foreach
file,
$(GENERATED_SOURCES:.cc=)
,
$(
addprefix
$(file)
,
$(POSTFIXES)
))
GENERATED_SOURCES
+=
$(GENERATED_SOURCES2)
endif
USER_SOURCES
=
MyPort1.cc MyPort2.cc
USER_HEADERS
=
MyPort1.hh MyPort2.hh
OBJECTS
=
$(GENERATED_SOURCES:.cc=.o)
$(USER_SOURCES:.cc=.o)
TARGET
=
X
$(EXESUFFIX)
all
:
$(TARGET)
$(TARGET)
:
$(GENERATED_SOURCES) $(USER_SOURCES)
$(CXX)
$(CPPFLAGS)
$(CXXFLAGS)
$(LDFLAGS)
-o
$@
$^
-L
$(TTCN3_DIR)
/lib
-l
$(TTCN3_LIB)
\
-L
$(OPENSSL_DIR)
/lib
-lcrypto
$
(
$(PLATFORM)
_LIBS
)
$(GENERATED_SOURCES) $(GENERATED_HEADERS)
:
compile
compile
:
$(TTCN3_MODULES) $(ASN1_MODULES)
$(TTCN3_COMPILER)
$^
touch
compile
clean distclean
:
-
rm
-f
$(TARGET)
$(OBJECTS)
$(GENERATED_HEADERS)
\
$(GENERATED_SOURCES)
compile
*
.log
dep
:
$(GENERATED_SOURCES)
makedepend
$(CPPFLAGS)
$(USER_SOURCES)
$(GENERATED_SOURCES)
run
:
$(TARGET) X.cfg
./
$^
MyPort1.o
:
MyPort1.hh X.hh X682.hh MyPort2.hh
MyPort2.o
:
MyPort2.hh X.hh X682.hh MyPort1.hh
X.o
:
X.hh X682.hh MyPort1.hh MyPort2.hh
X682.o
:
X682.hh
ifdef
SRCDIR
$(foreach
src,
$(USER_SOURCES),
$(eval
vpath
$(src)
$(ABS_SRC)))
endif
regression_test/BER_x682/MyPort1.cc
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Delic, Adam
* Forstner, Matyas
* Koppany, Csaba
* Lovassy, Arpad
* Raduly, Csaba
* Szabo, Janos Zoltan – initial implementation
*
******************************************************************************/
// This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.3.pl0
// for Matyas Forstner (tmpmfr@saussure) on Thu Apr 10 16:06:07 2003
// You may modify this file. Complete the body of empty functions and
// add your member functions here.
#include "MyPort1.hh"
#ifndef OLD_NAMES
using
namespace
X682
;
namespace
X
{
#endif
MyPort1
::
MyPort1
(
const
char
*
par_port_name
)
:
MyPort1_BASE
(
par_port_name
)
{
}
MyPort1
::~
MyPort1
()
{
}
void
MyPort1
::
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
)
{
}
void
MyPort1
::
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
)
{
}
void
MyPort1
::
user_map
(
const
char
*
system_port
)
{
}
void
MyPort1
::
user_unmap
(
const
char
*
system_port
)
{
}
void
MyPort1
::
user_start
()
{
}
void
MyPort1
::
user_stop
()
{
}
void
MyPort1
::
outgoing_send
(
const
ErrorReturn
&
send_par
)
{
TTCN_Buffer
buf
;
send_par
.
encode
(
ErrorReturn_descr_
,
buf
,
TTCN_EncDec
::
CT_BER
,
BER_ENCODE_DER
);
OCTETSTRING
os
;
buf
.
get_string
(
os
);
incoming_message
(
os
);
}
#ifndef OLD_NAMES
}
#endif
regression_test/BER_x682/MyPort1.hh
deleted
100644 → 0
View file @
cdc0bfa5
/******************************************************************************
* Copyright (c) 2000-2019 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Delic, Adam
* Koppany, Csaba
* Lovassy, Arpad
* Raduly, Csaba
*
******************************************************************************/
// This Test Port skeleton header file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version 1.3.pl0
// for Matyas Forstner (tmpmfr@saussure) on Thu Apr 10 16:06:07 2003
// You may modify this file. Add your attributes and prototypes of your
// member functions here.
#ifndef MyPort1_HH
#define MyPort1_HH
#include "X.hh"
#ifndef OLD_NAMES
#define X682NS X682::
namespace
X
{
#else
#define X682NS
#endif
class
MyPort1
:
public
MyPort1_BASE
{
public:
MyPort1
(
const
char
*
par_port_name
);
~
MyPort1
();
void
set_parameter
(
const
char
*
parameter_name
,
const
char
*
parameter_value
);
void
Event_Handler
(
const
fd_set
*
read_fds
,
const
fd_set
*
write_fds
,
const
fd_set
*
error_fds
,
double
time_since_last_call
);
protected:
void
user_map
(
const
char
*
system_port
);
void
user_unmap
(
const
char
*
system_port
);