Sha256: a70bb11bfc4023e150ac2556ea117a76f579a168281770feea0e8b695ed0e5ae

Contents?: true

Size: 1.24 KB

Versions: 22

Compression:

Stored size: 1.24 KB

Contents

Feature: 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

22 entries across 22 versions & 1 rubygems

Version Path
trema-0.4.5 features/trema_commands/run.feature
trema-0.4.4 features/trema_commands/run.feature
trema-0.4.3 features/trema_commands/run.feature
trema-0.4.2 features/trema_commands/run.feature
trema-0.4.1 features/trema_commands/run.feature
trema-0.4.0 features/trema_commands/run.feature
trema-0.3.21 features/trema_commands/run.feature
trema-0.3.20 features/trema_commands/run.feature
trema-0.3.19 features/trema_commands/run.feature
trema-0.3.18 features/trema_commands/run.feature
trema-0.3.17 features/trema_commands/run.feature
trema-0.3.16 features/trema_commands/run.feature
trema-0.3.15 features/trema_commands/run.feature
trema-0.3.14 features/trema_commands/run.feature
trema-0.3.13 features/trema_commands/run.feature
trema-0.3.12 features/trema_commands/run.feature
trema-0.3.11 features/trema_commands/run.feature
trema-0.3.10 features/trema_commands/run.feature
trema-0.3.9 features/trema_commands/run.feature
trema-0.3.8 features/trema_commands/run.feature