mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-29 10:08:48 +08:00
ci: provide test.log
This commit is contained in:
parent
e98a1e5319
commit
66d842c23b
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
||||
|
2
Makefile
2
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 $@
|
||||
|
@ -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
|
||||
|
@ -11,4 +11,4 @@ compile:
|
||||
|
||||
test:
|
||||
override:
|
||||
- make check
|
||||
- make check || mv test.log ${CIRCLE_ARTIFACTS}/
|
||||
|
Loading…
x
Reference in New Issue
Block a user