Sha256: d4bf04111d3488f57e83b47316a21f585b97861e086341826593653b5d0d6d7f

Contents?: true

Size: 1.25 KB

Versions: 9

Compression:

Stored size: 1.25 KB

Contents

Feature: trema run command

  In order to launch trema applications
  As a developer using Trema
  I want to use `trema run` command

  Background:
    Given a file named "network.conf" with:
      """
      vswitch { datapath_id 0xabc }
      """

  @slow_process
  Scenario: trema run launches switch_manager and an application
    When I run `trema run ../../objects/examples/dumper/dumper -c network.conf -d`
     And wait until "dumper" is up
    Then switch_manager is started
     And dumper is started

  @slow_process
  Scenario: trema run launches switch_manager and an application with proper options
    When I run `trema -v run ../../objects/examples/learning_switch/learning_switch -c network.conf -d`
     And wait until "learning_switch" is up
    Then the output should contain:
     """
     switch_manager --daemonize --port=6633 -- port_status::learning_switch packet_in::learning_switch state_notify::learning_switch vendor::learning_switch
     """
     And the output should contain:
     """
     learning_switch --name learning_switch -d
     """

  @slow_process
  Scenario: switch_manager is killed when trema session is closed
    When I run `trema -v run /bin/true -c network.conf`
    Then the output should contain "Shutting down switch_manager..."

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trema-0.3.5 features/trema.run.feature
trema-0.3.4 features/trema.run.feature
trema-0.3.3 features/trema.run.feature
trema-0.3.2 features/trema.run.feature
trema-0.3.1 features/trema.run.feature
trema-0.3.0 features/trema.run.feature
trema-0.2.8 features/trema.run.feature
trema-0.2.7 features/trema.run.feature
trema-0.2.6 features/trema.run.feature