Skip to content

Commit 808104b

Browse files
committed
Replaced test scripts with autotest
1 parent 0353e09 commit 808104b

60 files changed

Lines changed: 3963 additions & 2304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_freebsd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
usesh: true
2020
mem: 4096
2121
prepare: |
22-
pkg install -y autoconf automake bash curl gettext git libtool pkgconf
22+
pkg install -y autoconf automake curl gettext git libtool pkgconf
2323
- name: Download test data
2424
shell: freebsd {0}
2525
run: |
@@ -32,8 +32,8 @@ jobs:
3232
./synclibs.sh --use-head
3333
./autogen.sh
3434
./configure ${{ matrix.configure_options }}
35-
make > /dev/null
35+
make -j4 > /dev/null
3636
- name: Run tests
3737
shell: freebsd {0}
3838
run: |
39-
tests/runtests.sh CHECK_WITH_STDERR=1
39+
tests/runtests.sh -j4 VERBOSE=1

.github/workflows/build_linux.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ jobs:
4747
./synclibs.sh --use-head
4848
./autogen.sh
4949
./configure ${{ matrix.configure_options }}
50-
make > /dev/null
50+
make -j4 > /dev/null
5151
- name: Run tests
5252
run: |
53-
tests/runtests.sh CHECK_WITH_STDERR=1
53+
tests/runtests.sh -j4 VERBOSE=1
5454
build_dist:
5555
runs-on: ${{ matrix.os }}
5656
strategy:
@@ -75,10 +75,10 @@ jobs:
7575
./synclibs.sh --use-head
7676
./autogen.sh
7777
./configure ${{ matrix.configure_options }}
78-
make > /dev/null
78+
make -j4 > /dev/null
7979
- name: Run tests
8080
run: |
81-
make distcheck VERBOSE=1
81+
make distcheck AM_MAKEFLAGS="-j4" VERBOSE=1
8282
build_python:
8383
runs-on: ${{ matrix.os }}
8484
strategy:
@@ -104,12 +104,12 @@ jobs:
104104
./synclibs.sh --use-head
105105
./autogen.sh
106106
./configure ${{ matrix.configure_options }}
107-
make > /dev/null
107+
make -j4 > /dev/null
108108
- name: Run tests
109109
env:
110110
PYTHON_VERSION: ${{ matrix.python_version }}
111111
run: |
112-
tests/runtests.sh CHECK_WITH_STDERR=1
112+
tests/runtests.sh -j4 VERBOSE=1
113113
build_pyproject:
114114
runs-on: ${{ matrix.os }}
115115
strategy:
@@ -131,7 +131,7 @@ jobs:
131131
./synclibs.sh --use-head
132132
./autogen.sh
133133
./configure ${{ matrix.configure_options }}
134-
make > /dev/null
134+
make -j4 > /dev/null
135135
- name: Build Python module
136136
run: |
137137
python -m build
@@ -165,7 +165,7 @@ jobs:
165165
./synclibs.sh --use-head
166166
./autogen.sh
167167
./configure ${{ matrix.configure_options }}
168-
make > /dev/null
168+
make -j4 > /dev/null
169169
- name: Run tests
170170
run: |
171-
tests/runtests.sh CHECK_WITH_STDERR=1
171+
tests/runtests.sh -j4 VERBOSE=1

.github/workflows/build_macos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
./synclibs.sh --use-head
4343
./autogen.sh
4444
./configure ${{ matrix.configure_options }}
45-
make > /dev/null
45+
make -j4 > /dev/null
4646
- name: Run tests
4747
run: |
48-
tests/runtests.sh CHECK_WITH_STDERR=1
48+
tests/runtests.sh -j4 VERBOSE=1
4949
build_python:
5050
runs-on: ${{ matrix.os }}
5151
strategy:
@@ -71,10 +71,10 @@ jobs:
7171
./synclibs.sh --use-head
7272
./autogen.sh
7373
./configure ${{ matrix.configure_options }}
74-
make > /dev/null
74+
make -j4 > /dev/null
7575
- name: Run tests
7676
run: |
77-
tests/runtests.sh CHECK_WITH_STDERR=1
77+
tests/runtests.sh -j4 VERBOSE=1
7878
build_pkgbuild:
7979
runs-on: ${{ matrix.os }}
8080
strategy:
@@ -100,7 +100,7 @@ jobs:
100100
./synclibs.sh --use-head
101101
./autogen.sh
102102
./configure ${{ matrix.configure_options }}
103-
make > /dev/null
103+
make -j4 > /dev/null
104104
- name: Build pkg
105105
run: |
106106
tests/pkgbuild.sh

.github/workflows/build_windows.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
./synclibs.sh --use-head
6767
./autogen.sh
6868
./configure ${CONFIGURE_OPTIONS}
69-
make > /dev/null
69+
make -j4 > /dev/null
7070
- name: Run tests
7171
shell: bash --login -e -o pipefail -o igncr {0}
7272
working-directory: ${{ github.workspace }}
7373
env:
7474
CHERE_INVOKING: 1
7575
run: |
76-
tests/runtests.sh CHECK_WITH_STDERR=1
76+
tests/runtests.sh -j4 VERBOSE=1
7777
build_msys2_mingw:
7878
runs-on: windows-latest
7979
strategy:
@@ -83,6 +83,8 @@ jobs:
8383
- configure_options: '--enable-winapi --enable-wide-character-type'
8484
- configure_options: '--disable-nls --disable-shared-libs --enable-python'
8585
steps:
86+
- name: Configure git
87+
run: git config --global core.autocrlf false
8688
- uses: actions/checkout@v6
8789
- name: Set up MSYS2 with MinGW-w64
8890
uses: msys2/setup-msys2@v2
@@ -102,8 +104,8 @@ jobs:
102104
./synclibs.sh --use-head
103105
./autogen.sh
104106
./configure ${CONFIGURE_OPTIONS}
105-
make > /dev/null
107+
make -j4 > /dev/null
106108
- name: Run tests
107109
shell: msys2 {0}
108110
run: |
109-
tests/runtests.sh CHECK_WITH_STDERR=1
111+
tests/runtests.sh -j4 VERBOSE=1

.github/workflows/check_source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
make > /dev/null
3434
- name: Run tests
3535
run: |
36-
tests/runtests.sh CHECK_WITH_STDERR=1
36+
tests/runtests.sh VERBOSE=1
3737
scan_build:
3838
name: Check source with scan-build
3939
runs-on: ${{ matrix.os }}
@@ -124,4 +124,4 @@ jobs:
124124
make > /dev/null
125125
- name: Run tests
126126
run: |
127-
tests/runtests.sh CHECK_WITH_STDERR=1
127+
tests/runtests.sh VERBOSE=1

.github/workflows/coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
env:
4848
CHERE_INVOKING: 1
4949
run: |
50-
tests/runtests.sh CHECK_WITH_STDERR=1
50+
tests/runtests.sh VERBOSE=1
5151
- name: Generate coverage data
5252
shell: bash --login -e -o pipefail -o igncr {0}
5353
working-directory: ${{ github.workspace }}
@@ -95,7 +95,7 @@ jobs:
9595
make > /dev/null
9696
- name: Run tests
9797
run: |
98-
make check CHECK_WITH_STDERR=1 SKIP_TOOLS_END_TO_END_TESTS=1
98+
make check SKIP_TOOLS_END_TO_END_TESTS=1 VERBOSE=1
9999
- name: Generate coverage data
100100
run: |
101101
for DIRECTORY in `find . -maxdepth 1 -type d`; do \
@@ -115,6 +115,8 @@ jobs:
115115
- configure_options: '--enable-code-coverage --enable-wide-character-type --enable-winapi'
116116
codecov_name: 'mingw-w64-gcc-no-optimization'
117117
steps:
118+
- name: Configure git
119+
run: git config --global core.autocrlf false
118120
- uses: actions/checkout@v6
119121
- name: Set up MSYS2 with MinGW-w64
120122
uses: msys2/setup-msys2@v2
@@ -138,7 +140,7 @@ jobs:
138140
- name: Run tests
139141
shell: msys2 {0}
140142
run: |
141-
tests/runtests.sh CHECK_WITH_STDERR=1
143+
tests/runtests.sh VERBOSE=1
142144
- name: Generate coverage data
143145
shell: msys2 {0}
144146
run: |

.gitignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Files to ignore by git
22
#
3-
# Version: 20251129
3+
# Version: 20260604
44

55
# Generic auto-generated build files
66
*~
@@ -130,9 +130,20 @@ stamp-h[1-9]
130130
/pyproject.toml
131131
/wrctools/*.exe
132132
/wrctools/wrcinfo
133+
/tests/*.dir
133134
/tests/*.exe
135+
/tests/*.log
136+
/tests/*.tmp
137+
/tests/atconfig
138+
/tests/atlocal
134139
/tests/input
135140
/tests/notify_stream.log
141+
/tests/package.m4
142+
/tests/test_inputs_*.at
143+
/tests/test_library
144+
/tests/test_manpages
145+
/tests/test_python_module
146+
/tests/test_tools
136147
/tests/tmp*
137148
/tests/wrc_test_data_descriptor
138149
/tests/wrc_test_error
@@ -152,6 +163,9 @@ stamp-h[1-9]
152163
/tests/wrc_test_string_table_resource
153164
/tests/wrc_test_support
154165
/tests/wrc_test_table_entry
166+
/tests/wrc_test_tools_info_handle
167+
/tests/wrc_test_tools_output
168+
/tests/wrc_test_tools_signal
155169
/tests/wrc_test_version_information_resource
156170
/tests/wrc_test_version_values
157171

Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ pkgconfigdir = $(libdir)/pkgconfig
8080
pkgconfig_DATA = \
8181
libwrc.pc
8282

83+
check-build: all
84+
cd $(srcdir)/tests && $(MAKE) check-build $(AM_MAKEFLAGS)
85+
8386
libtool: @LIBTOOL_DEPS@
8487
cd $(srcdir) && $(SHELL) ./config.status --recheck
8588

common/config_winapi.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636

3737
/* Define to the address where bug reports for this package should be sent.
3838
*/
39-
#define PACKAGE_BUGREPORT "joachim.metz@gmail.com"
39+
#if !defined( PACKAGE_BUGREPORT )
40+
#define PACKAGE_BUGREPORT "https://github.com/libyal/libwrc/issues"
41+
#endif
4042

4143
/* Define the size of the integer for WINAPI
4244
*/

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ AC_PREREQ([2.71])
22

33
AC_INIT(
44
[libwrc],
5-
[20260609],
6-
[joachim.metz@gmail.com])
5+
[20260611],
6+
[https://github.com/libyal/libwrc/issues])
77

88
AC_CONFIG_SRCDIR(
99
[include/libwrc.h.in])
@@ -13,6 +13,8 @@ AM_EXTRA_RECURSIVE_TARGETS([sources splint])
1313

1414
AC_CONFIG_MACRO_DIR([m4])
1515

16+
AC_CONFIG_TESTDIR([tests])
17+
1618
dnl Check for host type
1719
AC_CANONICAL_HOST
1820

@@ -226,6 +228,8 @@ AC_CONFIG_FILES([libwrc/libwrc.rc])
226228
AC_CONFIG_FILES([libwrc.pc])
227229
AC_CONFIG_FILES([libwrc.spec])
228230
AC_CONFIG_FILES([pyproject.toml])
231+
dnl Generate test configuration files
232+
AC_CONFIG_FILES([tests/atlocal])
229233
dnl Generate a source configuration file
230234
AC_CONFIG_HEADERS([common/config.h])
231235

0 commit comments

Comments
 (0)