Skip to content
Snippets Groups Projects
Commit 3a2051ac authored by Matthew McGill's avatar Matthew McGill
Browse files

Changed cicd test structure

Former-commit-id: 23475a5b59f48d3c0d435dde1c8cf37fbd8d8187
parent 9401b91d
No related branches found
No related tags found
No related merge requests found
Showing
with 6 additions and 70 deletions
#!/bin/bash
configs=(do_cfi_4_byte
do_coloring_cfi_4_byte
do_cfi_exe_nonces_1_byte
do_cfi_exe_nonces
do_cfi_exe_nonces_4_byte_non_exe_color_non_exe
do_cfi_exe_nonces_8_byte
do_cfi_exe_nonces_1_byte_color_exe
do_cfi_exe_nonces_color_exe
do_cfi_exe_nonces_8_byte_color_exe
do_cfi_exe_nonces_4_byte_non_exe_color_both)
do_cfi_4_byte()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--fix-all --step-option zipr:"--add-sections false" --step-option selective_cfi:"--nonce-size 4"
}
do_coloring_cfi_4_byte()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--fix-all --step-option selective_cfi:--color --step-option zipr:"--add-sections false" --step-option selective_cfi:"--nonce-size 4"
}
do_cfi_exe_nonces_1_byte()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--exe-nonce-size 1"
}
do_cfi_exe_nonces()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false"
}
do_cfi_exe_nonces_4_byte_non_exe_color_non_exe()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--nonce-size 4" --step-option selective_cfi:--color
}
do_cfi_exe_nonces_8_byte()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--exe-nonce-size 8"
}
do_cfi_exe_nonces_1_byte_color_exe()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--exe-nonce-size 1" --step-option selective_cfi:--color-exe-nonces
}
do_cfi_exe_nonces_color_exe()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:--color-exe-nonces
}
do_cfi_exe_nonces_8_byte_color_exe()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--exe-nonce-size 8" --step-option selective_cfi:--color-exe-nonces
}
do_cfi_exe_nonces_4_byte_non_exe_color_both()
{
$PS $1 $2 --backend zipr --critical-step move_globals=on --critical-step selective_cfi=on --step-option selective_cfi:--multimodule --step-option move_globals:--elftables-only --step-option fix_calls:--no-fix-safefn --step-option selective_cfi:--exe-nonce-for-call --step-option zipr:"--add-sections false" --step-option selective_cfi:"--nonce-size 4" --step-option selective_cfi:--color-exe-nonces --step-option selective_cfi:--color
}
......@@ -6,9 +6,9 @@ trap clean EXIT
cd $CICD_MODULE_WORK_DIR/peasoup_umbrella
source set_env_vars
cd ./security_transforms/cicd_tests
cd ./security_transforms/tools/selective_cfi/tests/cicd_tests/fib_src
source cfi_smokescreen_configs.sh
source ../cfi_smokescreen_configs.sh
get_correct()
{
......
......@@ -6,9 +6,9 @@ trap clean EXIT
cd $CICD_MODULE_WORK_DIR/peasoup_umbrella
source set_env_vars
cd ./security_transforms/cicd_tests
cd ./security_transforms/tools/selective_cfi/tests/cicd_tests/foo_src
source cfi_smokescreen_configs.sh
source ../cfi_smokescreen_configs.sh
get_correct()
{
......
#!/bin/bash
source cfi_all_configs.sh
source ../cfi_all_configs.sh
get_correct()
{
......
#!/bin/bash
source cfi_all_configs.sh
source ../cfi_smokescreen_configs.sh
get_correct()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment