All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
To: Tim.Bird@sony.com
Cc: fuego@lists.linuxfoundation.org, tho1.nguyendat@toshiba.co.jp
Subject: [Fuego] [PATCH 4/4] rt: search for the binary if the build phase is skipped
Date: Fri, 20 Aug 2021 15:20:10 +0900	[thread overview]
Message-ID: <1bc279d0d7bbbb6981eafc6c5bf000ef30fd1aae.1629440060.git.daniel.sangorrin@toshiba.co.jp> (raw)
In-Reply-To: <20210820062010.2222-1-daniel.sangorrin@toshiba.co.jp>
In-Reply-To: <af01dd89b9a80ba14be37707f76ca46b8e43e152.1629440060.git.daniel.sangorrin@toshiba.co.jp>

From: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>

ftc has the ability to skip the build phase to use a previously
built binary or a binary installed on the board's file system
(e.g. apt-get install rt-tests).

Signed-off-by: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
---
 tests/Benchmark.cyclictest/fuego_test.sh  | 7 ++++++-
 tests/Benchmark.hackbench/fuego_test.sh   | 7 ++++++-
 tests/Benchmark.migratetest/fuego_test.sh | 7 ++++++-
 tests/Benchmark.pmqtest/fuego_test.sh     | 8 +++++++-
 tests/Benchmark.ptsematest/fuego_test.sh  | 8 +++++++-
 tests/Benchmark.signaltest/fuego_test.sh  | 7 ++++++-
 tests/Benchmark.sigwaittest/fuego_test.sh | 7 ++++++-
 tests/Benchmark.svsematest/fuego_test.sh  | 7 ++++++-
 tests/Functional.pi_tests/fuego_test.sh   | 7 ++++++-
 9 files changed, 56 insertions(+), 9 deletions(-)

diff --git a/tests/Benchmark.cyclictest/fuego_test.sh b/tests/Benchmark.cyclictest/fuego_test.sh
index 74d9d24..e7070dd 100755
--- a/tests/Benchmark.cyclictest/fuego_test.sh
+++ b/tests/Benchmark.cyclictest/fuego_test.sh
@@ -24,5 +24,10 @@ function test_deploy {
 }
 
 function test_run {
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./cyclictest $BENCHMARK_CYCLICTEST_PARAMS"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/cyclictest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./cyclictest $BENCHMARK_CYCLICTEST_PARAMS"
+    else
+        assert_has_program cyclictest
+        report "$PROGRAM_CYCLICTEST $BENCHMARK_CYCLICTEST_PARAMS"
+    fi
 }
diff --git a/tests/Benchmark.hackbench/fuego_test.sh b/tests/Benchmark.hackbench/fuego_test.sh
index cc05c74..da209ff 100755
--- a/tests/Benchmark.hackbench/fuego_test.sh
+++ b/tests/Benchmark.hackbench/fuego_test.sh
@@ -16,5 +16,10 @@ function test_deploy {
 }
 
 function test_run {
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./hackbench $BENCHMARK_HACKBENCH_PARAMS"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/hackbench ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./hackbench $BENCHMARK_HACKBENCH_PARAMS"
+    else
+        assert_has_program hackbench
+        report "$PROGRAM_HACKBENCH $BENCHMARK_HACKBENCH_PARAMS"
+    fi
 }
diff --git a/tests/Benchmark.migratetest/fuego_test.sh b/tests/Benchmark.migratetest/fuego_test.sh
index eeaa4f6..0b22818 100755
--- a/tests/Benchmark.migratetest/fuego_test.sh
+++ b/tests/Benchmark.migratetest/fuego_test.sh
@@ -23,5 +23,10 @@ function test_deploy {
 }
 
 function test_run {
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./${TEST_COMMAND} $BENCHMARK_MIGRATETEST_PARAMS"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/$TEST_COMMAND ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./${TEST_COMMAND} $BENCHMARK_MIGRATETEST_PARAMS"
+    else
+        assert_has_program $TEST_COMMAND
+        report "$PROGRAM_RT_MIGRATE_TEST $BENCHMARK_MIGRATETEST_PARAMS"
+    fi
 }
diff --git a/tests/Benchmark.pmqtest/fuego_test.sh b/tests/Benchmark.pmqtest/fuego_test.sh
index 6733e78..8d3f75a 100755
--- a/tests/Benchmark.pmqtest/fuego_test.sh
+++ b/tests/Benchmark.pmqtest/fuego_test.sh
@@ -27,5 +27,11 @@ function test_run {
     # The number for getting the lines depends on the cpu number of target machine.
     target_cpu_number=$(cmd "nproc")
     getting_line_number=$(( $target_cpu_number + $target_cpu_number ))
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./pmqtest $BENCHMARK_PMQTEST_PARAMS | tail -$getting_line_number"
+
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/pmqtest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./pmqtest $BENCHMARK_PMQTEST_PARAMS | tail -$getting_line_number"
+    else
+        assert_has_program pmqtest
+        report "$PROGRAM_PMQTEST $BENCHMARK_PMQTEST_PARAMS | tail -$getting_line_number"
+    fi
 }
diff --git a/tests/Benchmark.ptsematest/fuego_test.sh b/tests/Benchmark.ptsematest/fuego_test.sh
index a626d44..e534412 100755
--- a/tests/Benchmark.ptsematest/fuego_test.sh
+++ b/tests/Benchmark.ptsematest/fuego_test.sh
@@ -27,5 +27,11 @@ function test_run {
     # The number for getting the lines depends on the cpu number of target machine.
     target_cpu_number=$(cmd "cat /proc/cpuinfo | grep processor | wc -l")
     getting_line_number=$(( $target_cpu_number + $target_cpu_number ))
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./ptsematest $BENCHMARK_PTSEMATEST_PARAMS | tail -$getting_line_number"
+
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/ptsematest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./ptsematest $BENCHMARK_PTSEMATEST_PARAMS | tail -$getting_line_number"
+    else
+        assert_has_program ptsematest
+        report "$PROGRAM_PTSEMATEST $BENCHMARK_PTSEMATEST_PARAMS | tail -$getting_line_number"
+    fi
 }
diff --git a/tests/Benchmark.signaltest/fuego_test.sh b/tests/Benchmark.signaltest/fuego_test.sh
index 54e08b1..8811d17 100755
--- a/tests/Benchmark.signaltest/fuego_test.sh
+++ b/tests/Benchmark.signaltest/fuego_test.sh
@@ -22,5 +22,10 @@ function test_deploy {
 }
 
 function test_run {
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./signaltest $BENCHMARK_SIGNALTEST_PARAMS"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/signaltest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./signaltest $BENCHMARK_SIGNALTEST_PARAMS"
+    else
+        assert_has_program signaltest
+        report "$PROGRAM_SIGNALTEST $BENCHMARK_SIGNALTEST_PARAMS"
+    fi
 }
diff --git a/tests/Benchmark.sigwaittest/fuego_test.sh b/tests/Benchmark.sigwaittest/fuego_test.sh
index e419f17..babcab6 100755
--- a/tests/Benchmark.sigwaittest/fuego_test.sh
+++ b/tests/Benchmark.sigwaittest/fuego_test.sh
@@ -27,5 +27,10 @@ function test_run {
     # The number for getting the lines depends on the cpu number of target machine.
     target_cpu_number=$(cmd "nproc")
     getting_line_number=$(( $target_cpu_number + $target_cpu_number ))
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./sigwaittest $BENCHMARK_SIGWAITTEST_PARAMS | tail -$getting_line_number"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/sigwaittest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./sigwaittest $BENCHMARK_SIGWAITTEST_PARAMS | tail -$getting_line_number"
+    else
+        assert_has_program sigwaittest
+        report "$PROGRAM_SIGWAITTEST $BENCHMARK_SIGWAITTEST_PARAMS | tail -$getting_line_number"
+    fi
 }
diff --git a/tests/Benchmark.svsematest/fuego_test.sh b/tests/Benchmark.svsematest/fuego_test.sh
index 2f6e914..cb0184b 100755
--- a/tests/Benchmark.svsematest/fuego_test.sh
+++ b/tests/Benchmark.svsematest/fuego_test.sh
@@ -27,5 +27,10 @@ function test_run {
     # The number for getting the lines depends on the cpu number of target machine.
     target_cpu_number=$(cmd "cat /proc/cpuinfo | grep processor | wc -l")
     getting_line_number=$(( $target_cpu_number + $target_cpu_number ))
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./svsematest $BENCHMARK_SVSEMATEST_PARAMS | tail -$getting_line_number"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/svsematest ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./svsematest $BENCHMARK_SVSEMATEST_PARAMS | tail -$getting_line_number"
+    else
+        assert_has_program svsematest
+        report "$PROGRAM_SVSEMATEST $BENCHMARK_SVSEMATEST_PARAMS | tail -$getting_line_number"
+    fi
 }
diff --git a/tests/Functional.pi_tests/fuego_test.sh b/tests/Functional.pi_tests/fuego_test.sh
index bf94a63..590fbf3 100755
--- a/tests/Functional.pi_tests/fuego_test.sh
+++ b/tests/Functional.pi_tests/fuego_test.sh
@@ -22,7 +22,12 @@ function test_deploy {
 }
 
 function test_run {
-    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./pi_stress $FUNCTIONAL_PI_TESTS_PARAMS"
+    if [ -f $BOARD_TESTDIR/fuego.$TESTDIR/pi_stress ]; then
+        report "cd $BOARD_TESTDIR/fuego.$TESTDIR; ./pi_stress $FUNCTIONAL_PI_TESTS_PARAMS"
+    else
+        assert_has_program pi_stress
+        report "$PROGRAM_PI_STRESS $FUNCTIONAL_PI_TESTS_PARAMS"
+    fi
 }
 
 function test_processing {
-- 
2.17.1



  parent reply	other threads:[~2021-08-20  6:20 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-20  6:20 [Fuego] fixes for the linaro and rt tests Daniel Sangorrin
2021-08-20  6:20 ` [Fuego] [PATCH 1/4] linaro: localhost does not require ssh Daniel Sangorrin
2021-08-20  6:20   ` [Fuego] [PATCH 2/4] linaro: update to python3 Daniel Sangorrin
2021-08-26 17:53     ` Tim.Bird
2021-08-27  5:50       ` tho1.nguyendat
2021-08-27 21:48         ` Tim.Bird
2021-08-27  6:08       ` daniel.sangorrin
2021-08-27 21:47         ` Tim.Bird
2021-08-28  0:05           ` Tim.Bird
2021-10-19  4:45             ` daniel.sangorrin
2021-08-20  6:20   ` [Fuego] [PATCH 3/4] hackbench: fix the chart config file Daniel Sangorrin
2021-08-27  0:33     ` Tim.Bird
2021-08-27  1:48       ` daniel.sangorrin
2021-08-20  6:20   ` Daniel Sangorrin [this message]
2021-08-20 20:16     ` [Fuego] [PATCH 4/4] rt: search for the binary if the build phase is skipped Tim.Bird
2021-08-20 20:19       ` Tim.Bird
2021-08-26  2:56       ` daniel.sangorrin
2021-08-27  5:28         ` Tim.Bird
2021-08-27  5:55           ` tho1.nguyendat
2021-09-01 19:09             ` Tim.Bird
2021-09-07 16:33               ` Venkata.Pyla
2021-09-08  1:13                 ` Tim.Bird
2021-09-08  5:03                   ` daniel.sangorrin
2021-09-08  7:44                     ` Venkata.Pyla
2021-09-08 22:08                     ` Tim.Bird
2021-09-09  0:25                       ` daniel.sangorrin
2021-10-07  1:56                         ` Tim.Bird
2021-10-07  2:01                           ` daniel.sangorrin
2021-09-08  7:16                   ` Venkata.Pyla
2021-08-20 19:57 ` [Fuego] fixes for the linaro and rt tests Tim.Bird
2021-08-26  2:45   ` daniel.sangorrin
2021-08-27  9:23     ` tho1.nguyendat
2021-08-31 22:38       ` Tim.Bird

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bc279d0d7bbbb6981eafc6c5bf000ef30fd1aae.1629440060.git.daniel.sangorrin@toshiba.co.jp \
    --to=daniel.sangorrin@toshiba.co.jp \
    --cc=Tim.Bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=tho1.nguyendat@toshiba.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.