Sha256: 8adfded8ed8099a1c3fae5ebdd0c59981af164766f2592114a73033e9dbf4812

Contents?: true

Size: 991 Bytes

Versions: 23

Compression:

Stored size: 991 Bytes

Contents

Feature: "Hello Trema!" example

  The "Hello Trema!" example ([trema]/src/examples/hello_trema/) is one
  of the simplest OpenFlow controller implementation. The basic
  functionality of this controller is to establish a secure channel connection
  with an OpenFlow switch and output the "Hello [switch's dpid]!" message.

  This demonstrates a minimum template for Trema applications written in Ruby
  or C. Hence it's a good starting point to learn about Trema programming.

  Background:
    Given I cd to "../../src/examples/hello_trema/"

  @slow_process
  Scenario: Run the Ruby example
    When I run `trema run ./hello-trema.rb -c sample.conf` interactively
    Then the output should contain "Hello 0xabc!" within the timeout period

  @slow_process
  Scenario: Run the C example
    Given I compile "hello_trema.c" into "hello_trema"
    When I run `trema run ./hello_trema -c sample.conf` interactively
    Then the output should contain "Hello 0xabc!" within the timeout period

Version data entries

23 entries across 23 versions & 1 rubygems

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