Hi Daniel and Stefano,
When making an in tree build and then running for example the
mbedtls_defconfig tests the following error occurs:
# make mbedtls_defconfig
# make
# make tests
RUN FileNotFoundTest
1+0 records in
1+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 4.5295e-05 s, 22.6 MB/s
RUN CrapFileTest
MKSWU scripts/acceptance-tests/ImgNameError.swu
sw-description
hello.txt
2 blocks
RUN ImgNameErrorTest
RUN InvOptsNoImg
RUN InvOptsCheckWithWeb
tests passed
CC test/test_crypt.o
CC test/test_hash.o
cp: cannot copy a directory, '/mnt/test/data', into itself,
'/mnt/test/data/data'
make[1]: *** [/mnt/test/Makefile:95: PREPARE_DATA] Error 1
make: *** [Makefile:504: test] Error 2
I bisected the problem.
60d90b59b0d9f5e4bc94da01b51305aad66f9001 is the first bad commit
commit 60d90b59b0d9f5e4bc94da01b51305aad66f9001
Author: Daniel Braunwarth <
o...@braunwarth.dev>
Date: Sun Feb 23 17:38:47 2025 +0100
test: copy test data from source to build path
For out-of-tree builds the test data should be copied to build
directory. This makes it easier for the actual tests to use the correct
path.
@Daniel Would it be possible for you to send a fix for the regression?
The following tests are probably all broken because of the same reason.
mbedtls_defconfig
with_lua_handlers_defconfig
with_systemd_defconfig
with_rdiff_defconfig
with_ebg_defconfig
without_lua_defconfig
suricatta_all_modules_defconfig
with_lua_nohandlers_defconfig
without_libconfig_defconfig
test_defconfig
Cheers,
Mark