Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
52a035a4
Commit
52a035a4
authored
Oct 22, 2008
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few tweaks
parent
87d6a3b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
.gitignore
.gitignore
+1
-0
ProtocolBuffers.build
ProtocolBuffers.build
+26
-3
TestUtil.cs
src/ProtocolBuffers.Test/TestUtil.cs
+1
-0
No files found.
.gitignore
View file @
52a035a4
...
...
@@ -9,6 +9,7 @@ src/ProtoGen/obj/
src/ProtoGen.Test/bin/
src/ProtoGen.Test/obj/
tmp/
dist/
*.user
*.suo
_ReSharper.*
...
...
ProtocolBuffers.build
View file @
52a035a4
...
...
@@ -20,6 +20,11 @@
value=
"${project::get-base-directory()}/lib/protoc.exe"
overwrite=
"false"
/>
<!-- Output directory for copying generated binaries -->
<property
name=
"output-dir"
value=
"${path::combine(project::get-base-directory(), 'dist')}"
overwrite=
"false"
/>
<!-- Base directory to find protos (core, C# options, tests) -->
<property
name=
"protos-dir"
value=
"${path::combine(project::get-base-directory(), 'protos')}"
...
...
@@ -52,6 +57,7 @@
<include
name=
"${src}/ProtocolBuffers.Test/bin/**"
/>
<include
name=
"${src}/ProtocolBuffers.Test/obj/**"
/>
<include
name=
"${tmp-dir}"
/>
<include
name=
"${output-dir}"
/>
</fileset>
</delete>
</target>
...
...
@@ -103,14 +109,16 @@
</copy>
</target>
<target
name=
"build"
description=
"Builds all C# code"
>
<target
name=
"build"
description=
"Builds all C# code"
>
<msbuild
project=
"${src}/ProtocolBuffers.sln"
>
<property
name=
"Configuration"
value=
"${build-configuration}"
/>
</msbuild>
</target>
<target
name=
"test"
description=
"Runs all unit tests"
>
<target
name=
"test"
description=
"Runs all unit tests"
>
<nunit2>
<formatter
type=
"Plain"
/>
<test
assemblyname=
"${src}/ProtocolBuffers.Test/bin/${build-configuration}/Google.ProtocolBuffers.Test.dll"
/>
...
...
@@ -118,9 +126,24 @@
</nunit2>
</target>
<target
name=
"perf-test"
description=
"Runs all performance tests"
>
<target
name=
"perf-test"
description=
"Runs all performance tests"
>
<fail
message=
"Performance tests not implemented yet"
/>
</target>
<target
name=
"dist"
description=
"Copies compiled binaries into the output directory"
>
<delete
dir=
"${output-dir}"
/>
<mkdir
dir=
"${output-dir}"
/>
<copy
todir=
"${output-dir}"
flatten=
"true"
>
<fileset
basedir=
"${src}"
>
<include
name=
"ProtocolBuffers/bin/${build-configuration}/Google.ProtocolBuffers.dll"
/>
<include
name=
"ProtoGen/bin/${build-configuration}/ProtoGen.exe"
/>
</fileset>
</copy>
</target>
</project>
src/ProtocolBuffers.Test/TestUtil.cs
View file @
52a035a4
...
...
@@ -37,6 +37,7 @@ namespace Google.ProtocolBuffers {
while
(
ancestor
!=
null
)
{
string
candidate
=
Path
.
Combine
(
ancestor
.
FullName
,
"testdata"
);
if
(
Directory
.
Exists
(
candidate
))
{
testDataDirectory
=
candidate
;
return
candidate
;
}
ancestor
=
ancestor
.
Parent
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment