|
Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750389 is a reply to message #1750358] |
Tue, 20 December 2016 15:43 |
|
Hi MinBum,
thank you for your interest.
possibly something went wrong when installing Titan or the environment was not set properly.
the first thing you should do is what Titan suggests:
run a "make clean" In the directory where you compile.
If it does not help, pls. send me the result of the following commands:
printenv | grep TTCN
printenv | grep PATH
compiler -v
which compiler
(there are a few environment variables to be set , see ch. 3.1
Environmental Variables of the Titan installation guide)
and also your settings in Eclipse related to the Titan path(Titan installation path in Titan preferences).
(for details here, see Eclipse_installation_guide)
Best regards
Elemer
|
|
|
|
|
Re: Version mismatch between TTCN-3 Compiler and the base library [message #1750511 is a reply to message #1750463] |
Wed, 21 December 2016 21:49 |
|
Hi MinBum,
Hopefully rebuild the "hello" was successful. If not:
as I see, You built your own titan and something confusing happened. I would suggest to start again and execute these steps:
cd /home/minbum.kim/titan/
make distclean
make
make install
Hopefully it is finished with lines like these ones:
-L/cygdrive/c/Users/ETHBAAT/git/titan.core/Install/lib -lxml2; \
then : ; else /cygdrive/c/Users/ETHBAAT/git/titan.core/Install/bin/titanver MyExample.o hello_world.o PCOType.o; exit 1; fi
make[2]: Leaving directory '/cygdrive/c/Users/ETHBAAT/git/titan.core/Install/demo'
ttcn3_start: Starting the test suite
spawn /cygdrive/c/Users/ETHBAAT/git/titan.core/Install/bin/mctr_cli MyExample.cfg
*************************************************************************
* TTCN-3 Test Executor - Main Controller 2 *
* Version: CRL 113 200/6 R1A *
* Copyright (c) 2000-2016 Ericsson Telecom AB *
* All rights reserved. This program and the accompanying materials *
* are made available under the terms of the Eclipse Public License v1.0 *
* which accompanies this distribution, and is available at *
* http://www.eclipse.org/legal/epl-v10.html *
*************************************************************************
Using configuration file: MyExample.cfg
MC@HU00078244: Listening on TCP port 55515.
MC2> HU00078244.ericsson.se is the default
spawn ./MyExample HU00078244.ericsson.se 55515
TTCN-3 Host Controller (parallel mode), version CRL 113 200/6 R1A
MC@HU00078244: New HC connected from HU00078244.ericsson.se [192.168.0.4]. HU00078244: CYGWIN_NT-6.1 2.5.1(0.297/5/3) on x86_64.
cmtc
MC@HU00078244: Downloading configuration file to all HCs.
MC@HU00078244: Configuration file was processed on all HCs.
MC@HU00078244: Creating MTC on host HU00078244.ericsson.se.
MC@HU00078244: MTC is created.
MC2> smtc
Executing all items of [EXECUTE] section.
MC2> MTC@HU00078244: Execution of control part in module MyExample started.
MTC@HU00078244: Test case HelloW started.
Hello, world!
MTC@HU00078244: Test case HelloW finished. Verdict: pass
MTC@HU00078244: Test case HelloW2 started.
Hello, world!
MTC@HU00078244: Test case HelloW2 finished. Verdict: inconc
MTC@HU00078244: Execution of control part in module MyExample finished.
MC@HU00078244: Test execution finished.
MTC@HU00078244: Execution of control part in module hello_world started.
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "HELLO WORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "hello world"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: pass reason: expected message received: "Hello World!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "hello WORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "hELLO wORLD!"
MTC@HU00078244: Test case TC started.
MTC@HU00078244: Test case TC finished. Verdict: fail reason: Unexpected message received: "helloworld!"
MTC@HU00078244: Execution of control part in module hello_world finished.
MC@HU00078244: Test execution finished.
Execution of [EXECUTE] section finished.
emtc
MC@HU00078244: Terminating MTC.
MTC@HU00078244: Verdict statistics: 0 none (0.00 %), 4 pass (50.00 %), 1 inconc (12.50 %), 3 fail (37.50 %), 0 error (0.00 %).
MTC@HU00078244: Test execution summary: 8 test cases were executed. Overall verdict: fail
MC@HU00078244: MTC terminated.
MC2> exit
MC@HU00078244: Shutting down session.
MC@HU00078244: Shutdown complete.
BR
Jeno
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02253 seconds