File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ BPF forwarding plane and cpp library to control it.
99
1010We are using clang-format for C++ code formatting. Please make sure that code is properly
1111formatted before sending PR. You can format it with ` clang-format -i <path/to/file> `
12- (if your linux distribution does not have clang-format installed, you can use one from the
12+ (if your linux distribution does not have clang-format installed, you can use one from the
1313deps folder: ` ./deps/clang/clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin/clang-format ` )
1414
1515### Build and compile.
7171We have developed a special framework for the BPF program testing. It is based on
7272` bpf_prog_test_run ` . This framework allow us to specify predefined test fixtures (input and expected output)
7373to make sure that for a specified input, the BPF program produces expected output. Test fixtures in our case contain
74- base64 encoded packets. You can check ` katran/lib/testing/fixtures/KatranTestFixtures .h ` for examples. To run these tests
74+ base64 encoded packets. You can check ` katran/lib/testing/fixtures/KatranBaseTestFixtures .h ` for examples. To run these tests
7575you just need to run ` ./os_run_tester.sh ` script (this script requires root privileges).
7676
7777```
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ add_library(bpftester STATIC
4141 framework /BpfTester.cpp
4242 tools/PacketBuilder.h
4343 tools/PacketBuilder.cpp
44- fixtures/KatranTestFixtures .h
44+ fixtures/KatranBaseTestFixtures .h
4545 fixtures/KatranHCTestFixtures.h
4646 fixtures/KatranGueTestFixtures.h
4747 fixtures/KatranTPRTestFixtures.h
File renamed without changes.
Original file line number Diff line number Diff line change 1515 */
1616
1717#include " katran/lib/testing/utils/KatranTestUtil.h"
18+ #include " katran/lib/testing/fixtures/KatranBaseTestFixtures.h"
1819#include " katran/lib/testing/fixtures/KatranGueTestFixtures.h"
1920#include " katran/lib/testing/fixtures/KatranIcmpTooBigTestFixtures.h"
2021#include " katran/lib/testing/fixtures/KatranTPRTestFixtures.h"
21- #include " katran/lib/testing/fixtures/KatranTestFixtures.h"
2222#include " katran/lib/testing/fixtures/KatranUdpStableRtTestFixtures.h"
2323#include " katran/lib/testing/fixtures/KatranXPopDecapTestFixtures.h"
2424
You can’t perform that action at this time.
0 commit comments