Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
90557676
Commit
90557676
authored
Jul 26, 2012
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spec file: transfer the 'runselftest' macro to a work tree.
parent
4bcc25e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+28
-0
No files found.
support-files/mysql.spec.sh
View file @
90557676
...
...
@@ -252,6 +252,9 @@ Vendor: %{mysql_vendor}
Provides: msqlormysql MySQL-server mysql
BuildRequires: %
{
distro_buildreq
}
# Regression tests may take a long time, override the default to skip them
%
{!
?runselftest:%global runselftest 1
}
# Think about what you use here since the first step is to
# run a rm -rf
BuildRoot: %
{
_tmppath
}
/%
{
name
}
-%
{
version
}
-build
...
...
@@ -403,6 +406,16 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
##############################################################################
%build
# Fail quickly and obviously if user tries to build as root
%if %runselftest
if
[
x
"
`
id
-u
`
"
=
x0
]
;
then
echo
"The MySQL regression tests may fail if run as root."
echo
"If you really need to build the RPM as root, use"
echo
"--define='runselftest 0' to skip the regression tests."
exit
1
fi
%endif
# Be strict about variables, bail at earliest opportunity, etc.
set
-eu
...
...
@@ -480,6 +493,13 @@ mkdir release
make
${
MAKE_JFLAG
}
VERBOSE
=
1
)
%if %runselftest
MTR_BUILD_THREAD
=
auto
export
MTR_BUILD_THREAD
(
cd
release
&&
make test-bt-fast
||
true
)
%endif
##############################################################################
%install
...
...
@@ -1151,6 +1171,14 @@ echo "=====" >> $STATUS_HISTORY
# merging BK trees)
##############################################################################
%changelog
*
Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
- Add a macro
"runselftest"
:
if
set
to 1
(
default
)
, the
test
suite will be run during the RPM build
;
this can be oveeridden via the
command
line by adding
--define
"runselftest 0"
Failures of the
test
suite will NOT make the RPM build fail!
*
Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
- Make sure newly added
"SPECIFIC-ULN/"
directory does not disturb packaging.
...
...
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