Skip to content

Commit 6b5824f

Browse files
committed
Add unit tests for kprobe.
1 parent 274d7fc commit 6b5824f

File tree

2 files changed

+566
-2
lines changed

2 files changed

+566
-2
lines changed

tests/dune

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@
389389
(modules test_tracepoint)
390390
(libraries kernelscript alcotest unix str))
391391

392+
(executable
393+
(name test_kprobe)
394+
(modules test_kprobe)
395+
(libraries kernelscript alcotest unix str))
396+
392397
; Test rules for individual execution
393398
(rule
394399
(alias runtest_lexer)
@@ -689,6 +694,7 @@
689694
test_array_init.exe
690695
test_config_validation.exe
691696
test_tracepoint.exe
697+
test_kprobe.exe
692698
test_stdlib.exe
693699
test_struct_field_access.exe
694700
test_struct_initialization.exe
@@ -734,6 +740,7 @@
734740
(run ./test_array_init.exe)
735741
(run ./test_config_validation.exe)
736742
(run ./test_tracepoint.exe)
743+
(run ./test_kprobe.exe)
737744
(run ./test_stdlib.exe)
738745
(run ./test_struct_field_access.exe)
739746
(run ./test_struct_initialization.exe)
@@ -815,7 +822,8 @@
815822
./test_nested_if_codegen.exe
816823
./test_error_handling.exe
817824
./test_integer_literal_codegen.exe
818-
./test_tracepoint.exe)
825+
./test_tracepoint.exe
826+
./test_kprobe.exe)
819827
(action
820828
(progn
821829
(run ./test_ast.exe)
@@ -832,4 +840,5 @@
832840
(run ./test_nested_if_codegen.exe)
833841
(run ./test_error_handling.exe)
834842
(run ./test_integer_literal_codegen.exe)
835-
(run ./test_tracepoint.exe))))
843+
(run ./test_tracepoint.exe)
844+
(run ./test_kprobe.exe))))

0 commit comments

Comments
 (0)