-
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.
Scripts to build and test krnlmon for DPDK and ES2K using cmake and bazel. Signed-off-by: Derek Foster <[email protected]>
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
echo "" | ||
echo "===== Build DPDK with OVS =====" | ||
bazel build --config dpdk --//flags:ovs //:dummy_krnlmon | ||
|
||
echo "" | ||
echo "===== Test DPDK with OVS =====" | ||
bazel test --config dpdk --//flags:ovs //switchlink:all //switchsde:all | ||
|
||
echo "" | ||
echo "===== Build DPDK without OVS =====" | ||
bazel build --config dpdk --//flags:ovs=false //:dummy_krnlmon | ||
|
||
echo "" | ||
echo "===== Test DPDK without OVS =====" | ||
bazel test --config dpdk --//flags:ovs=false //switchlink:all //switchsde:all |
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,17 @@ | ||
#!/bin/bash | ||
|
||
echo "" | ||
echo "===== Build ES2K with OVS =====" | ||
bazel build --config es2k --//flags:ovs //:dummy_krnlmon | ||
|
||
echo "" | ||
echo "===== Test ES2K with OVS =====" | ||
bazel test --config es2k --//flags:ovs //switchlink:all //switchsde:all | ||
|
||
echo "" | ||
echo "===== Build ES2K without OVS =====" | ||
bazel build --config es2k --//flags:ovs=false //:dummy_krnlmon | ||
|
||
echo "" | ||
echo "===== Test ES2K without OVS =====" | ||
bazel test --config es2k --//flags:ovs=false //switchlink:all //switchsde:all |
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,25 @@ | ||
#!/bin/bash | ||
|
||
echo "" | ||
echo "===== Build DPDK with OVS =====" | ||
rm -fr build install | ||
set -e | ||
cmake -B build -C dpdk.cmake -DWITH_OVSP4RT=ON | ||
cmake --build build -j4 --target install | ||
|
||
echo "" | ||
echo "===== Test DPDK with OVS =====" | ||
set +e | ||
(cd build; ctest) | ||
|
||
echo "" | ||
echo "===== Build DPDK without OVS =====" | ||
rm -fr build install | ||
set -e | ||
cmake -B build -C dpdk.cmake -DWITH_OVSP4RT=OFF | ||
cmake --build build -j4 --target install | ||
|
||
echo "" | ||
echo "===== Test DPDK without OVS =====" | ||
set +e | ||
(cd build; ctest) |
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,25 @@ | ||
#!/bin/bash | ||
|
||
echo "" | ||
echo "===== Build ES2K with OVS =====" | ||
rm -fr build install | ||
set -e | ||
cmake -B build -C es2k.cmake -DWITH_OVSP4RT=ON | ||
cmake --build build -j4 --target install | ||
|
||
echo "" | ||
echo "===== Test ES2K with OVS =====" | ||
set +e | ||
(cd build; ctest) | ||
|
||
echo "" | ||
echo "===== Build ES2K without OVS =====" | ||
rm -fr build install | ||
set -e | ||
cmake -B build -C es2k.cmake -DWITH_OVSP4RT=OFF | ||
cmake --build build -j4 --target install | ||
|
||
echo "" | ||
echo "===== Test ES2K without OVS =====" | ||
set +e | ||
(cd build; ctest) |