Skip to content

Commit

Permalink
Add krnlmon check scripts (#150)
Browse files Browse the repository at this point in the history
Scripts to build and test krnlmon for DPDK and ES2K using cmake and bazel.

Signed-off-by: Derek Foster <[email protected]>
  • Loading branch information
ffoulkes authored Jun 28, 2024
1 parent d62ee15 commit 884067b
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
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)

0 comments on commit 884067b

Please sign in to comment.