-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to BF SDE 9.7.2. added CI tests for local execution
- Loading branch information
1 parent
38f83e2
commit 63d0e20
Showing
52 changed files
with
8,986 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
src/build/* | ||
/script/install_dpdk_sudo.sh | ||
scripts/install_dpdk_sudo.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
source pastaenv/bin/activate | ||
python3 manage.py runserver 0.0.0.0:9997 | ||
python3 manage.py runserver 0.0.0.0:9998 | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
cycler==0.10.0 | ||
Django==2.2.24 | ||
grpcio==1.35.0 | ||
grpcio-tools==1.35.0 | ||
cycler==0.11.0 | ||
Django==2.2.28 | ||
grpcio==1.47.0 | ||
grpcio-tools==1.47.0 | ||
kiwisolver==1.3.1 | ||
matplotlib==3.3.4 | ||
numpy==1.18.0 | ||
plumbum==1.6.8 | ||
protobuf==3.17.2 | ||
numpy==1.19.5 | ||
plumbum==1.7.2 | ||
protobuf==3.19.4 | ||
pyparsing==2.4.7 | ||
python-dateutil==2.8.1 | ||
pytz==2019.3 | ||
python-dateutil==2.8.2 | ||
pytz==2022.1 | ||
rpyc==5.0.1 | ||
six==1.13.0 | ||
sqlparse==0.3.0 | ||
tabulate==0.8.6 | ||
thrift==0.13.0 | ||
google-api-core==1.25.1 | ||
google-api-python-client==1.12.8 | ||
six==1.16.0 | ||
tabulate==0.8.10 | ||
thrift==0.16.0 | ||
google-api-core==1.32.0 | ||
google-api-python-client==1.12.11 | ||
pycodestyle==2.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
AVAILABLE_TESTS="install|test_code_quality|test_ptf_bmv2|test_ptf_tofino|test_core|test_ui|test_ui_tofino|dpdk_install|test_core_dpdk|cleanup|all" | ||
if [[ ! "$1" =~ $AVAILABLE_TESTS ]] | ||
then | ||
echo "Usage: $0 [ ${AVAILABLE_TESTS//|/ | } ]" | ||
exit 1 | ||
fi | ||
|
||
source tests/ci_tests.sh | ||
|
||
|
||
|
||
if [[ "$1" == "install" ]] | ||
then | ||
set -e | ||
job_prepare | ||
job_install | ||
printf "${GREEN} [SUCCESS] Succeeded installing p4sta ci test environment \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_code_quality" ]] | ||
then | ||
set -e | ||
job_code_quality | ||
printf "${GREEN} [SUCCESS] Succeeded test_code_quality \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
|
||
if [[ "$1" == "test_ptf_bmv2" ]] | ||
then | ||
set -e | ||
job_ptf_bmv2 | ||
printf "${GREEN} [SUCCESS] Succeeded test_ptf_bmv2 \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_ptf_tofino" ]] | ||
then | ||
set -e | ||
job_ptf_tofino | ||
printf "${GREEN} [SUCCESS] Succeeded test_ptf_tofino \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_core" ]] | ||
then | ||
set -e | ||
job_test_core | ||
printf "${GREEN} [SUCCESS] Succeeded test_core \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_ui" ]] | ||
then | ||
set -e | ||
job_test_django_bmv2 | ||
printf "${GREEN} [SUCCESS] Succeeded test_ui \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_ui_tofino" ]] | ||
then | ||
set -e | ||
job_test_django_tofino | ||
printf "${GREEN} [SUCCESS] Succeeded test_ui_tofino \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "dpdk_install" ]] | ||
then | ||
set -e | ||
job_dpdk_install | ||
printf "${GREEN} [SUCCESS] Succeeded dpdk_install \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "test_core_dpdk" ]] | ||
then | ||
set -e | ||
job_test_core_dpdk | ||
printf "${GREEN} [SUCCESS] Succeeded test_core_dpdk \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "cleanup" ]] | ||
then | ||
set -e | ||
job_cleanup | ||
printf "${GREEN} [SUCCESS] Succeeded job_cleanup \n${NC}" | ||
exit 0 | ||
fi | ||
|
||
if [[ "$1" == "all" ]] | ||
then | ||
set -e | ||
job_prepare | ||
job_install | ||
printf "${GREEN} [SUCCESS] Succeeded installing p4sta ci test environment \n${NC}" | ||
job_code_quality | ||
printf "${GREEN} [SUCCESS] Succeeded test_code_quality \n${NC}" | ||
job_ptf_bmv2 | ||
printf "${GREEN} [SUCCESS] Succeeded test_ptf_bmv2 \n${NC}" | ||
job_ptf_tofino | ||
printf "${GREEN} [SUCCESS] Succeeded test_ptf_tofino \n${NC}" | ||
job_test_core | ||
printf "${GREEN} [SUCCESS] Succeeded test_core \n${NC}" | ||
job_test_django_bmv2 | ||
printf "${GREEN} [SUCCESS] Succeeded test_ui \n${NC}" | ||
job_test_django_tofino | ||
printf "${GREEN} [SUCCESS] Succeeded test_ui_tofino \n${NC}" | ||
job_dpdk_install | ||
printf "${GREEN} [SUCCESS] Succeeded dpdk_install \n${NC}" | ||
job_test_core_dpdk | ||
printf "${GREEN} [SUCCESS] Succeeded test_core_dpdk \n${NC}" | ||
job_cleanup | ||
printf "${GREEN} [SUCCESS] Succeeded in all Test Jobs \n${NC}" | ||
exit 0 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data/mau.html | ||
data/bf_input.txt | ||
|
Oops, something went wrong.