-
-
Notifications
You must be signed in to change notification settings - Fork 21
Status Check for Assert Less Than Equal - assert_le #1314
Copy link
Copy link
Closed
Labels
new featureNew Feature in buildtest such as command line or improvement to buildspecNew Feature in buildtest such as command line or improvement to buildspec
Description
In #1313 we added support for assert greater equal assert_ge for status check. Let's add an operation assert_le that follows the same format. We can try the same test.
buildspecs:
stream_test:
type: script
executor: generic.local.bash
description: Run stream test with metrics example using assert greater equal
env:
OMP_NUM_THREADS: 4
run: |
wget https://raw.githubusercontent.com/jeffhammond/STREAM/master/stream.c
gcc -openmp -o stream stream.c
./stream
metrics:
copy:
type: float
regex:
exp: 'Copy:\s+(\S+)\s+.*'
stream: stdout
item: 1
scale:
type: float
regex:
exp: 'Scale:\s+(\S+)\s+.*'
stream: stdout
item: 1
add:
type: float
regex:
exp: 'Add:\s+(\S+)\s+.*'
stream: stdout
item: 1
triad:
type: float
regex:
exp: 'Triad:\s+(\S+)\s+.*'
stream: stdout
item: 1
status:
assert_le:
- name: copy
ref: 5000
- name: scale
ref: 5500
- name: add
ref: 6000
- name: triad
ref: 6500
Tasks:
- Add support for key
assert_lein definitions.schema.json - Add logic for
assert_lein https://github.com/buildtesters/buildtest/blob/devel/buildtest/builders/base.py - Add regression test in https://github.com/buildtesters/buildtest/blob/devel/tests/builders/test_builders.py with an example buildspec in same directory
- Add documentation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new featureNew Feature in buildtest such as command line or improvement to buildspecNew Feature in buildtest such as command line or improvement to buildspec