[Fuego] [PATCH 10/11] LTP: add test.yaml describing all variables
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Fri May 18 02:48:55 UTC 2018
I moved some text written by Tim from fuego_test.sh, I hope
that is OK.
Also, I haven't properly validated the YAML file.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/tests/Functional.LTP/fuego_test.sh | 23 ---------
engine/tests/Functional.LTP/test.yaml | 85 +++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+), 23 deletions(-)
create mode 100644 engine/tests/Functional.LTP/test.yaml
diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index 44296c5..ecbf758 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -57,29 +57,6 @@ func/sched_jitter
# - this is a one-time operation
# - this set up the system for 2
# - this is implemented by spec: "make_pkg"
-#
-# variables used:
-# from board file or spec:
-# FUNCTIONAL_LTP_HOMEDIR = persistent location for LTP on board
-# FUNCTIONAL_LTP_PHASES = list of phases to force doing
-# - include string 'build' to do a build
-# - include string 'deploy' to do a deploy
-# - include string 'maketar' to do create a tarball for the target
-# - include string 'run' to do a run
-# - if empty, defaults to "build deploy run"
-#
-# scenario 1:
-# FUNCTIONAL_LTP_HOMEDIR="", FUNTIONAL_LTP_PHASES=""
-# scenario 2:
-# FUNCTIONAL_LTP_HOMEDIR="/opt/ltp", FUNCTIONAL_LTP_PHASES=""
-# if not pre-installed, it's an error (detected in pre_check)
-# scenario 3:
-# FUNCTIONAL_LTP_HOMEDIR="/opt/ltp", FUNCTIONAL_LTP_PHASES="build deploy"
-# if already pre-installed, it's an error (or rm -rf is done in deploy)
-# scenario 4:
-# FUNCTIONAL_LTP_HOMEDIR="/opt/ltp", FUNCTIONAL_LTP_PHASES="build maketar"
-# user should copy tar to board, and install it, then set board file's
-# FUNCTIONAL_LTP_HOMEDIR var
# $1: string with tests to skip separated by spaces
# $2: absolute path to the skipfile (default: ${LOGDIR}/skiplist.txt)
diff --git a/engine/tests/Functional.LTP/test.yaml b/engine/tests/Functional.LTP/test.yaml
new file mode 100644
index 0000000..714da45
--- /dev/null
+++ b/engine/tests/Functional.LTP/test.yaml
@@ -0,0 +1,85 @@
+fuego_package_version: 1
+name: Functional.LTP
+description: |
+ Linux Test Project is a joint project started by SGI, OSDL and
+ Bull developed and maintained by IBM, Cisco, Fujitsu, SUSE, Red Hat,
+ Oracle and others. The project goal is to deliver tests to the open
+ source community that validate the reliability, robustness, and
+ stability of Linux.
+license: GPL-2.0
+author: Andrew Tridgell, Ronnie Sahlberg
+maintainer: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
+version: 20180118
+fuego_release: 1
+type: Functional
+tags: ['kernel', 'syscalls', 'posix', 'real-time']
+tarball_src:
+ - ltp-full-20180118.tar.bz2: https://github.com/linux-test-project/ltp/releases/download/20180118/ltp-full-20180118.tar.bz2
+params:
+ - HOMEDIR:
+ description: persistent location for LTP on board
+ example: "/opt/ltp"
+ optional: yes
+ - PHASES:
+ description: |
+ - List of phases to force doing: |
+ - include string 'build' to do a build
+ - include string 'deploy' to do a deploy
+ - include string 'maketar' to do create a tarball for the target
+ - include string 'run' to do a run
+ - if empty, defaults to "build deploy run"
+ - Possible scenarios:
+ - scenario 1: |
+ HOMEDIR="", PHASES=""
+ - scenario 2: |
+ HOMEDIR="/opt/ltp", PHASES=""
+ if not pre-installed, it is an error (detected in pre_check)
+ - scenario 3: |
+ HOMEDIR="/opt/ltp", PHASES="build deploy"
+ if already pre-installed, it is an error (or rm -rf is done in deploy)
+ - scenario 4: |
+ HOMEDIR="/opt/ltp", PHASES="build maketar"
+ user should copy tar to board, and install it, then set board file HOMEDIR var
+ example: "build maketar"
+ optional: yes
+ - NOAUTOSKIP:
+ description: |
+ Power users can use the NOAUTOSKIP flag to disable automatic
+ runtime skips. It has no effect on automatic build-time skips
+ (those done by skip_if_config_unavailable) unless you
+ rebuild LTP (Rebuild=true)
+ example: "true"
+ optional: yes
+ - TESTS:
+ description: |
+ The list of test groups (runtests) you want to run. You can choose
+ from the ALLTESTS variable inside fuego_test.sh
+ example: "syscalls fs pipes sched timers dio mm"
+ optional: no
+ - SKIPLIST:
+ description: |
+ List of test cases to skip or a path to a file containing a list
+ of test cases to skip.
+ example: "kill10 keyctl01 inotify06"
+ optional: yes
+ - BOARD_SKIPLIST:
+ description: Same as SKIPLIST but normally defined by the board file.
+ example: "abort01"
+ optional: yes
+data_files:
+ - chart_config.json
+ - criteria.json
+ - docs
+ - Functional.LTP.ftmp
+ - Functional.LTP.syscalls.add_key02.ftmp
+ - Functional.LTP.syscalls.fanotify07.ftmp
+ - Functional.LTP.syscalls.fcntl35.ftmp
+ - Functional.LTP.syscalls.ftmp
+ - Functional.LTP.syscalls.inotify06.ftmp
+ - fuego_test.sh
+ - ltp-full-20180118.tar.bz2
+ - ltp_process.py
+ - ltp_target_run.sh
+ - parser.py
+ - spec.json
+ - test.yaml
--
2.7.4
More information about the Fuego
mailing list