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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
468f7bbb
Commit
468f7bbb
authored
Nov 30, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add make check. addresses #74
git-svn-id:
file:///svn/tokudb@853
c7de825b-a66e-492c-adef-691d508d4ae1
parent
71926b21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
src/Makefile
src/Makefile
+3
-0
src/tokuglobals.py
src/tokuglobals.py
+11
-1
No files found.
src/Makefile
View file @
468f7bbb
...
@@ -23,6 +23,9 @@ install: $(LIBNAME).$(LIBEXT) $(LIBNAME).a
...
@@ -23,6 +23,9 @@ install: $(LIBNAME).$(LIBEXT) $(LIBNAME).a
cp
$(LIBNAME)
.
$(LIBEXT)
../lib/
cp
$(LIBNAME)
.
$(LIBEXT)
../lib/
cp
$(LIBNAME)
.a ../lib
cp
$(LIBNAME)
.a ../lib
check
:
$(LIBNAME).$(LIBEXT)
python tokuglobals.py
$(LIBNAME)
.
$(LIBEXT)
clean
:
clean
:
rm
-rf
$(LIBNAME)
.
$(LIBEXT)
$(LIBNAME)
.a
*
.o
rm
-rf
$(LIBNAME)
.
$(LIBEXT)
$(LIBNAME)
.a
*
.o
...
...
src/tokuglobals.py
View file @
468f7bbb
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
sys
import
sys
import
os
import
os
import
stat
import
re
import
re
def
checkglobals
(
libname
,
exceptsymbols
,
verbose
):
def
checkglobals
(
libname
,
exceptsymbols
,
verbose
):
...
@@ -30,14 +31,23 @@ def checkglobals(libname, exceptsymbols, verbose):
...
@@ -30,14 +31,23 @@ def checkglobals(libname, exceptsymbols, verbose):
def main():
def main():
verbose = 0
verbose = 0
libname = "
libdb
.
so
"
for arg in sys.argv[1:]:
for arg in sys.argv[1:]:
if arg == "
-
v
":
if arg == "
-
v
":
verbose += 1
verbose += 1
elif arg[0:3] == "
lib
":
libname = arg
try: st = os.stat(libname)
except: return 1
mode = st[stat.ST_MODE]
if not (mode & stat.S_IREAD): return 1
exceptsymbols = {}
exceptsymbols = {}
for n in [ "
_init
", "
_fini
", "
_end
", "
_edata
", "
__bss_start
" ]:
for n in [ "
_init
", "
_fini
", "
_end
", "
_edata
", "
__bss_start
" ]:
exceptsymbols[n] = 1
exceptsymbols[n] = 1
for n in [ "
db_env_create
", "
db_create
", "
db_strerror
", "
db_version
", "
log_compare
" ]:
for n in [ "
db_env_create
", "
db_create
", "
db_strerror
", "
db_version
", "
log_compare
" ]:
exceptsymbols[n] = 1
exceptsymbols[n] = 1
return checkglobals(
"
libdb
.
so
"
, exceptsymbols, verbose)
return checkglobals(
libname
, exceptsymbols, verbose)
sys.exit(main())
sys.exit(main())
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