echo"version is less than 1.7, NOT OK, exiting";exit 1;
fi
fi
# check java version (>=1.7) in another way
[$(java -version 2>&1 | sed's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q')-ge 17 ]&&echo"version is at least 1.7, OK"||{echo"version is less than 1.7, NOT OK, exiting";exit 1;}
# checks if file exists, exits if not
# @param $1 file full path
function file_exist {
[-f"$1"]&&echo"$1 FOUND, OK"||{echo"$1 NOT FOUND, exiting";exit 1;}
}
# checks if directory exists, exits if not
# @param $1 directory full path
function dir_exist {
[-d"$1"]&&echo"$1 DIRECTORY FOUND, OK"||{echo"$1 DIRECTORY NOT FOUND, exiting";exit 1;}
}
# check TITAN dependencies
[!-z"${TTCN3_DIR}"]&&echo"\$TTCN3_DIR is set to ${TTCN3_DIR}, OK"\
||{echo"\$TTCN3_DIR is not set, NOT OK, exiting";exit 1;}
dir_exist ${TTCN3_DIR}
file_exist ${TTCN3_DIR}/lib/libmctrjninative.so
[["${LD_LIBRARY_PATH}"==*"${TTCN3_DIR}/lib"*]]&&echo"\$TTCN3_DIR/lib is added to \$LD_LIBRARY_PATH=${LD_LIBRARY_PATH}, OK"\
||{echo"\$TTCN3_DIR is NOT added to \$LD_LIBRARY_PATH=${LD_LIBRARY_PATH}, NOT OK, exiting";exit 1;}
# make sure, that the demo is compiled, which is cleaned in make install
pushd${TTCN3_DIR}/demo
make
popd
file_exist ${TTCN3_DIR}/demo/MyExample
# Check if HelloWorld demo binary is compiled in parallel mode: output of MyExample -v contains "(parallel mode)"
[`${TTCN3_DIR}/demo/MyExample -v 2>&1 | grep"(parallel mode)" | wc-l`!= 0 ]&&echo"${TTCN3_DIR}/demo/MyExample is compiled in parallel mode, OK"\
||{echo"${TTCN3_DIR}/demo/MyExample is compiled in single mode, NOT in parallel mode, NOT OK, exiting";exit 1;}
@@ -267,50 +267,50 @@ public class DemoFrame extends JFrame {
finalStringTOOLTIPTEXT_EXIT_MTC="Exits from Main Test Component, use it after testcase execution.";
finalStringTOOLTIPTEXT_SHUTDOWN_SESSION="Closes connection to MC.";
finalStringTOOLTIPTEXT_BATCHEXECUTION="One step execution. It executes cfg file execute list using 1 HC defined by Host, Working directory, Executable.";
finalStringTOOLTIPTEXT_CFG_FILE="TTCN-3 configutation file (.cfg) with full path";
finalStringTOOLTIPTEXT_HOST="Host Controller host name. It is localhost in the following cases: NULL, 0.0.0.0, empty string";
finalStringTOOLTIPTEXT_WORKINGDIR="Host Controller working directory without the ending /";
finalStringTOOLTIPTEXT_EXECUTABLE="Host Controller executable file name without path";