forked from 360trev/ME7Sum
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic CI, move broken bins to broken so make test succeeds
- Loading branch information
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
# branches: [ $default-branch ] | ||
pull_request: | ||
branches: [ $default-branch ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: install libgmp-dev | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgmp-dev | ||
- uses: actions/checkout@v4 | ||
- name: make | ||
run: make | ||
- name: make test | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/sh | ||
|
||
rm -f err.log | ||
trap "rm -rf err.log" EXIT | ||
for i in bins/*.bin; do | ||
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)' | ||
grep ERROR $i.txt | ||
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)' >> err.log | ||
grep ERROR $i.txt >> err.log | ||
done | ||
|
||
cat err.log | ||
[ ! -s err.log ] |