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
This commit is contained in:
Andy Fingerhut 2023-06-24 12:02:10 -04:00 committed by GitHub
parent bf5433b7c5
commit fc8e21a67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,8 @@ sudo pip3 install protobuf==3.6.1
# Starting in 2019-Nov, Python3 version of Scapy is needed for `cd # Starting in 2019-Nov, Python3 version of Scapy is needed for `cd
# p4c/build ; make check` to succeed. # 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 # Earlier versions of this script installed the Ubuntu package
# python-ipaddr. However, that no longer exists in Ubuntu 20.04. PIP # python-ipaddr. However, that no longer exists in Ubuntu 20.04. PIP
# for Python3 can install the ipaddr module, which is good enough to # for Python3 can install the ipaddr module, which is good enough to