Skip to content

Commit f66e7f3

Browse files
committed
libgit2_clar is now libgit2_tests
in libgit2#6083 the test runner was renamed to libgit2_tests, but not all references to the old name were updated. this change changes all of them to use the new name.
1 parent 9b04a30 commit f66e7f3

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

.vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "(gdb) Launch",
99
"type": "cppdbg",
1010
"request": "launch",
11-
"program": "${workspaceFolder}/build/libgit2_clar",
11+
"program": "${workspaceFolder}/build/libgit2_tests",
1212
"args": [],
1313
"stopAtEntry": false,
1414
"cwd": "${fileDirname}",
@@ -24,4 +24,4 @@
2424
]
2525
}
2626
]
27-
}
27+
}

.vscode/tasks.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
{
1717
"label": "Run Tests",
1818
"type": "shell",
19-
"command": "build/libgit2_clar -v",
19+
"command": "build/libgit2_tests -v",
2020
"group": "test",
2121
"presentation": {
2222
"reveal": "always",
2323
"panel": "new"
2424
}
2525
}
2626
]
27-
}
27+
}

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,18 @@ Once built, you can run the tests from the `build` directory with the command
236236

237237
Alternatively you can run the test suite directly using,
238238

239-
$ ./libgit2_clar
239+
$ ./libgit2_tests
240240

241241
Invoking the test suite directly is useful because it allows you to execute
242242
individual tests, or groups of tests using the `-s` flag. For example, to
243243
run the index tests:
244244

245-
$ ./libgit2_clar -sindex
245+
$ ./libgit2_tests -sindex
246246

247247
To run a single test named `index::racy::diff`, which corresponds to the test
248248
function [`test_index_racy__diff`](https://github.com/libgit2/libgit2/blob/main/tests/index/racy.c#L23):
249249

250-
$ ./libgit2_clar -sindex::racy::diff
250+
$ ./libgit2_tests -sindex::racy::diff
251251

252252
The test suite will print a `.` for every passing test, and an `F` for any
253253
failing test. An `S` indicates that a test was skipped because it is not

cmake/IdeSplitSources.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This function splits the sources files up into their appropriate
22
# subdirectories. This is especially useful for IDEs like Xcode and
3-
# Visual Studio, so that you can navigate into the libgit2_clar project,
3+
# Visual Studio, so that you can navigate into the libgit2_tests project,
44
# and see the folders within the tests folder (instead of just seeing all
55
# source and tests in a single folder.)
66
FUNCTION(IDE_SPLIT_SOURCES target)

docs/contributing.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ In addition to new tests, please ensure that your changes do not cause
120120
any other test failures. Running the entire test suite is helpful
121121
before you submit a pull request. When you build libgit2, the test
122122
suite will also be built. You can run most of the tests by simply running
123-
the resultant `libgit2_clar` binary. If you want to run a specific
123+
the resultant `libgit2_tests` binary. If you want to run a specific
124124
unit test, you can name it with the `-s` option. For example:
125125

126-
libgit2_clar -sstatus::worktree::long_filenames
126+
libgit2_tests -sstatus::worktree::long_filenames
127127

128128
Or you can run an entire class of tests. For example, to run all the
129129
worktree status tests:
130130

131-
libgit2_clar -sstatus::worktree
131+
libgit2_tests -sstatus::worktree
132132

133133
The default test run is fairly exhaustive, but it will exclude some
134134
unit tests by default: in particular, those that talk to network
135135
servers and the tests that manipulate the filesystem in onerous
136136
ways (and may need to have special privileges to run). To run the
137137
network tests:
138138

139-
libgit2_clar -ionline
139+
libgit2_tests -ionline
140140

141141
In addition, various tests may be enabled by environment variables,
142142
like the ones that write exceptionally large repositories or manipulate

fuzzers/corpora/objects/blob

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,18 @@ Once built, you can run the tests from the `build` directory with the command
187187

188188
Alternatively you can run the test suite directly using,
189189

190-
$ ./libgit2_clar
190+
$ ./libgit2_tests
191191

192192
Invoking the test suite directly is useful because it allows you to execute
193193
individual tests, or groups of tests using the `-s` flag. For example, to
194194
run the index tests:
195195

196-
$ ./libgit2_clar -sindex
196+
$ ./libgit2_tests -sindex
197197

198198
To run a single test named `index::racy::diff`, which corresponds to the test
199199
function (`test_index_racy__diff`)[https://github.com/libgit2/libgit2/blob/master/tests/index/racy.c#L23]:
200200

201-
$ ./libgit2_clar -sindex::racy::diff
201+
$ ./libgit2_tests -sindex::racy::diff
202202

203203
The test suite will print a `.` for every passing test, and an `F` for any
204204
failing test. An `S` indicates that a test was skipped because it is not

tests/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ https://github.com/vmg/clar
1515

1616
* Test:
1717

18-
./build/libgit2_clar
18+
./build/libgit2_tests
1919

2020
* Make sure everything is fine.
2121

@@ -34,8 +34,8 @@ Uses [`valgrind`](http://www.valgrind.org/):
3434
```console
3535
$ cmake -DBUILD_TESTS=ON -DVALGRIND=ON ..
3636
$ cmake --build .
37-
$ valgrind --leak-check=full --show-reachable=yes --num-callers=50 --suppressions=../libgit2_clar.supp \
38-
./libgit2_clar
37+
$ valgrind --leak-check=full --show-reachable=yes --num-callers=50 --suppressions=../libgit2_tests.supp \
38+
./libgit2_tests
3939
```
4040

4141
#### macOS
@@ -44,5 +44,5 @@ Uses [`leaks`](https://developer.apple.com/library/archive/documentation/Perform
4444

4545
```console
4646
$ MallocStackLogging=1 MallocScribble=1 MallocLogFile=/dev/null CLAR_AT_EXIT="leaks -quiet \$PPID" \
47-
./libgit2_clar
47+
./libgit2_tests
4848
```

tests/core/init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
void test_core_init__returns_count(void)
44
{
5-
/* libgit2_clar initializes us first, so we have an existing
5+
/* libgit2_tests initializes us first, so we have an existing
66
* initialization.
77
*/
88
cl_assert_equal_i(2, git_libgit2_init());

0 commit comments

Comments
 (0)