Skip to content

Commit

Permalink
Playing with benchmarks script
Browse files Browse the repository at this point in the history
  • Loading branch information
ABenC377 committed Oct 25, 2024
1 parent 926edd5 commit 37f700b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/actions/simeng_benchmarks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ runs:
run: |
cd ${{ inputs.RUN_DIR }}
simeng $GITHUB_WORKSPACE/configs/a64fx.yaml ${{ inputs.BIN_PATH }} 2>&1 tee $GITHUB_WORKSPACE/simeng.tmp
if grep -e ${{ inputs.PASS_STRING }} $GITHUB_WORKSPACE/simeng.tmp; then
echo "Passed"
else
echo "Failed"
exit 1
fi
python3 -c "
import os
file_path = $GITHUB_WORKSPACE/simeng.tmp
if not os.path.exists(file_path):
print(f'File not found: {file_path}')
exit(1)
with open(file_path, 'r') as f:
if ${{ PASS_STRING }} in f.read():
print('Passed')
else:
print('Failed')
exit(1)
"
#
# "name": "CloverLeaf serial gcc8.3.0 armv8.4",
# "run_from": "$SIMENG_BENCHMARKS_SRC_DIR/Data_Files/CloverLeaf",
Expand Down

0 comments on commit 37f700b

Please sign in to comment.