diff --git a/tests/p_libbpf/0_install_libbpf.sh b/tests/p_libbpf/0_install_libbpf.sh new file mode 100755 index 0000000..c6ef745 --- /dev/null +++ b/tests/p_libbpf/0_install_libbpf.sh @@ -0,0 +1,9 @@ +# Author: Piyush Kumar <piykumar@gmail.com> +# Author: Munish Kumar <munishktotech@gmail.com> +# Author: Ayush Gupta <ayush.001@gmail.com> +# Author: Konark Modi <modi.konark@gmail.com> + +t_Log "Running $0 -installing lftp." +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..ddf6093 --- /dev/null +++ b/tests/p_libbpf/10_test_bcc_tools.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Author: Piyush Kumar <piykumar@gmail.com> +# Author: Munish Kumar <munishktotech@gmail.com> +# Author: Ayush Gupta <ayush.001@gmail.com> +# Author: Konark Modi <modi.konark@gmail.com> +# Christoph Galuschka <tigalch@tigalch.org> + +t_Log "Running $0 - bcc-tools: argdist test" + +if [ "$CONTAINERTEST" -eq "1" ]; then + t_Log "Running in container -> SKIP" + exit 0 +fi + +/usr/share/bcc/tools/argdist -i 1 -n 5 -C 'p:c:umask(u32 mask):u32:mask'