Skip to content

Commit 1b4ba84

Browse files
committed
ci: enable some of the invasive testcases
1 parent 3c6d197 commit 1b4ba84

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

ci/test.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ Write-Host "####################################################################
5151

5252
run_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+
5464
if (-not $Env:SKIP_ONLINE_TESTS) {
5565
Write-Host ""
5666
Write-Host "##############################################################################"

ci/test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ if [ -z "$SKIP_OFFLINE_TESTS" ]; then
136136
run_test offline
137137
fi
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+
139153
if [ -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

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ IF (MSVC_IDE)
5555
ENDIF ()
5656

5757
ADD_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)
5859
ADD_TEST(online "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline)
5960
ADD_TEST(gitdaemon "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::push)
6061
ADD_TEST(ssh "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths)

0 commit comments

Comments
 (0)