Class: MxxRu::NegativeBinaryUnittestTarget

Inherits:
BinaryUnittestTarget show all
Defined in:
lib/mxx_ru/binary_unittest.rb

Overview

Class describing a target, which is unit-test binary application with non-zero exit code.

This class is similar to BinaryUnittestTarget but intended for the cases where binary unit test expected to fail (sometimes failure is a expected result).

File to run unit-test.

MxxRu::setup_target(
  MxxRu::NegativeBinaryUnittestTarget.new( 
    "test/pack/ut.rb",
    "test/pack/prj.rb ) )

Constant Summary

Constants inherited from BinaryUnittestTarget

BinaryUnittestTarget::Must_be_one_target_name_ex

Instance Attribute Summary

Attributes inherited from BinaryUnittestTarget

#mxx_build_state, #mxx_target_project

Attributes inherited from AbstractTarget

#mxx_full_targets_names, #mxx_generators, #mxx_required_prjs

Instance Method Summary collapse

Methods inherited from BinaryUnittestTarget

#build, #clean, #reset

Methods inherited from AbstractTarget

#build, #clean, define_plural_form_method, #generator, #mxx_add_full_target_name, #prj_alias, #required_prj, #reset, run

Constructor Details

#initialize(a_alias, a_target_project) ⇒ NegativeBinaryUnittestTarget

Constructor.

a_alias

Self alias.

a_target_project

Project, responsible for build of unit-test application.



170
171
172
173
174
# File 'lib/mxx_ru/binary_unittest.rb', line 170

def initialize( a_alias, a_target_project )
  super( a_alias, a_target_project )

  @expected_system_retval = false
end