Skip to content

Commit 441ad80

Browse files
committed
Add PTF tests
1 parent 4ff5f53 commit 441ad80

File tree

13 files changed

+2061
-0
lines changed

13 files changed

+2061
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ p4src/build
44
app/target
55
app/src/main/resources/p4info.txt
66
app/src/main/resources/bmv2.json
7+
ptf/bmv2.log
8+
ptf/ptf.log
9+
ptf/ptf.pcap

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ P4RT_SH_IMG := p4lang/p4runtime-sh:latest
33
P4C_IMG := opennetworking/p4c:stable
44
MN_STRATUM_IMG := opennetworking/mn-stratum:latest
55
MAVEN_IMG := maven:3.6.1-jdk-11-slim
6+
PTF_IMG := onosproject/fabric-p4test
67

78
ONOS_SHA := sha256:c1d18e6957a785d0234855eb8c70909bfc68849338f0567e12a6ae7ce6f4ba91
89
P4RT_SH_SHA := sha256:6ae50afb5bde620acb9473ce6cd7b990ff6cc63fe4113cf5584c8e38fe42176c
910
P4C_SHA := sha256:8f9d27a6edf446c3801db621359fec5de993ebdebc6844d8b1292e369be5dfea
1011
MN_STRATUM_SHA := sha256:ae7c59885509ece8062e196e6a8fb6aa06386ba25df646ed27c765d92d131692
1112
MAVEN_SHA := sha256:ca67b12d638fe1b8492fa4633200b83b118f2db915c1f75baf3b0d2ef32d7263
13+
PTF_SHA := sha256:227207ff9d15f5e45c44c7904e815efdb3cea0b4e5644ac0878d41dd54aca78d
1214

1315
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
1416
curr_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
@@ -28,6 +30,7 @@ _docker_pull_all:
2830
docker pull ${P4C_IMG}@${P4C_SHA}
2931
docker pull ${MN_STRATUM_IMG}@${MN_STRATUM_SHA}
3032
docker pull ${MAVEN_IMG}@${MAVEN_SHA}
33+
docker pull ${PTF_IMG}@${PTF_SHA}
3134

3235
# Pul lall Docker images and build app to seed mvn repo inside container, i.e.
3336
# download deps

ptf/lib/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)