···20 # Test_EventFilters/trace_only_events_from_"dockerd"_binary_and_contain_it's_pid
21 # require docker/dockerd
22 virtualisation.docker.enable = true;
23-24- environment.systemPackages = with pkgs; [
25- # required by Test_EventFilters/trace_events_from_ls_and_which_binary_in_separate_scopes
26- which
27- # the go integration tests as a binary
28- tracee.passthru.tests.integration-test-cli
29- ];
0030 };
31 };
32···38 # the policies and run tracee myself but doesn't work in the integration
39 # test either with the automatic run or running the commands by hand
40 # while it's searching.
41- "Test_EventFilters/comm:_event:_args:_trace_event_set_in_a_specific_policy_with_args_from_ls_command"
0000042 "Test_EventFilters/comm:_event:_trace_events_set_in_two_specific_policies_from_ls_and_uname_commands"
43-44- # worked at some point, seems to be flakey
45- "Test_EventFilters/pid:_event:_args:_trace_event_sched_switch_with_args_from_pid_0"
0046 ];
47 in
48 ''
···61 )
6263 with subtest("run integration tests"):
64- # Test_EventFilters/trace_event_set_in_a_specific_scope expects to be in a dir that includes "integration"
65 # tests must be ran with 1 process
66 print(machine.succeed(
67 'mkdir /tmp/integration',
68- 'cd /tmp/integration && export PATH="/tmp/testdir:$PATH" && integration.test -test.v -test.parallel 1 -test.skip="^${builtins.concatStringsSep "$|^" skippedTests}$"'
69 ))
70 '';
71 }
···20 # Test_EventFilters/trace_only_events_from_"dockerd"_binary_and_contain_it's_pid
21 # require docker/dockerd
22 virtualisation.docker.enable = true;
23+ environment = {
24+ variables.PATH = "/tmp/testdir";
25+ systemPackages = with pkgs; [
26+ # 'ls', 'uname' and 'who' are required by many tests in event_filters_test.go
27+ coreutils
28+ # the go integration tests as a binary
29+ tracee.passthru.tests.integration-test-cli
30+ ];
31+ };
32 };
33 };
34···40 # the policies and run tracee myself but doesn't work in the integration
41 # test either with the automatic run or running the commands by hand
42 # while it's searching.
43+ "Test_EventFilters/comm:_event:_data:_trace_event_magic_write_set_in_multiple_policies_using_multiple_filter_types"
44+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types"
45+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types_combined"
46+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_\\(with_and_without_in-kernel_filter\\)"
47+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_using_multiple_filter_types"
48+ "Test_EventFilters/comm:_event:_data:_trace_event_set_in_a_specific_policy_with_data_from_ls_command"
49 "Test_EventFilters/comm:_event:_trace_events_set_in_two_specific_policies_from_ls_and_uname_commands"
50+ "Test_EventFilters/pid:_event:_data:_trace_event_sched_switch_with_data_from_pid_0"
51+ "Test_EventsDependencies/non_existing_ksymbol_dependency_with_sanity"
52+ "Test_EventsDependencies/non_existing_probe_function_with_sanity"
53+ "Test_EventsDependencies/sanity_of_exec_test_event"
54+ "Test_TraceeCapture/capture_packet_context"
55 ];
56 in
57 ''
···70 )
7172 with subtest("run integration tests"):
73+ # Test_EventFilters/comm:_event:_data:_trace_event_set_in_a_specific_policy_with_data_from_ls_command expects to be in a dir that includes "integration"
74 # tests must be ran with 1 process
75 print(machine.succeed(
76 'mkdir /tmp/integration',
77+ 'cd /tmp/integration && integration.test -test.v -test.parallel 1 -test.skip="^${builtins.concatStringsSep "$|^" skippedTests}$"'
78 ))
79 '';
80 }