Sha256: 857bad79aeeeeb6b88803ae651c8239766fb5eb3c3853ab32a34bd4db541e09c

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

Feature: run trema application with `trema run' command

  As a Trema user
  I want to launch trema applications with `trema run' command
  So that I don't have to mind the details of Trema


  Scenario: trema run launches switch_manager and an application
    When I try trema run "./objects/examples/dumper/dumper" with following configuration (backgrounded):
      """
      vswitch { datapath_id "0xabc" }
      """
      And wait until "dumper" is up
    Then switch_manager is started
      And dumper is started


  Scenario: trema run launches switch_manager and an application with proper options
    When I try trema run "./objects/examples/learning_switch/learning_switch -i 0xabc" with following configuration (backgrounded, verbose):
      """
      vswitch { datapath_id "0xabc" }
      """
      And wait until "learning_switch" is up
    Then "switch_manager" should be executed with option = "--daemonize --port=6633 -- port_status::learning_switch packet_in::learning_switch state_notify::learning_switch"
      And "learning_switch" should be executed with option = "--name learning_switch -i 0xabc"


  Scenario: switch_manager is killed when trema session is closed
    When I try trema run "/bin/true" with following configuration (verbose):
      """
      vswitch { datapath_id "0xabc" }
      """
    Then switch_manager should be killed


  Scenario: trema help run
    When I try to run "./trema help run"
    Then the output should be:
      """
      Usage: ./trema run [OPTIONS ...]
          -c, --conf FILE
          -d, --daemonize
          -s, --tremashark

          -h, --help
          -v, --verbose
      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trema-0.2.5 features/trema.run.feature
trema-0.2.4 features/trema.run.feature
trema-0.2.3 features/trema.run.feature