From: Eric Bollengier Date: Mon, 25 Mar 2024 17:06:55 +0000 (+0100) Subject: regress: Fix crc32-unittests X-Git-Tag: Release-15.0.3~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13dc6950d52b93ab60204fd065001024e5e35f1;p=thirdparty%2Fbacula.git regress: Fix crc32-unittests --- diff --git a/bacula/src/lib/Makefile.in b/bacula/src/lib/Makefile.in index 908954e92..355a1fbf3 100644 --- a/bacula/src/lib/Makefile.in +++ b/bacula/src/lib/Makefile.in @@ -273,13 +273,13 @@ dlist_test: Makefile libbac.la dlist.c unittests.o $(RMF) dlist.o $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) dlist.c -crc32_test: Makefile libbac.la org_lib_crc32.c unittests.o - $(RMF) org_lib_crc32.o - $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) org_lib_crc32.c - $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ org_lib_crc32.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS) +crc32_test: Makefile libbac.la bcrc32.c unittests.o + $(RMF) bcrc32.o + $(CXX) -DTEST_PROGRAM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bcrc32.c + $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L. -o $@ bcrc32.o unittests.o $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) $@ $(DESTDIR)$(sbindir)/ - $(RMF) org_lib_crc32.o - $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) org_lib_crc32.c + $(RMF) bcrc32.o + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) bcrc32.c sellist_test: Makefile libbac.la sellist.c unittests.o $(RMF) sellist.o diff --git a/regress/tests/crc32-unittests b/regress/tests/crc32-unittests index 7d59e1c06..2947bee0c 100755 --- a/regress/tests/crc32-unittests +++ b/regress/tests/crc32-unittests @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) 2000-2023 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS