Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status Check for Assert Less Than Equal - assert_le #1314

Closed
4 tasks done
shahzebsiddiqui opened this issue Dec 19, 2022 · 0 comments · Fixed by #1339
Closed
4 tasks done

Status Check for Assert Less Than Equal - assert_le #1314

shahzebsiddiqui opened this issue Dec 19, 2022 · 0 comments · Fixed by #1339
Assignees
Labels
new feature New Feature in buildtest such as command line or improvement to buildspec

Comments

@shahzebsiddiqui
Copy link
Member

shahzebsiddiqui commented Dec 19, 2022

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:

@shahzebsiddiqui shahzebsiddiqui added the new feature New Feature in buildtest such as command line or improvement to buildspec label Dec 19, 2022
This was referenced Dec 19, 2022
@Xiangs18 Xiangs18 linked a pull request Jan 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New Feature in buildtest such as command line or improvement to buildspec
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants