Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add krnlmon check scripts #150

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/bazel-check-dpdk.sh
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
17 changes: 17 additions & 0 deletions scripts/bazel-check-es2k.sh
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
25 changes: 25 additions & 0 deletions scripts/cmake-check-dpdk.sh
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)
25 changes: 25 additions & 0 deletions scripts/cmake-check-es2k.sh
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)