File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,16 @@ Write-Host "####################################################################
5151
5252run_test offline
5353
54+ if (-not $Env: SKIP_INVASIVE_TESTS ) {
55+ Write-Host " "
56+ Write-Host " ##############################################################################"
57+ Write-Host " ## Running (invasive) tests"
58+ Write-Host " ##############################################################################"
59+
60+ $Env: GITTEST_INVASIVE_FS_SIZE = 1
61+ run_test invasive
62+ }
63+
5464if (-not $Env: SKIP_ONLINE_TESTS ) {
5565 Write-Host " "
5666 Write-Host " ##############################################################################"
Original file line number Diff line number Diff line change @@ -136,6 +136,20 @@ if [ -z "$SKIP_OFFLINE_TESTS" ]; then
136136 run_test offline
137137fi
138138
139+ if [ -z " $SKIP_INVASIVE_TESTS " ]; then
140+ echo " "
141+ echo " Running invasive tests"
142+ echo " "
143+
144+ export GITTEST_INVASIVE_FS_SIZE=1
145+ export GITTEST_INVASIVE_MEMORY=1
146+ export GITTEST_INVASIVE_SPEED=1
147+ run_test invasive
148+ unset GITTEST_INVASIVE_FS_SIZE
149+ unset GITTEST_INVASIVE_MEMORY
150+ unset GITTEST_INVASIVE_SPEED
151+ fi
152+
139153if [ -z " $SKIP_ONLINE_TESTS " ]; then
140154 # Run the various online tests. The "online" test suite only includes the
141155 # default online tests that do not require additional configuration. The
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ IF (MSVC_IDE)
5555ENDIF ()
5656
5757ADD_TEST (offline "${libgit2_BINARY_DIR} /libgit2_clar" -v -xonline)
58+ ADD_TEST (invasive "${libgit2_BINARY_DIR} /libgit2_clar" -v -score::ftruncate -sfilter::stream -sodb::largefiles -siterator::workdir -srepo::init)
5859ADD_TEST (online "${libgit2_BINARY_DIR} /libgit2_clar" -v -sonline)
5960ADD_TEST (gitdaemon "${libgit2_BINARY_DIR} /libgit2_clar" -v -sonline::push)
6061ADD_TEST (ssh "${libgit2_BINARY_DIR} /libgit2_clar" -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths)
You can’t perform that action at this time.
0 commit comments