projects
/
platform
/
upstream
/
rpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modify eu-strip option to perform strip in post script of rpm package & add option...
[platform/upstream/rpm.git]
/
tests
/
local.at
diff --git
a/tests/local.at
b/tests/local.at
index
b90855b
..
48c5d3f
100644
(file)
--- a/
tests/local.at
+++ b/
tests/local.at
@@
-5,10
+5,10
@@
runroot rpm --initdb
]])
m4_define([RPMDB_CLEAR],[[
]])
m4_define([RPMDB_CLEAR],[[
-rm -rf "${abs_builddir}"/testing`r
un r
pm --eval '%_dbpath'`/*
+rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
]])
]])
-m4_define([RPMPY_RUN],[
+m4_define([RPMPY_RUN],[
[
cat << EOF > test.py
import rpm, sys
dbpath=rpm.expandMacro('%_dbpath')
cat << EOF > test.py
import rpm, sys
dbpath=rpm.expandMacro('%_dbpath')
@@
-18,12
+18,18
@@
def myprint(msg = ''):
$1
EOF
python test.py
$1
EOF
python test.py
-])
+]
]
)
m4_define([RPMPY_CHECK],[
m4_define([RPMPY_CHECK],[
+AT_CHECK([RPMPY_RUN([$1])], [], [$2], [$3])
+])
+
+m4_define([RPMPY_TEST],[
AT_SETUP([$1])
AT_KEYWORDS([python])
AT_SETUP([$1])
AT_KEYWORDS([python])
-AT_CHECK([RPMPY_RUN([[$2]])], [], [$3], [$4])
+RPMDB_CLEAR
+RPMDB_INIT
+RPMPY_CHECK([$2], [$3], [$4])
AT_CLEANUP
])
AT_CLEANUP
])