Skip to content

Commit

Permalink
Add PTF tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccascone committed Sep 3, 2019
1 parent 4ff5f53 commit 441ad80
Show file tree
Hide file tree
Showing 13 changed files with 2,061 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ p4src/build
app/target
app/src/main/resources/p4info.txt
app/src/main/resources/bmv2.json
ptf/bmv2.log
ptf/ptf.log
ptf/ptf.pcap
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ P4RT_SH_IMG := p4lang/p4runtime-sh:latest
P4C_IMG := opennetworking/p4c:stable
MN_STRATUM_IMG := opennetworking/mn-stratum:latest
MAVEN_IMG := maven:3.6.1-jdk-11-slim
PTF_IMG := onosproject/fabric-p4test

ONOS_SHA := sha256:c1d18e6957a785d0234855eb8c70909bfc68849338f0567e12a6ae7ce6f4ba91
P4RT_SH_SHA := sha256:6ae50afb5bde620acb9473ce6cd7b990ff6cc63fe4113cf5584c8e38fe42176c
P4C_SHA := sha256:8f9d27a6edf446c3801db621359fec5de993ebdebc6844d8b1292e369be5dfea
MN_STRATUM_SHA := sha256:ae7c59885509ece8062e196e6a8fb6aa06386ba25df646ed27c765d92d131692
MAVEN_SHA := sha256:ca67b12d638fe1b8492fa4633200b83b118f2db915c1f75baf3b0d2ef32d7263
PTF_SHA := sha256:227207ff9d15f5e45c44c7904e815efdb3cea0b4e5644ac0878d41dd54aca78d

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
curr_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
Expand All @@ -28,6 +30,7 @@ _docker_pull_all:
docker pull ${P4C_IMG}@${P4C_SHA}
docker pull ${MN_STRATUM_IMG}@${MN_STRATUM_SHA}
docker pull ${MAVEN_IMG}@${MAVEN_SHA}
docker pull ${PTF_IMG}@${PTF_SHA}

# Pul lall Docker images and build app to seed mvn repo inside container, i.e.
# download deps
Expand Down
Empty file added ptf/lib/__init__.py
Empty file.
Loading

0 comments on commit 441ad80

Please sign in to comment.