diff --git a/.gitignore b/.gitignore index 84d48914..0222b199 100644 --- a/.gitignore +++ b/.gitignore @@ -23,11 +23,12 @@ mdbx_stat /test/test test/test.vcxproj.user test/tmp.db -test/tmp.db-lock +test/tmp.db-lck tmp.db -tmp.db-lock +tmp.db-lck valgrind.* .vs/ Win32/ x64/ x86/ +test.log diff --git a/Makefile b/Makefile index b9c36c74..cbe96991 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ clean: rm -rf $(TOOLS) test/test @* *.[ao] *.[ls]o *~ tmp.db/* *.gcov *.log *.err check: test/test - test/test --pathname=tmp.db --dont-cleanup-after basic && ./mdbx_chk -vn tmp.db + test/test --pathname=tmp.db --dont-cleanup-after basic | tee test.log | tail -n 42 && ./mdbx_chk -vn tmp.db mdbx.o: $(MDBX_SRC) Makefile $(CC) $(CFLAGS) -c src/mdbx.c -o $@ diff --git a/appveyor.yml b/appveyor.yml index 850e61fb..214c853d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,7 +23,11 @@ build: test_script: - ps: | if (($env:PLATFORM -eq "x86") -and (Test-Path "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe" -PathType Leaf)) { - & "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe" --pathname=tmp.db --dont-cleanup-after basic + $test = "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe" } else { - & "C:\projects\libmdbx\$env:PLATFORM\$env:CONFIGURATION\test.exe" --pathname=tmp.db --dont-cleanup-after basic + $test = "C:\projects\libmdbx\$env:PLATFORM\$env:CONFIGURATION\test.exe" } + & "$test" --pathname=tmp.db --dont-cleanup-after basic | Tee-Object -file test.log | Select-Object -last 42 + +artifacts: + - path: test.log diff --git a/circle.yml b/circle.yml index c10629e1..77da30e9 100644 --- a/circle.yml +++ b/circle.yml @@ -11,4 +11,4 @@ compile: test: override: - - make check + - make check || mv test.log ${CIRCLE_ARTIFACTS}/