Skip to content

Commit

Permalink
Not running benchexec if no input files present
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 12, 2023
1 parent 1982c6c commit 7b15c35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/benchexec-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,21 @@ runs:
mv jar/xcfa/xcfa-cli/build/libs/*-all.jar theta/theta.jar
ls -l theta
- name: Cut setfile if too long
id: setfile
shell: bash
run: |
cd sv-benchmarks/c
for i in $(sed 's/#.*$//g' ${{ inputs.task }}.set); do find . -wholename ./$i; done | while read line; do grep "$line" $GITHUB_ACTION_PATH/unsupported.txt >/dev/null 2>/dev/null || echo $(echo $line | sha1sum | awk ' { print $1 } ') $line ; done | sort -k1 | awk ' { $1=""; print $0 } ' | awk '{$1=$1};1' > all-files.txt
head -n${{ inputs.test_number }} all-files.txt > ${{ inputs.task }}.set
echo "length=$(cat ${{ inputs.task }}.set | wc -l)" >> "$GITHUB_OUTPUT"
- name: Run benchexec
shell: bash
if: ${{ steps.setfile.outputs.length != "0" }}
run: |
benchexec xml/theta.xml --no-container --tool-directory theta -t ${{ inputs.task }}
- name: Upload results
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: ${{ steps.setfile.outputs.length != "0" }}
with:
name: BenchexecResults-${{ inputs.task }}
path: results

0 comments on commit 7b15c35

Please sign in to comment.