1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-07 17:32:45 -04:00

Main: fix and test distribution

This commit is contained in:
Alex Kotov 2022-05-24 16:30:00 +03:00
parent 13c4083d6f
commit 39aeb141ab
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 31 additions and 6 deletions

View file

@ -30,6 +30,31 @@ jobs:
- name: install
run: sudo make install
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: autogen
run: ./autogen.sh
- name: configure dist
run: ./configure
- name: dist
run: make dist
- name: extract
run: tar -xzf libkernaux-0.1.0.tar.gz
- working-directory: libkernaux-0.1.0
name: configure
run: ./configure --enable-tests-all
- working-directory: libkernaux-0.1.0
name: make
run: make
- working-directory: libkernaux-0.1.0
name: check
run: make check || (cat test-suite.log && false)
- working-directory: libkernaux-0.1.0
name: install
run: sudo make install
cppcheck:
runs-on: ubuntu-latest
steps:

View file

@ -132,10 +132,6 @@ TESTS += \
examples/snprintf_va
if ENABLE_TESTS_PYTHON
TESTS += tests/test_printf_gen
noinst_SCRIPTS = tests/printf_gen.py
noinst_DATA = \
tests/printf.yml \
tests/printf_orig.yml
endif
endif
endif
@ -271,11 +267,15 @@ tests_test_pfa_assert_SOURCES = \
tests_test_printf_gen_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_printf_gen.c
tests/test_printf_gen.c \
tests/printf_gen.py \
tests/printf_gen.jinja \
tests/printf.yml \
tests/printf_orig.yml
tests_test_units_human_SOURCES = \
$(libkernaux_a_SOURCES) \
tests/test_units_human.c
tests/test_printf_gen.c: tests/printf_gen.py tests/printf.yml tests/printf_orig.yml
tests/test_printf_gen.c: tests/printf_gen.py tests/printf_gen.jinja tests/printf.yml tests/printf_orig.yml
python3 tests/printf_gen.py