Skip to content

Commit 017cf5e

Browse files
committed
Add P4 connect e2e test against public demo server
1 parent 6fb6dc1 commit 017cf5e

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//depot/pong/background.jpg#1 - add change 3 (binary+F)
2+
//depot/pong/build-pong-game.act#1 - add change 3 (text)
3+
//depot/pong/tutorial-readme.md#1 - add change 3 (text)

tests_e2e/scripts/p4_connect.act

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
editor:
2+
version:
3+
created: v1.0.0
4+
entry: start
5+
type: orchestrator
6+
nodes:
7+
- id: start
8+
type: core/start@v1
9+
position:
10+
x: 0
11+
y: 0
12+
- id: list-files
13+
type: core/p4-run@v1
14+
position:
15+
x: 200
16+
y: 0
17+
inputs:
18+
command: files
19+
args:
20+
- "//depot/pong/..."
21+
- id: print-result
22+
type: core/print@v1
23+
position:
24+
x: 300
25+
y: 0
26+
inputs:
27+
values[0]: null
28+
connections:
29+
- src:
30+
node: list-files
31+
port: output
32+
dst:
33+
node: print-result
34+
port: "values[0]"
35+
executions:
36+
- src:
37+
node: start
38+
port: exec
39+
dst:
40+
node: list-files
41+
port: exec
42+
- src:
43+
node: list-files
44+
port: exec-success
45+
dst:
46+
node: print-result
47+
port: exec

tests_e2e/scripts/p4_connect.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export P4PORT=ssl:p4demo.actionforge.dev:1666
2+
export P4USER=guest
3+
export P4PASSWD=readonly1
4+
5+
#! test actrun ${ACT_GRAPH_FILES_DIR}${PATH_SEPARATOR}p4_connect.act

0 commit comments

Comments
 (0)