···2020 # Test_EventFilters/trace_only_events_from_"dockerd"_binary_and_contain_it's_pid
2121 # require docker/dockerd
2222 virtualisation.docker.enable = true;
2323-2424- environment.systemPackages = with pkgs; [
2525- # required by Test_EventFilters/trace_events_from_ls_and_which_binary_in_separate_scopes
2626- which
2727- # the go integration tests as a binary
2828- tracee.passthru.tests.integration-test-cli
2929- ];
2323+ environment = {
2424+ variables.PATH = "/tmp/testdir";
2525+ systemPackages = with pkgs; [
2626+ # 'ls', 'uname' and 'who' are required by many tests in event_filters_test.go
2727+ coreutils
2828+ # the go integration tests as a binary
2929+ tracee.passthru.tests.integration-test-cli
3030+ ];
3131+ };
3032 };
3133 };
3234···3840 # the policies and run tracee myself but doesn't work in the integration
3941 # test either with the automatic run or running the commands by hand
4042 # while it's searching.
4141- "Test_EventFilters/comm:_event:_args:_trace_event_set_in_a_specific_policy_with_args_from_ls_command"
4343+ "Test_EventFilters/comm:_event:_data:_trace_event_magic_write_set_in_multiple_policies_using_multiple_filter_types"
4444+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types"
4545+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types_combined"
4646+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_\\(with_and_without_in-kernel_filter\\)"
4747+ "Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_using_multiple_filter_types"
4848+ "Test_EventFilters/comm:_event:_data:_trace_event_set_in_a_specific_policy_with_data_from_ls_command"
4249 "Test_EventFilters/comm:_event:_trace_events_set_in_two_specific_policies_from_ls_and_uname_commands"
4343-4444- # worked at some point, seems to be flakey
4545- "Test_EventFilters/pid:_event:_args:_trace_event_sched_switch_with_args_from_pid_0"
5050+ "Test_EventFilters/pid:_event:_data:_trace_event_sched_switch_with_data_from_pid_0"
5151+ "Test_EventsDependencies/non_existing_ksymbol_dependency_with_sanity"
5252+ "Test_EventsDependencies/non_existing_probe_function_with_sanity"
5353+ "Test_EventsDependencies/sanity_of_exec_test_event"
5454+ "Test_TraceeCapture/capture_packet_context"
4655 ];
4756 in
4857 ''
···6170 )
62716372 with subtest("run integration tests"):
6464- # Test_EventFilters/trace_event_set_in_a_specific_scope expects to be in a dir that includes "integration"
7373+ # 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"
6574 # tests must be ran with 1 process
6675 print(machine.succeed(
6776 'mkdir /tmp/integration',
6868- 'cd /tmp/integration && export PATH="/tmp/testdir:$PATH" && integration.test -test.v -test.parallel 1 -test.skip="^${builtins.concatStringsSep "$|^" skippedTests}$"'
7777+ 'cd /tmp/integration && integration.test -test.v -test.parallel 1 -test.skip="^${builtins.concatStringsSep "$|^" skippedTests}$"'
6978 ))
7079 '';
7180 }