mirror of
https://github.com/bgp/bgpq4
synced 2026-07-28 01:32:36 +00:00
Add github workflow for basic unit tests (#87)
Add github workflow for basic unit tests authored-by: James Bensley <jwbensley@gmail.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: basic unit tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- reopened
|
||||
- ready_for_review
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
output-unit-tests:
|
||||
name: output unit tests
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: clone repo
|
||||
uses: actions/checkout@v3
|
||||
- name: install pre-reqs
|
||||
run: |
|
||||
sudo apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get -y --no-install-recommends install autoconf automake libtool make
|
||||
- name: build bgpq4
|
||||
run: |
|
||||
./bootstrap
|
||||
./configure
|
||||
make
|
||||
./bgpq4 -v
|
||||
- name: generate output
|
||||
run: ./tests/generate_outputs.sh ./bgpq4 /tmp
|
||||
- name: check output
|
||||
run: >
|
||||
for file in tests/reference/*.txt;
|
||||
do
|
||||
echo "$(sha256sum "${file}" | awk '{print $1}') /tmp/$(basename "${file}")" | sha256sum --check;
|
||||
done
|
||||
Reference in New Issue
Block a user