From fc8e21a67a562d2b9434cb2a79e392bb709cad3f Mon Sep 17 00:00:00 2001 From: Andy Fingerhut Date: Sat, 24 Jun 2023 12:02:10 -0400 Subject: [PATCH] Enable all p4c tests to pass (#515) * Support negative-valued action parameters by converting them in the Python helper code into a positive value whose bit pattern is the 2's complement representation of the negative value. * Add Python ply package, to enable all p4c tests to pass --- vm-ubuntu-20.04/root-dev-bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vm-ubuntu-20.04/root-dev-bootstrap.sh b/vm-ubuntu-20.04/root-dev-bootstrap.sh index 878faf3..98d6e31 100755 --- a/vm-ubuntu-20.04/root-dev-bootstrap.sh +++ b/vm-ubuntu-20.04/root-dev-bootstrap.sh @@ -119,7 +119,8 @@ sudo pip3 install protobuf==3.6.1 # Starting in 2019-Nov, Python3 version of Scapy is needed for `cd # p4c/build ; make check` to succeed. -sudo pip3 install scapy +# ply package is needed for ebpf and ubpf backend tests to pass +sudo pip3 install scapy ply # Earlier versions of this script installed the Ubuntu package # python-ipaddr. However, that no longer exists in Ubuntu 20.04. PIP # for Python3 can install the ipaddr module, which is good enough to @@ -135,4 +136,4 @@ sudo pip3 install ipaddr sudo pip3 install pypcap # Things needed for `cd tutorials/exercises/basic ; make run` to work: -sudo pip3 install psutil crcmod \ No newline at end of file +sudo pip3 install psutil crcmod