From 0346e5087aad684665f65653eaf9d5d26ac146c4 Mon Sep 17 00:00:00 2001 From: Soumya Sinha <96619748+sousinha97@users.noreply.github.com> Date: Mon, 29 Jul 2024 03:45:13 +0000 Subject: [PATCH] test index --- phoronix/phoronix | 6 +++++- phoronix/run_phoronix.sh | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/phoronix/phoronix b/phoronix/phoronix index f816a8e..02715b7 100644 --- a/phoronix/phoronix +++ b/phoronix/phoronix @@ -14,6 +14,10 @@ do test_to_run=$2 shift 2 ;; + --test_index) + test_index=$2 + shift 2 + ;; *) usage; ;; @@ -44,7 +48,7 @@ if [ ! -d "./phoronix-test-suite" ]; then fi for iterations in 1 `seq 2 1 ${to_times_to_run}` do - ./phoronix-test-suite/phoronix-test-suite run $test_to_run < /tmp/ph_opts >> /tmp/results_${test_name}_${to_tuned_setting}.out + ./phoronix-test-suite/phoronix-test-suite default-run $test_to_run < /tmp/ph_opts >> /tmp/results_${test_name}_${to_tuned_setting}.out done # # Archive up the results. diff --git a/phoronix/run_phoronix.sh b/phoronix/run_phoronix.sh index 2d54c1f..8f7f1e6 100755 --- a/phoronix/run_phoronix.sh +++ b/phoronix/run_phoronix.sh @@ -229,9 +229,9 @@ else tuned_original=`tuned-adm active | cut -d' ' -f4` tuned-adm profile $to_tuned_setting fi - echo ./phoronix -t ${test} > run_this - chmod 755 run_this - ./run_this + echo ./phoronix -t ${test} --test_index ${test_index} > run_this + chmod 755 run_this + ./run_this setenforce 1 fi \ No newline at end of file