From f4494387c16e52186a780b07a463f453a63637fe Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Oct 04 2022 15:39:04 +0000 Subject: Merge pull request #81 from AdamSaleh/test_libbpf Added libbpf test, includes running one of the bcc tools --- diff --git a/tests/p_libbpf/0_install_libbpf.sh b/tests/p_libbpf/0_install_libbpf.sh new file mode 100755 index 0000000..4461c58 --- /dev/null +++ b/tests/p_libbpf/0_install_libbpf.sh @@ -0,0 +1,9 @@ +# Author: Piyush Kumar +# Author: Munish Kumar +# Author: Ayush Gupta +# Author: Konark Modi + +t_Log "Running $0 -installing libbpf and bcc-tools." +t_InstallPackage libbpf +t_InstallPackage bcc-tools + diff --git a/tests/p_libbpf/10_test_bcc_tools.sh b/tests/p_libbpf/10_test_bcc_tools.sh new file mode 100755 index 0000000..41760d4 --- /dev/null +++ b/tests/p_libbpf/10_test_bcc_tools.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Author: Piyush Kumar +# Author: Munish Kumar +# Author: Ayush Gupta +# Author: Konark Modi +# Christoph Galuschka + + +t_Log "Running $0 - bcc-tools: argdist test" + +if [ -z "$CONTAINERTEST" ] ; then + /usr/share/bcc/tools/argdist -i 1 -n 5 -C 'p:c:umask(u32 mask):u32:mask' +else + t_Log "Running in container -> SKIP" + exit 0 +fi