features/trema_run.feature in trema-0.5.0 vs features/trema_run.feature in trema-0.5.1
- old
+ new
@@ -44,9 +44,23 @@
When I successfully run `trema -v run -p 1234 switch_ready.rb -c trema.conf -d`
And I run `sleep 5`
Then the file "SwitchReady.log" should contain "Hello 0xabc!"
@sudo
+ Scenario: trema run with --openflow13 option
+ Given a file named "null_controller.rb" with:
+ """
+ class NullController < Trema::Controller; end
+ """
+ And a file named "trema.conf" with:
+ """
+ vswitch { datapath_id 0xabc }
+ """
+ When I successfully run `trema -v run null_controller.rb --openflow13 -c trema.conf -d`
+ And I run `sleep 5`
+ Then the output should contain "protocols=OpenFlow13"
+
+ @sudo
Scenario: trema run empty file and error
Given a file named "empty.rb" with:
"""
"""
When I run `trema -v run empty.rb`