Skip to content

Commit 7393eb3

Browse files
committed
Add basic CI, move broken bins to broken so make test succeeds
1 parent e503ccc commit 7393eb3

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

.github/workflows/c-cpp.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
# branches: [ $default-branch ]
6+
pull_request:
7+
branches: [ $default-branch ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: install libgmp-dev
16+
run: |
17+
apt-get update
18+
apt get install libgmp-dev
19+
- uses: actions/checkout@v4
20+
- name: make
21+
run: make
22+
- name: make test
23+
run: make test

GNUmakefile

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ endif
1111

1212
include makefile.common
1313

14+
.PHONY: test
15+
test:
16+
./test.sh
17+
1418
win: force
1519
./build.cmd clean
1620
./build.cmd
File renamed without changes.
File renamed without changes.

test.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
2+
3+
rm -f err.log
4+
trap "rm -rf err.log" EXIT
25
for i in bins/*.bin; do
3-
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)'
4-
grep ERROR $i.txt
6+
./me7sum -r $i.txt $i | grep -E '(ABORT|WARNING)' >> err.log
7+
grep ERROR $i.txt >> err.log
58
done
9+
10+
cat err.log
11+
[ ! -s err.log ]

0 commit comments

Comments
 (0)