File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11all : test
22
33update-test-discovery :
4- @perl -ne ' print if s/SENTRY_TEST\(([^)]+)\)/XX(\1)/' tests/unit/* .c | sort | grep -v define | uniq > tests/unit/tests.inc
4+ @perl -ne ' print if s/SENTRY_TEST\(([^)]+)\).* /XX(\1)/' tests/unit/* .c | sort | grep -v define | uniq > tests/unit/tests.inc
55.PHONY : update-test-discovery
66
77build/Makefile : CMakeLists.txt
Original file line number Diff line number Diff line change 1- Get-ChildItem - Path ' tests/unit/*.c' | ForEach-Object {
1+ $lines = Get-ChildItem - Path ' tests/unit/*.c' | ForEach-Object {
22 Get-Content $_.FullName | ForEach-Object {
33 if ($_ -match ' SENTRY_TEST\(([^)]+)\)' ) {
4- $_ -replace ' SENTRY_TEST\(([^)]+)\)' , ' XX($1)'
4+ $_ -replace ' SENTRY_TEST\(([^)]+)\).* ' , ' XX($1)'
55 }
66 }
7- } | Sort-Object | Where-Object { $_ -notmatch ' define' } | Get-Unique | Set-Content ' tests/unit/tests.inc'
7+ }
8+
9+ [System.Array ]::Sort($lines , [System.StringComparer ]::Ordinal)
10+
11+ $lines | Where-Object { $_ -notmatch ' define' } | Get-Unique | Set-Content ' tests/unit/tests.inc'
You can’t perform that action at this time.
0 commit comments