echo "========================================================================="
echo $1
echo
- libsmack-test $2 $3
+ libsmack-test "${@:2}" # propagate all remaining arguments (except first)
;;
-
"libprivilege-control")
echo "========================================================================="
echo $1
echo
- libprivilege-control-test $2 $3
+ libprivilege-control-test "${@:2}"
;;
"ss-clientsmack")
echo "========================================================================="
echo "SECURITY SERVER TEST CLIENT SMACK"
echo
- security-server-tests-client-smack $2 $3
- ;;
-"ss-label")
- echo "========================================================================="
- echo "SECURITY SERVER TEST LABEL"
- echo
- security-server-tests-label $2 $3
+ security-server-tests-client-smack "${@:2}"
;;
-"ss-pid")
+"ss-stress")
echo "========================================================================="
- echo "SECURITY SERVER TEST PID"
+ echo "SECURITY SERVER TEST STRESS"
echo
- security-server-tests-pid-reuser $2 $3
+ security-server-tests-stress "${@:2}"
;;
"ss-server")
echo "========================================================================="
echo "SECURITY SERVER TEST SERVER"
echo
- security-server-tests-server $2 $3
+ security-server-tests-server "${@:2}"
;;
"ss-api-speed")
echo "========================================================================="
echo "SECURITY SERVER MEASURER SERVER"
echo
- security-server-tests-api-speed $2 $3
+ security-server-tests-api-speed "${@:2}"
;;
"ss-password")
echo "========================================================================="
echo "SECURITY SERVER TEST PASSWORD"
echo
- security-server-tests-password $2 $3
+ security-server-tests-password "${@:2}"
+ ;;
+"ss-privilege")
+ echo "========================================================================="
+ echo "SECURITY SERVER TEST PRIVILEGE"
+ echo
+ security-server-tests-privilege "${@:2}"
;;
"ss-dbus")
echo "========================================================================="
echo "SECURITY SERVER TEST DBUS"
echo
- security-server-tests-dbus $2 $3
+ security-server-tests-dbus "${@:2}"
+ ;;
+"security-manager")
+ echo "========================================================================="
+ echo "SECURITY MANAGER TESTS"
+ echo
+ security-manager-tests "${@:2}"
+ ;;
+"cynara")
+ echo "========================================================================="
+ echo "CYNARA TEST"
+ echo
+ cynara-test "${@:2}"
;;
-
*)
echo "Correct using:"
echo " security_test.sh <module> <args_for_module>"
echo
echo "modules: smack, libprivilege-control, ss-clientsmack"
- echo " ss-label, ss-pid, ss-server, ss-api-speed, ss-password"
+ echo " ss-server, ss-api-speed, ss-password, ss-stress"
+ echo " ss-privilege, security-manager, cynara"
;;
esac