emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode f09a19bed1 1/5: Improve test runners


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode f09a19bed1 1/5: Improve test runners
Date: Sat, 9 Jul 2022 02:59:15 -0400 (EDT)

branch: elpa/swift-mode
commit f09a19bed1edac389b2d5ebfd80219cf92680514
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>

    Improve test runners
---
 scripts/lint_in_docker.sh | 8 +++++---
 scripts/run_test.sh       | 1 +
 scripts/test_in_docker.sh | 9 ++++++---
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/scripts/lint_in_docker.sh b/scripts/lint_in_docker.sh
index 5fcba171a9..9289ba5702 100755
--- a/scripts/lint_in_docker.sh
+++ b/scripts/lint_in_docker.sh
@@ -9,10 +9,12 @@ do
         run \
         --rm \
         --volume="$(pwd)":/src \
-        --user "$(id -u):$(id -g)" \
+        --user="$(id -u):$(id -g)" \
+        --workdir="/src" \
+        --env=ELDEV_DIR=/src/.eldev \
+        --env=HOME=/tmp \
         silex/emacs:${version} \
-        bash -c \
-        "cd /src && ELDEV_DIR=/src/.eldev HOME=/tmp ./scripts/run_linter.sh" \
+        bash -c "/src/scripts/run_linter.sh" \
         || exit 1
 done
 
diff --git a/scripts/run_test.sh b/scripts/run_test.sh
index 484e170ca7..f5abf89c83 100755
--- a/scripts/run_test.sh
+++ b/scripts/run_test.sh
@@ -11,5 +11,6 @@
 ./scripts/invoke_eldev.sh emacs --batch -q \
   --eval "(add-to-list 'load-path \"$(readlink -f .)\")" \
   --eval "(add-to-list 'load-path \"$(readlink -f .)/test\")" \
+  --eval "(setq debug-on-error t)" \
   -l test/swift-mode-test.el \
   -f swift-mode:run-test
diff --git a/scripts/test_in_docker.sh b/scripts/test_in_docker.sh
index f1533ba5ad..17b6bd9cd0 100755
--- a/scripts/test_in_docker.sh
+++ b/scripts/test_in_docker.sh
@@ -5,14 +5,17 @@
 for version in 28 27 26 25 24
 do
     rm -f *.elc
+    rm -f *-autoloads.el
     docker \
         run \
         --rm \
         --volume="$(pwd)":/src \
-        --user "$(id -u):$(id -g)" \
+        --user="$(id -u):$(id -g)" \
+        --workdir="/src" \
+        --env=ELDEV_DIR=/src/.eldev \
+        --env=HOME=/tmp \
         silex/emacs:${version} \
-        bash -c \
-        "cd /src && ELDEV_DIR=/src/.eldev HOME=/tmp ./scripts/run_test.sh" \
+        bash -c "/src/scripts/run_test.sh" \
         || exit 1
 done
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]