Skip to content

Commit

Permalink
move test cost to test-props
Browse files Browse the repository at this point in the history
  • Loading branch information
psimovec committed Apr 28, 2022
1 parent 54554b7 commit 112c6bd
Show file tree
Hide file tree
Showing 288 changed files with 292 additions and 317 deletions.
9 changes: 6 additions & 3 deletions tests/rpm-pkgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@ macro(add_test_wrap name cmd)
add_test(NAME ${name}
COMMAND ${cmd}
WORKING_DIRECTORY ${dst_tool_dir})
if(EXISTS tests/rpm-pkgs/${build}/test-props)
file(STRINGS ${build}/test-props props)
else()
set(props "")
endif()

if(NOT "${props}" STREQUAL "")
set_tests_properties(${name} PROPERTIES ${props})
endif()
execute_process(COMMAND python3 tests/rpm-pkgs/cost.py ${name}
OUTPUT_VARIABLE cost)
get_test_property(${name} LABELS labels)
if(NOT ${labels} STREQUAL "NOTFOUND")
set(labels "${tool} ${labels}")
else()
set(labels "${tool}")
endif()
set_tests_properties("${name}" PROPERTIES LABELS ${labels})
set_tests_properties("${name}" PROPERTIES COST ${cost})
endmacro()

# fetch ${build} using the fetch.sh script
Expand Down
1 change: 1 addition & 0 deletions tests/rpm-pkgs/acl-2.3.1-2.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99911
1 change: 1 addition & 0 deletions tests/rpm-pkgs/acpid-2.0.32-7.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99918
1 change: 1 addition & 0 deletions tests/rpm-pkgs/aide-0.16-18.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99905
1 change: 1 addition & 0 deletions tests/rpm-pkgs/anaconda-35.22.2-3.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99848
1 change: 1 addition & 0 deletions tests/rpm-pkgs/argon2-20171227-7.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99902
1 change: 1 addition & 0 deletions tests/rpm-pkgs/at-3.2.2-2.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99914
1 change: 1 addition & 0 deletions tests/rpm-pkgs/atk-2.36.0-4.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99908
1 change: 1 addition & 0 deletions tests/rpm-pkgs/attr-2.5.1-3.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99922
1 change: 1 addition & 0 deletions tests/rpm-pkgs/audit-3.0.6-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99860
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99867
1 change: 1 addition & 0 deletions tests/rpm-pkgs/authselect-1.2.4-2.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99824
1 change: 1 addition & 0 deletions tests/rpm-pkgs/autofs-5.1.7-20.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99906
1 change: 1 addition & 0 deletions tests/rpm-pkgs/autogen-5.18.16-9.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99631
1 change: 1 addition & 0 deletions tests/rpm-pkgs/basesystem-11-12.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99882
1 change: 1 addition & 0 deletions tests/rpm-pkgs/bash-5.1.8-2.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99760
1 change: 1 addition & 0 deletions tests/rpm-pkgs/bluez-5.61-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99868
1 change: 1 addition & 0 deletions tests/rpm-pkgs/brotli-1.0.9-6.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99879
1 change: 1 addition & 0 deletions tests/rpm-pkgs/bubblewrap-0.5.0-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99925
1 change: 1 addition & 0 deletions tests/rpm-pkgs/bzip2-1.0.8-9.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99914
1 change: 1 addition & 0 deletions tests/rpm-pkgs/c-ares-1.17.2-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99906
1 change: 1 addition & 0 deletions tests/rpm-pkgs/ca-certificates-2021.2.50-3.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99848
1 change: 1 addition & 0 deletions tests/rpm-pkgs/chkconfig-1.19-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99911
1 change: 1 addition & 0 deletions tests/rpm-pkgs/chrony-4.1-3.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99752
1 change: 1 addition & 0 deletions tests/rpm-pkgs/cockpit-254-1.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99864
1 change: 1 addition & 0 deletions tests/rpm-pkgs/compat-readline5-5.2-40.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99905
1 change: 1 addition & 0 deletions tests/rpm-pkgs/coreutils-8.32-31.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99456
314 changes: 0 additions & 314 deletions tests/rpm-pkgs/cost.py

This file was deleted.

1 change: 1 addition & 0 deletions tests/rpm-pkgs/cpio-2.13-11.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99839
1 change: 1 addition & 0 deletions tests/rpm-pkgs/cracklib-2.9.6-27.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99902
1 change: 1 addition & 0 deletions tests/rpm-pkgs/cronie-1.5.7-3.fc35/test-props
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COST99905
Loading

0 comments on commit 112c6bd

Please sign in to comment.