mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Locate resources and scripts relative to top source dir.
-- Locate every resource and every script used in the tests using a path relative to the top of the source tree. This is a purely mechanical change, mostly done using regular expressions, with a few manual fixups here and there. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
f03d6897be
commit
ed4d23d75e
87 changed files with 208 additions and 182 deletions
|
@ -17,16 +17,22 @@
|
|||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
(if (string=? "" (getenv "srcdir"))
|
||||
(if (string=? "" (getenv "abs_top_srcdir"))
|
||||
(begin
|
||||
(echo "Environment variable 'srcdir' not set. Please point it to"
|
||||
(echo "Environment variable 'abs_top_srcdir' not set. Please point it to"
|
||||
"tests/gpgsm.")
|
||||
(exit 2)))
|
||||
|
||||
(let* ((tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*))
|
||||
(setup (make-environment-cache (test::scm #f "setup.scm" "setup.scm")))
|
||||
(setup (make-environment-cache (test::scm
|
||||
#f
|
||||
(path-join "tests" "gpgsm" "setup.scm")
|
||||
(in-srcdir "tests" "gpgsm" "setup.scm"))))
|
||||
(runner (if (and (member "--parallel" *args*)
|
||||
(> (length tests) 1))
|
||||
run-tests-parallel
|
||||
run-tests-sequential)))
|
||||
(runner (map (lambda (t) (test::scm setup t t)) tests)))
|
||||
(runner (map (lambda (name)
|
||||
(test::scm setup
|
||||
(path-join "tests" "gpgsm" name)
|
||||
(in-srcdir "tests" "gpgsm" name))) tests)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue