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
7db148f9
Commit
7db148f9
authored
Jan 12, 2010
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add makefile for extended tests to be run before release.
parent
2113840a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
Makefile
more_tests/Makefile
+41
-0
No files found.
more_tests/Makefile
0 → 100755
View file @
7db148f9
# Additional tests to run before releasing a package.
#
# Run like:
# make PACKAGE=/path/to/protobuf-VERSION.tar.gz
#
# Some of these tests require tools or make assumptions that may not be
# available on end-user machines, so these cannot be part of "make check". For
# example, we test that the headers compile with strict warning settings, but
# since different compilers produce wildly different warnings we cannot assume
# that this test will pass everywhere. If we ran it as part of "make check",
# it could unnecessarily block users from running the real tests just because
# their compiler produces some extra warnings that probably aren't a big deal.
# So we run it separately.
all
:
header_warning_test
clean
:
rm
-rf
src target header_warning_test.cc header_warning_test.o header_warning_test
# Unpack the package into src, then install it into target.
PACKAGE
=
protobuf.tar.gz
src
:
$(PACKAGE)
tar
zxvf
$(PACKAGE)
mv
`
basename
$(PACKAGE)
.tar.gz
`
src
target
:
src
(
cd
src
&&
./configure
--prefix
=
$$
PWD/../target
--disable-shared
)
(
cd
src
&&
make
-j4
check
)
(
cd
src
&&
make
install
)
# Verify that headers produce no warnings even under strict settings.
header_warning_test.cc
:
target
(
(
cd
target/include
&&
find google/protobuf
-name
'*.h'
)
|
\
awk
'{print "#include \""$$1"\""} '
>
header_warning_test.cc
)
header_warning_test
:
header_warning_test.cc
# TODO
(
kenton
)
: Consider adding
-pedantic
and
-Weffc
++. Currently these
# produce tons of extra warnings so we'll need to do some work first.
g++
-Itarget
/include
-Wall
-Werror
-Wsign-compare
-O2
-c
header_warning_test.cc
touch
header_warning_test
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