Commit bd7f7fc9 authored by stancakapost's avatar stancakapost
Browse files

created new test kind for builtin types

parent 196adf1f
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line

	/**
	 * @desc The timeout given in seconds after which the test case will be stopped.
	 */
    modulepar float PX_TC_EXECUTION_TIMEOUT := 5.0;

    type component C {
    }

    testcase TC_${module}() runs on C system C {

		// encode the message
		if (isvalue(m_msg) && match(m_msg, m_msg)) {
			setverdict(pass, "Built-in XSD type was found and TCI value was created");
		} else {
			setverdict(fail, "Failure to create a value of the given built-in XSD type");
		}
    }

    control {
        execute(TC_${module}(), PX_TC_EXECUTION_TIMEOUT);
    }