ci: provide test.log

This commit is contained in:
Leo Yuriev 2017-04-24 19:03:38 +03:00
parent e98a1e5319
commit 66d842c23b
4 changed files with 11 additions and 6 deletions

5
.gitignore vendored
View File

@ -23,11 +23,12 @@ mdbx_stat
/test/test /test/test
test/test.vcxproj.user test/test.vcxproj.user
test/tmp.db test/tmp.db
test/tmp.db-lock test/tmp.db-lck
tmp.db tmp.db
tmp.db-lock tmp.db-lck
valgrind.* valgrind.*
.vs/ .vs/
Win32/ Win32/
x64/ x64/
x86/ x86/
test.log

View File

@ -66,7 +66,7 @@ clean:
rm -rf $(TOOLS) test/test @* *.[ao] *.[ls]o *~ tmp.db/* *.gcov *.log *.err rm -rf $(TOOLS) test/test @* *.[ao] *.[ls]o *~ tmp.db/* *.gcov *.log *.err
check: test/test 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 mdbx.o: $(MDBX_SRC) Makefile
$(CC) $(CFLAGS) -c src/mdbx.c -o $@ $(CC) $(CFLAGS) -c src/mdbx.c -o $@

View File

@ -23,7 +23,11 @@ build:
test_script: test_script:
- ps: | - ps: |
if (($env:PLATFORM -eq "x86") -and (Test-Path "C:\projects\libmdbx\Win32\$env:CONFIGURATION\test.exe" -PathType Leaf)) { 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 { } 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

View File

@ -11,4 +11,4 @@ compile:
test: test:
override: override:
- make check - make check || mv test.log ${CIRCLE_ARTIFACTS}/