Skip to content

Commit b87e067

Browse files
committed
Worked on tests and changes for CI tests
1 parent 82a3165 commit b87e067

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AC_PREREQ([2.71])
22

33
AC_INIT(
44
[libcpath],
5-
[20260621],
5+
[20260624],
66
[https://github.com/libyal/libcpath/issues])
77

88
AC_CONFIG_SRCDIR(

manuals/libcpath.3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.Dd June 12, 2026
1+
.Dd June 24, 2026
22
.Dt LIBCPATH 3
33
.Os
44
.Sh NAME
@@ -223,7 +223,8 @@ To compile libcpath with wide character support use:
223223
during compilation.
224224
.sp
225225
.Ar LIBCPATH_WIDE_CHARACTER_TYPE
226-
in libcpath/features.h can be used to determine if libcpath was compiled with wide character support.
226+
in libcpath/features.h can be used to determine if libcpath was compiled with \
227+
wide character support.
227228
.Sh SEE ALSO
228229
.In libcpath.h
229230
.Sh AUTHORS

tests/test_library.ps1

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If (-Not (Test-Path ${TestExecutablesDirectory}))
1515
Exit ${ExitFailure}
1616
}
1717

18-
$Result = ${ExitIgnore}
18+
$Result = ${ExitSuccess}
1919

2020
Foreach (${TestName} in ${LibraryTests} -split " ")
2121
{
@@ -24,11 +24,11 @@ Foreach (${TestName} in ${LibraryTests} -split " ")
2424
{
2525
Continue
2626
}
27-
$Result = RunTestBinary ${TestExecutablesDirectory} "cpath_test_${TestName}"
27+
$ResultRun = RunTestBinary ${TestExecutablesDirectory} "cpath_test_${TestName}"
2828

29-
If ((${Result} -ne ${ExitSuccess}) -And (${Result} -ne ${ExitIgnore}))
29+
If ((${ResultRun} -ne ${ExitSuccess}) -And (${ResultRun} -ne ${ExitIgnore}))
3030
{
31-
Break
31+
$Result = ${ResultRun}
3232
}
3333
}
3434

@@ -43,17 +43,13 @@ Foreach (${TestName} in ${LibraryTestsWithInput} -split " ")
4343
}
4444
ForEach ($TestInput in ${TestInputs})
4545
{
46-
$Result = RunTestBinaryWithInput ${TestExecutablesDirectory} "cpath_test_${TestName}" ${TestInput}
46+
$ResultRun = RunTestBinaryWithInput ${TestExecutablesDirectory} "cpath_test_${TestName}" ${TestInput}
4747

48-
If ((${Result} -ne ${ExitSuccess}) -And (${Result} -ne ${ExitIgnore}))
48+
If ((${ResultRun} -ne ${ExitSuccess}) -And (${ResultRun} -ne ${ExitIgnore}))
4949
{
50-
Break
50+
$Result = ${ResultRun}
5151
}
5252
}
53-
If ((${Result} -ne ${ExitSuccess}) -And (${Result} -ne ${ExitIgnore}))
54-
{
55-
Break
56-
}
5753
}
5854

5955
Exit ${Result}

tests/test_manpages.at

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ m4_define([LINT_MANPAGE],
2121
[! command -v "${MANDOC}" >/dev/null 2>&1])
2222

2323
AT_CHECK(
24-
[LC_ALL="en_US.UTF-8" "${MANDOC}" -O width=80 -T lint -W all "$abs_srcdir/../manuals/$1"])
24+
[cp "$abs_srcdir/../manuals/$1" "$1"
25+
# Strip references given mandoc will check if they exist
26+
sed -i'~' '/^.Xr / d' "$1"
27+
LC_ALL="en_US.UTF-8" "${MANDOC}" -O width=80 -T lint -W all "$1"])
2528
;;
2629

2730
*)

0 commit comments

Comments
 (0)