forked from woqidaideshi/openruyi-autotest
Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb50ef29ed | ||
|
|
1942d2036a | ||
|
|
9d8a140b68 | ||
|
|
1d7340e96e | ||
|
|
9f0b3f5935 | ||
|
|
1fb30e5398 | ||
|
|
fac8213444 | ||
|
|
74b4eb4ef2 | ||
|
|
1c44966f8b | ||
|
|
166498ad14 | ||
|
|
653327ee0c | ||
|
|
0c4a2bce72 | ||
|
|
593a557da5 |
+63
-63
@@ -1,63 +1,63 @@
|
||||
# Functional test - Package tests
|
||||
|
||||
This directory contains functional test cases for each package, Uses ACL sub-directory structure standard.
|
||||
|
||||
## Test coverage overview
|
||||
|
||||
- **202 packages**, **561 test cases**, **1,692 functional points**
|
||||
- All test scripts have been verified on openEuler RISC-V server
|
||||
- See [Functional test coverage details](../../docs/coverage/functional-coverage.md)
|
||||
|
||||
## directory structure
|
||||
|
||||
```
|
||||
tests/functional/
|
||||
├── main.fmf # Shared configuration (All subdirectories inherit)
|
||||
├── README.md # this file
|
||||
└── pkgs/ # RPM Package functional tests
|
||||
├── main.fmf # Shared configuration
|
||||
├── acl/ # acl Package tests (Reference standard)
|
||||
│ ├── main.fmf
|
||||
│ ├── test.sh
|
||||
│ └── test_acl_*/ # Sub-test directories
|
||||
├── attr/ # attr Package tests
|
||||
│ ├── main.fmf
|
||||
│ ├── test.sh
|
||||
│ └── test_attr_*/ # Sub-test directories
|
||||
└──... # More package tests
|
||||
```
|
||||
|
||||
## Test structure specification (Refer to ACL)
|
||||
|
||||
Each package test directory contains:
|
||||
- `main.fmf` -- Package-level metadata configuration
|
||||
- `test.sh` -- Package-level main test script
|
||||
- `test_<pkg>_<feature>/` -- Sub-test directories split by functional point
|
||||
- `main.fmf` -- Sub-test metadata
|
||||
- `test.sh` -- Sub-test script
|
||||
|
||||
## Add new package test
|
||||
|
||||
1. Create directory `tests/functional/pkgs/<package_name>/`
|
||||
2. create `main.fmf` (Refer to `pkgs/acl/main.fmf`)
|
||||
3. create `test.sh` (Refer to template)
|
||||
4. Create sub-test directories by functional point
|
||||
|
||||
## Run tests
|
||||
|
||||
```bash
|
||||
tmt run plan --name /plans/functional test --name /tests/functional/<package_name>
|
||||
```
|
||||
- Metadata files are uniformly named `main.fmf`
|
||||
|
||||
## Test coverage progress
|
||||
|
||||
| soft | Status | Number of test cases | Notes |
|
||||
|--------|------|-----------|------|
|
||||
| acl | ✅ Complete | 27+ | First example package |
|
||||
|... | To be added | - | - |
|
||||
|
||||
## Reference documentation
|
||||
|
||||
- Package test writing guide:`.trellis/tasks/06-09-acl/package-test-guide.md`
|
||||
- tmt Official documentation:https://tmt.readthedocs.io/
|
||||
# Functional test - Package tests
|
||||
|
||||
This directory contains functional test cases for each package, Uses ACL sub-directory structure standard.
|
||||
|
||||
## Test coverage overview
|
||||
|
||||
- **202 packages**, **561 test cases**, **1,692 functional points**
|
||||
- All test scripts have been verified on openEuler RISC-V server
|
||||
- See [Functional test coverage details](../../docs/coverage/functional-coverage.md)
|
||||
|
||||
## directory structure
|
||||
|
||||
```
|
||||
tests/functional/
|
||||
├── main.fmf # Shared configuration (All subdirectories inherit)
|
||||
├── README.md # this file
|
||||
└── pkgs/ # RPM Package functional tests
|
||||
├── main.fmf # Shared configuration
|
||||
├── acl/ # acl Package tests (Reference standard)
|
||||
│ ├── main.fmf
|
||||
│ ├── test.sh
|
||||
│ └── test_acl_*/ # Sub-test directories
|
||||
├── attr/ # attr Package tests
|
||||
│ ├── main.fmf
|
||||
│ ├── test.sh
|
||||
│ └── test_attr_*/ # Sub-test directories
|
||||
└──... # More package tests
|
||||
```
|
||||
|
||||
## Test structure specification (Refer to ACL)
|
||||
|
||||
Each package test directory contains:
|
||||
- `main.fmf` -- Package-level metadata configuration
|
||||
- `test.sh` -- Package-level main test script
|
||||
- `test_<pkg>_<feature>/` -- Sub-test directories split by functional point
|
||||
- `main.fmf` -- Sub-test metadata
|
||||
- `test.sh` -- Sub-test script
|
||||
|
||||
## Add new package test
|
||||
|
||||
1. Create directory `tests/functional/pkgs/<package_name>/`
|
||||
2. create `main.fmf` (Refer to `pkgs/acl/main.fmf`)
|
||||
3. create `test.sh` (Refer to template)
|
||||
4. Create sub-test directories by functional point
|
||||
|
||||
## Run tests
|
||||
|
||||
```bash
|
||||
tmt run plan --name /plans/functional test --name /tests/functional/<package_name>
|
||||
```
|
||||
- Metadata files are uniformly named `main.fmf`
|
||||
|
||||
## Test coverage progress
|
||||
|
||||
| soft | Status | Number of test cases | Notes |
|
||||
|--------|------|-----------|------|
|
||||
| acl | ✅ Complete | 27+ | First example package |
|
||||
|... | To be added | - | - |
|
||||
|
||||
## Reference documentation
|
||||
|
||||
- Package test writing guide:`.trellis/tasks/06-09-acl/package-test-guide.md`
|
||||
- tmt Official documentation:https://tmt.readthedocs.io/
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
summary: Functional test - editorconfig-core-c-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- editorconfig-core-c
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/cmake/test_editorconfig-core-c-devel_cmake_verify
|
||||
require:
|
||||
- editorconfig-core-c-devel
|
||||
- editorconfig-core-c-static
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: editorconfig-core-c-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="editorconfig-core-c-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(EditorConfig) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(EditorConfig REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(EditorConfig) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(EditorConfig CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package EditorConfig CONFIG)"; then
|
||||
rlPass "find_package(EditorConfig CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(EditorConfig CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,17 @@
|
||||
summary: Functional test - fltk-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- fltk
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/cmake/test_fltk-devel_cmake_verify
|
||||
require:
|
||||
- fltk-devel
|
||||
- fltk-static
|
||||
- fltk-fluid
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: fltk-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="fltk-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(FLTK) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(FLTK REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(FLTK) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(FLTK CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package FLTK CONFIG)"; then
|
||||
rlPass "find_package(FLTK CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(FLTK CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -6,7 +6,7 @@ tag:
|
||||
- qt6-qttools
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_qt6-qttools-devel_cmake_verify
|
||||
path: /tests/functional/cmake/test_qt6-qttools-devel_cmake_verify
|
||||
require:
|
||||
- qt6-qttools-devel
|
||||
- qt6-doctools
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
summary: Functional test - spirv-cross-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- spirv-cross
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/cmake/test_spirv-cross-devel_cmake_verify
|
||||
require:
|
||||
- spirv-cross-devel
|
||||
- spirv-cross-static
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
@@ -0,0 +1,247 @@
|
||||
#!/bin/bash
|
||||
# Functional test: spirv-cross-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="spirv-cross-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(spirv_cross_c) ---
|
||||
# spirv_cross_c depends on: glsl, hlsl, msl, cpp, reflect
|
||||
# glsl/hlsl/msl/cpp depend on: core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_glsl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_hlsl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_msl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_cpp REQUIRED CONFIG)
|
||||
find_package(spirv_cross_reflect REQUIRED CONFIG)
|
||||
find_package(spirv_cross_c REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_c) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_c CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package spirv_cross_c CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_c CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_c CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_c_shared) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_c_shared REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_c_shared) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_c_shared CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_1"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
|
||||
"cmake configuration (find_package spirv_cross_c_shared CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_c_shared CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_c_shared CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_core) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_core) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_core CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_2"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_2" 0 \
|
||||
"cmake configuration (find_package spirv_cross_core CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_core CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_core CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_cpp) ---
|
||||
# spirv_cross_cpp depends on: glsl -> core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_glsl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_cpp REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_cpp) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_cpp CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_3"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_3" 0 \
|
||||
"cmake configuration (find_package spirv_cross_cpp CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_cpp CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_cpp CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_glsl) ---
|
||||
# spirv_cross_glsl depends on: core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_glsl REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_glsl) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_glsl CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_4"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_4" 0 \
|
||||
"cmake configuration (find_package spirv_cross_glsl CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_glsl CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_glsl CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_hlsl) ---
|
||||
# spirv_cross_hlsl depends on: glsl -> core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_glsl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_hlsl REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_hlsl) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_hlsl CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_5"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_5" 0 \
|
||||
"cmake configuration (find_package spirv_cross_hlsl CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_hlsl CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_hlsl CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_msl) ---
|
||||
# spirv_cross_msl depends on: glsl -> core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_glsl REQUIRED CONFIG)
|
||||
find_package(spirv_cross_msl REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_msl) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_msl CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_6"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_6" 0 \
|
||||
"cmake configuration (find_package spirv_cross_msl CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_msl CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_msl CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_reflect) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_reflect REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_reflect) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_reflect CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_7"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_7" 0 \
|
||||
"cmake configuration (find_package spirv_cross_reflect CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_reflect CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_reflect CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(spirv_cross_util) ---
|
||||
# spirv_cross_util depends on: core
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(spirv_cross_core REQUIRED CONFIG)
|
||||
find_package(spirv_cross_util REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(spirv_cross_util) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(spirv_cross_util CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_8"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_8" 0 \
|
||||
"cmake configuration (find_package spirv_cross_util CONFIG)"; then
|
||||
rlPass "find_package(spirv_cross_util CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(spirv_cross_util CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -1,13 +1,13 @@
|
||||
summary: Functional test - dejagnu - GCC compiletestwith
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_gcc_test
|
||||
require:
|
||||
- dejagnu
|
||||
- gcc
|
||||
- beakerlib
|
||||
summary: Functional test - dejagnu - GCC compiletestwith
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_gcc_test
|
||||
require:
|
||||
- dejagnu
|
||||
- gcc
|
||||
- beakerlib
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
summary: Functional test - dejagnu - G++ compiletestwith
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_gxx_test
|
||||
require:
|
||||
- dejagnu
|
||||
- gcc-c++
|
||||
- beakerlib
|
||||
summary: Functional test - dejagnu - G++ compiletestwith
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_gxx_test
|
||||
require:
|
||||
- dejagnu
|
||||
- gcc-c++
|
||||
- beakerlib
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
summary: Functional test - dejagnu - runtest availablecheck
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_runtest_check
|
||||
require:
|
||||
- dejagnu
|
||||
- beakerlib
|
||||
summary: Functional test - dejagnu - runtest availablecheck
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- dejagnu
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_runtest_check
|
||||
require:
|
||||
- dejagnu
|
||||
- beakerlib
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
summary: Functional test - dejagnu - warning (-Wall/-Wextra/-Werror/-pedantic)
|
||||
test: ./test.sh
|
||||
tag: [functional, compiler, dejagnu]
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_warnings
|
||||
require: [dejagnu, gcc, clang, beakerlib]
|
||||
summary: Functional test - dejagnu - warning (-Wall/-Wextra/-Werror/-pedantic)
|
||||
test: ./test.sh
|
||||
tag: [functional, compiler, dejagnu]
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/dejagnu/test_dejagnu_warnings
|
||||
require: [dejagnu, gcc, clang, beakerlib]
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
summary: Functional test - Jotai programcompiletest
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- jotai
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/jotai
|
||||
require:
|
||||
- beakerlib
|
||||
- gcc
|
||||
- clang
|
||||
- git
|
||||
summary: Functional test - Jotai programcompiletest
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- jotai
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/jotai
|
||||
require:
|
||||
- beakerlib
|
||||
- gcc
|
||||
- clang
|
||||
- git
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
summary: Functional test - jotai - Environmentandrepolibrary
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- jotai
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/jotai/test_jotai_setup
|
||||
require:
|
||||
- gcc
|
||||
- clang
|
||||
- git
|
||||
- beakerlib
|
||||
summary: Functional test - jotai - Environmentandrepolibrary
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- jotai
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/jotai/test_jotai_setup
|
||||
require:
|
||||
- gcc
|
||||
- clang
|
||||
- git
|
||||
- beakerlib
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
summary: Functional test - yarpgen - source codebuildand
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- yarpgen
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/yarpgen/test_yarpgen_build
|
||||
require:
|
||||
- gcc-c++
|
||||
- cmake
|
||||
- git
|
||||
- beakerlib
|
||||
summary: Functional test - yarpgen - source codebuildand
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- compiler
|
||||
- yarpgen
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/yarpgen/test_yarpgen_build
|
||||
require:
|
||||
- gcc-c++
|
||||
- cmake
|
||||
- git
|
||||
- beakerlib
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
summary: Functional test - yarpgen - multifileseparate compilation + C/C++ link
|
||||
test: ./test.sh
|
||||
tag: [functional, compiler, yarpgen]
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/yarpgen/test_yarpgen_multifile
|
||||
require: [gcc, gcc-c++, clang, beakerlib]
|
||||
summary: Functional test - yarpgen - multifileseparate compilation + C/C++ link
|
||||
test: ./test.sh
|
||||
tag: [functional, compiler, yarpgen]
|
||||
duration: 5m
|
||||
tier: 2
|
||||
path: /tests/functional/compiler/yarpgen/test_yarpgen_multifile
|
||||
require: [gcc, gcc-c++, clang, beakerlib]
|
||||
|
||||
@@ -96,7 +96,7 @@ EOF" 2>/dev/null || true
|
||||
|
||||
timeout --signal=KILL --kill-after=10 600 \
|
||||
|
||||
bash./check "$test_name" 2>&1 | tee "$out"
|
||||
bash ./check "$test_name" 2>&1 | tee "$out"
|
||||
|
||||
local rc=${PIPESTATUS[0]}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- functional
|
||||
- kernel
|
||||
- blktests
|
||||
duration: 5m
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/functional/kernel/blktests/scsi/test_blktests_scsi_007
|
||||
require:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
summary: Functional test - kernel - LTP test
|
||||
tag:
|
||||
- functional
|
||||
- kernel
|
||||
- realtime
|
||||
- ltp
|
||||
duration: 30m
|
||||
tier: 1
|
||||
path: /tests/functional/kernel/realtime
|
||||
require:
|
||||
- beakerlib
|
||||
summary: Functional test - kernel - LTP test
|
||||
tag:
|
||||
- functional
|
||||
- kernel
|
||||
- realtime
|
||||
- ltp
|
||||
duration: 30m
|
||||
tier: 1
|
||||
path: /tests/functional/kernel/realtime
|
||||
require:
|
||||
- beakerlib
|
||||
|
||||
@@ -116,7 +116,7 @@ _mmtestsRunCase() {
|
||||
|
||||
local exit_lines
|
||||
|
||||
exit_lines=$(grep "test exit:" "$out" 2>/dev/null)
|
||||
exit_lines=$(grep '^test exit :: ' "$out" 2>/dev/null)
|
||||
|
||||
if [ -z "$exit_lines" ]; then
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 90m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_io_blogbench
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 120m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_io_trunc
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 60m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_memdb_redis_benchmark_small
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 55m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_pagereclaim_stutterp
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 45m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_workload_ebizzy
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 60m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_workload_usemem_stress_numa_compact
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 120m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_workload_will_it_scale_io_processes
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 120m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_workload_will_it_scale_io_threads
|
||||
require:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ tag:
|
||||
- performance
|
||||
- kernel
|
||||
- mmtests
|
||||
duration: 30m
|
||||
duration: 55m
|
||||
tier: 1
|
||||
path: /tests/performance/mmtests/test_mmtests_workload_will_it_scale_sys_processes
|
||||
require:
|
||||
|
||||
@@ -3,7 +3,7 @@ test: ./test.sh
|
||||
tag:
|
||||
- performance
|
||||
- unixbench
|
||||
duration: 10m
|
||||
duration: 35m
|
||||
tier: 2
|
||||
path: /tests/performance/unixbench/test_unixbench_half_cpu
|
||||
require:
|
||||
|
||||
@@ -3,7 +3,7 @@ test: ./test.sh
|
||||
tag:
|
||||
- performance
|
||||
- unixbench
|
||||
duration: 10m
|
||||
duration: 35m
|
||||
tier: 2
|
||||
path: /tests/performance/unixbench/test_unixbench_multi_thread
|
||||
require:
|
||||
|
||||
@@ -3,7 +3,7 @@ test: ./test.sh
|
||||
tag:
|
||||
- performance
|
||||
- unixbench
|
||||
duration: 10m
|
||||
duration: 20m
|
||||
tier: 2
|
||||
path: /tests/performance/unixbench/test_unixbench_quick_mode
|
||||
require:
|
||||
|
||||
@@ -3,7 +3,7 @@ test: ./test.sh
|
||||
tag:
|
||||
- performance
|
||||
- unixbench
|
||||
duration: 10m
|
||||
duration: 35m
|
||||
tier: 2
|
||||
path: /tests/performance/unixbench/test_unixbench_single_thread
|
||||
require:
|
||||
|
||||
@@ -152,6 +152,29 @@ _stressNgTaintCheck() {
|
||||
|
||||
|
||||
|
||||
# Extract bogo ops/s (real time) for a stressor from a stress-ng metrics log
|
||||
_stressNgBogoOps() {
|
||||
local log="$1"
|
||||
local stressor="${2:-}"
|
||||
|
||||
awk -v stressor="$stressor" '
|
||||
/^stress-ng:[[:space:]]*metrc:/ {
|
||||
row = $0
|
||||
sub(/^stress-ng:[[:space:]]*metrc:[[:space:]]*\[[0-9]+\][[:space:]]*/, "", row)
|
||||
n = split(row, f, /[[:space:]]+/)
|
||||
if (n >= 7 && f[2] ~ /^[0-9]+$/ && f[6] ~ /^[0-9]+([.][0-9]+)?$/) {
|
||||
if (stressor != "" && f[1] == stressor && !found) {
|
||||
print f[6]
|
||||
found = 1
|
||||
}
|
||||
if (first == "") first = f[6]
|
||||
}
|
||||
}
|
||||
END { if (!found && first != "") print first }
|
||||
' "$log"
|
||||
}
|
||||
|
||||
|
||||
# Validate stress-ng result from log file
|
||||
|
||||
# Checks: successful run completed, failed=0, bogo ops > 0
|
||||
@@ -202,13 +225,7 @@ _stressNgValidate() {
|
||||
|
||||
local bogo
|
||||
|
||||
bogo=$(grep -oP "$stressor\s+.*?\s+(\d+\.?\d*)\s+\(\s*real\s+time\s*\)" "$log" | grep -oP '\d+\.?\d*(?=\s*\(\s*real)' | head -1)
|
||||
|
||||
if [ -z "$bogo" ]; then
|
||||
|
||||
bogo=$(grep "$stressor" "$log" | grep -oP '\d+\.?\d+(?=\s*\(\s*real)' | head -1)
|
||||
|
||||
fi
|
||||
bogo=$(_stressNgBogoOps "$log" "$stressor")
|
||||
|
||||
if [ -n "$bogo" ] && [ "$(echo "$bogo > 0" | bc 2>/dev/null || echo 1)" -eq 1 ]; then
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "combined stress: CPU+MEM+PROC"
|
||||
|
||||
local log="$TmpDir/combo1.log"
|
||||
log="$TmpDir/combo1.log"
|
||||
|
||||
# simultaneously CPU(2thread) + VM(128M) + FORK(2thread)
|
||||
|
||||
@@ -58,11 +58,11 @@ rlJournalStart
|
||||
|
||||
# useDocumentation recommends 13 workload (time)
|
||||
|
||||
local log="$TmpDir/combo2.log"
|
||||
log="$TmpDir/combo2.log"
|
||||
|
||||
local workloads="cpu context fork get mmap vm-splice wait zombie"
|
||||
workloads="cpu context fork get mmap vm-splice wait zombie"
|
||||
|
||||
local args=""
|
||||
args=""
|
||||
|
||||
for w in $workloads; do args="$args --$w 1"; done
|
||||
|
||||
@@ -76,7 +76,6 @@ rlJournalStart
|
||||
|
||||
# count passed count
|
||||
|
||||
local passed
|
||||
|
||||
passed=$(grep -oP 'passed:\s*\K\d+' "$log" | awk '{s+=$1} END {print s}')
|
||||
|
||||
@@ -92,7 +91,6 @@ rlJournalStart
|
||||
|
||||
# confirmnofailed
|
||||
|
||||
local failed
|
||||
|
||||
failed=$(grep -oP 'failed:\s*\K\d+' "$log" | awk '{s+=$1} END {print s}')
|
||||
|
||||
@@ -112,7 +110,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "metrics analysis"
|
||||
|
||||
local log="$TmpDir/combo1.log"
|
||||
log="$TmpDir/combo1.log"
|
||||
|
||||
# analysis usr/sys time
|
||||
|
||||
@@ -122,7 +120,6 @@ rlJournalStart
|
||||
|
||||
# usr time shouldtotaltime
|
||||
|
||||
local total_usr total_sys
|
||||
|
||||
total_usr=$(grep -oP 'usr time\s+\K[\d.]+' "$log" | head -1)
|
||||
|
||||
|
||||
@@ -28,11 +28,11 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "CPU stress rampthread"
|
||||
|
||||
local bogo_vals=()
|
||||
bogo_vals=()
|
||||
|
||||
for t in 1 2 4; do
|
||||
|
||||
local log="$TmpDir/cpu_${t}.log"
|
||||
log="$TmpDir/cpu_${t}.log"
|
||||
|
||||
rlRun "stress-ng --cpu $t --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "CPU $t thread"
|
||||
|
||||
@@ -42,9 +42,8 @@ rlJournalStart
|
||||
|
||||
# extract bogo ops/s
|
||||
|
||||
local bogo
|
||||
|
||||
bogo=$(grep "cpu" "$log" | grep -oP '\d+\.?\d*(?=\s*\(\s*real)' | head -1)
|
||||
bogo=$(_stressNgBogoOps "$log" "cpu")
|
||||
|
||||
bogo_vals+=("$bogo")
|
||||
|
||||
@@ -83,4 +82,3 @@ rlJournalStart
|
||||
rlJournalPrintText
|
||||
|
||||
rlJournalEnd
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "HDD stress (IO)"
|
||||
|
||||
local log="$TmpDir/hdd.log"
|
||||
log="$TmpDir/hdd.log"
|
||||
|
||||
rlRun "stress-ng --hdd 2 --hdd-bytes 32M --temp-path $TmpDir/io_test --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--hdd 2"
|
||||
|
||||
@@ -42,7 +42,7 @@ rlJournalStart
|
||||
|
||||
# aio needs libaio supports, possiblesystemnot supported
|
||||
|
||||
local log="$TmpDir/aio.log"
|
||||
log="$TmpDir/aio.log"
|
||||
|
||||
stress-ng --aio 2 --timeout 20s --metrics-brief --log-file "$log" 2>&1 | tail -5
|
||||
|
||||
@@ -64,7 +64,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "GETDENT stress (directory)"
|
||||
|
||||
local log="$TmpDir/getdent.log"
|
||||
log="$TmpDir/getdent.log"
|
||||
|
||||
rlRun "stress-ng --getdent 2 --timeout 20s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--getdent 2"
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "MATRIX stress ()"
|
||||
|
||||
local log="$TmpDir/matrix.log"
|
||||
log="$TmpDir/matrix.log"
|
||||
|
||||
rlRun "stress-ng --matrix 2 --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--matrix 2"
|
||||
|
||||
@@ -36,7 +36,6 @@ rlJournalStart
|
||||
|
||||
if grep -q "matrix" "$log"; then
|
||||
|
||||
local usr sys
|
||||
|
||||
usr=$(grep "matrix" "$log" | awk '{for(i=1;i<=NF;i++){if($i~/^[0-9.]+$/&&$(i-1)~/secs/)print $i}}' | head -1)
|
||||
|
||||
@@ -50,7 +49,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "AF-ALG stress (kernelcrypto)"
|
||||
|
||||
local log="$TmpDir/af_alg.log"
|
||||
log="$TmpDir/af_alg.log"
|
||||
|
||||
stress-ng --af-alg 2 --timeout 20s --metrics-brief --log-file "$log" 2>&1 | tail -5
|
||||
|
||||
@@ -72,7 +71,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "VM-SPLICE stress (pipe splice)"
|
||||
|
||||
local log="$TmpDir/vm_splice.log"
|
||||
log="$TmpDir/vm_splice.log"
|
||||
|
||||
stress-ng --vm-splice 2 --timeout 20s --metrics-brief --log-file "$log" 2>&1 | tail -5
|
||||
|
||||
@@ -96,7 +95,7 @@ rlJournalStart
|
||||
|
||||
#: itemswillExceptionsignalhandlepath, possiblehaspreerror
|
||||
|
||||
local log="$TmpDir/bad_altstack.log"
|
||||
log="$TmpDir/bad_altstack.log"
|
||||
|
||||
rlRun "stress-ng --bad-altstack 1 --timeout 10s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--bad-altstack 1"
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "VM stress (memory)"
|
||||
|
||||
local log="$TmpDir/vm.log"
|
||||
log="$TmpDir/vm.log"
|
||||
|
||||
rlRun "stress-ng --vm 2 --vm-bytes 128M --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--vm 2x128M"
|
||||
|
||||
@@ -38,7 +38,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "MMAP stress"
|
||||
|
||||
local log="$TmpDir/mmap.log"
|
||||
log="$TmpDir/mmap.log"
|
||||
|
||||
rlRun "stress-ng --mmap 2 --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--mmap 2"
|
||||
|
||||
@@ -50,7 +50,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "MADVISE stress"
|
||||
|
||||
local log="$TmpDir/madvise.log"
|
||||
log="$TmpDir/madvise.log"
|
||||
|
||||
rlRun "stress-ng --madvise 2 --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--madvise 2"
|
||||
|
||||
@@ -62,7 +62,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "Memory combined stress"
|
||||
|
||||
local log="$TmpDir/mem_combo.log"
|
||||
log="$TmpDir/mem_combo.log"
|
||||
|
||||
# simultaneously VM + MMAP
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "FORK stress"
|
||||
|
||||
local log="$TmpDir/fork.log"
|
||||
log="$TmpDir/fork.log"
|
||||
|
||||
rlRun "stress-ng --fork 4 --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--fork 4"
|
||||
|
||||
@@ -42,7 +42,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "CONTEXT switch stress"
|
||||
|
||||
local log="$TmpDir/context.log"
|
||||
log="$TmpDir/context.log"
|
||||
|
||||
rlRun "stress-ng --context 4 --timeout 30s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--context 4"
|
||||
|
||||
@@ -56,7 +56,7 @@ rlJournalStart
|
||||
|
||||
# zombie willproducedprocesspost, possiblehaspreerror
|
||||
|
||||
local log="$TmpDir/zombie.log"
|
||||
log="$TmpDir/zombie.log"
|
||||
|
||||
rlRun "stress-ng --zombie 2 --timeout 15s --metrics-brief --log-file $log 2>&1 | tail -5" 0 "--zombie 2"
|
||||
|
||||
@@ -68,7 +68,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "WAIT stress (get/gettid)"
|
||||
|
||||
local log="$TmpDir/wait.log"
|
||||
log="$TmpDir/wait.log"
|
||||
|
||||
# --get: callwith getpid/getppid
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- security
|
||||
- cve
|
||||
- ltp
|
||||
duration: 3m
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/security/cve/test_cve-2016-8655
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- security
|
||||
- cve
|
||||
- ltp
|
||||
duration: 3m
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/security/cve/test_cve-2017-15649
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- security
|
||||
- cve
|
||||
- ltp
|
||||
duration: 3m
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/security/cve/test_cve-2018-18559
|
||||
require:
|
||||
|
||||
@@ -4,7 +4,7 @@ tag:
|
||||
- security
|
||||
- cve
|
||||
- ltp
|
||||
duration: 3m
|
||||
duration: 15m
|
||||
tier: 2
|
||||
path: /tests/security/cve/test_cve-2020-14416
|
||||
require:
|
||||
|
||||
Reference in New Issue
Block a user