Skip to content

Commit

Permalink
debug-only: debug test-execute
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc0mmand committed Mar 6, 2024
1 parent 4e5a7e1 commit 5a24ac7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 198 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build_test.yml

This file was deleted.

158 changes: 0 additions & 158 deletions .github/workflows/mkosi.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ for phase in "${PHASES[@]}"; do
run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
ninja -C build -v
# Ensure setting a timezone (like the reproducible build tests do) does not break time/date unit tests
TZ=GMT+12 meson test -C build --print-errorlogs
chmod -R o+rX /home
TZ=GMT+12 meson test -C build -v test-execute
;;
RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN_NO_DEPS)
MESON_ARGS=(--optimization=1)
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
run_phase: [GCC, GCC_ASAN_UBSAN, CLANG, CLANG_RELEASE, CLANG_ASAN_UBSAN, CLANG_ASAN_UBSAN_NO_DEPS]
run_phase: [GCC] #GCC_ASAN_UBSAN, CLANG]
cryptolib: [auto]
include:
- run_phase: GCC
Expand All @@ -43,3 +43,6 @@ jobs:
run: sudo --preserve-env=CRYPTOLIB,GITHUB_ACTIONS,CI .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
env:
CRYPTOLIB: ${{ matrix.cryptolib }}
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
2 changes: 2 additions & 0 deletions src/basic/build-path.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ int pin_callout_binary(const char *path) {

_cleanup_free_ char *np = NULL;
if (find_build_dir_binary(fn, &np) >= 0) {
log_warning("%s: build dir binary: %s", __func__, np);
r = RET_NERRNO(open(np, O_CLOEXEC|O_PATH));
log_warning("%s: open(%s)=%d", __func__, np, r);
if (r >= 0)
return r;
}
Expand Down

0 comments on commit 5a24ac7

Please sign in to comment.