Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim the CI matrix. #161

Merged
merged 4 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
conf-memleak: [--disable-memleak, --enable-memleak]
conf-debug: [--enable-debug, --disable-debug]
conf-gssapi: [--with-gssapi, --without-gssapi]
exclude:
- conf-gssapi: --without-gssapi
conf-ssl: [--without-ssl, --with-ssl=gnutls]
- conf-xml: --with-libxml2
conf-gssapi: --without-gssapi
steps:
- uses: actions/checkout@v2
- run: ./autogen.sh
Expand All @@ -35,6 +40,8 @@ jobs:
${{matrix.conf-debug}} ${{matrix.conf-gssapi}}
- run: make
- run: make check
- if: failure()
run: if test -f test/debug.log; then tail -n50 test/debug.log; fi

containers:
runs-on: ubuntu-latest
Expand Down
14 changes: 9 additions & 5 deletions test/common/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void t_warning(const char *str, ...)
NE_DBG_LOCKS | NE_DBG_XMLPARSE | NE_DBG_XML | NE_DBG_SSL | \
NE_DBG_HTTPPLAIN)

#define W(m) do { if (write(0, m, strlen(m)) < 0) _exit(99); } while(0)
#define W(m) do { if (write(STDOUT_FILENO, m, strlen(m)) < 0) _exit(99); } while(0)

#define W_RED(m) do { if (use_colour) W("\033[41;37;01m"); \
W(m); if (use_colour) W("\033[00m\n"); } while (0);
Expand All @@ -133,12 +133,16 @@ static void parent_segv(int signo)
signal(SIGSEGV, SIG_DFL);
signal(SIGABRT, SIG_DFL);
if (signo == SIGSEGV) {
W_RED("FAILED - segmentation fault");
} else if (signo == SIGABRT) {
W_RED("ABORTED");
W_RED("FAILED - Segmentation fault--\n");
}
else if (signo == SIGABRT) {
W_RED("ABORTED\n");
}
else {
W_RED("-- Unexpected signal! --\n");
}
reap_server();
kill(getpid(), SIGSEGV);
kill(getpid(), signo);
minisleep();
}

Expand Down
2 changes: 2 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ for f in $*; do
:
else
RETVAL=$?
echo ' -->>>' "$f failed => ${RETVAL}"
break
fi
done

Expand Down
Loading