]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix emba scripts
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Nov 2021 19:20:31 +0000 (20:20 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 19 Nov 2021 19:20:31 +0000 (20:20 +0100)
test/infra/gitlab-ci.yml
test/infra/test-jobs-generator.sh

index ac3989a5e49309a636a395265627644ad940b255..abc7bddbf73ffef0912112fc14a9c90bb0c34008 100644 (file)
@@ -239,7 +239,8 @@ build-image-inotify:
 test-jobs-generator:
   stage: generator
   script:
-   - ./test-jobs-generator.sh > test-jobs.yml
+    - pwd
+    - test/infra/test-jobs-generator.sh > test-jobs.yml
   artifacts:
     paths:
       - test-jobs.yml
index 97346785eaf673ad182b3511f1456d9ad2824965..d5171acbf2c0b3e6171bda354722eb53b52eb2bb 100755 (executable)
 # Maintainer: Michael Albinus <michael.albinus@gmx.de>
 # URL: https://emba.gnu.org/emacs/emacs
 
-for target in $(cd ..; make -s subdir-targets); do
+SUBDIRS=$(cd test && \
+          (find lib-src lisp misc src -type d \
+           ! \( -path "*resources*" -o -path "*auto-save-list" \) \
+           -print | sort -))
+
+for subdir in $SUBDIRS; do
+    target=check-$(echo $subdir | tr '/' '-')
+
     case $target in
-        check-lib-src)
-            changes="
-        - lib-src/*.{h,c}
-        - test/lib-src/*.el"
-            ;;
-        check-lisp-emacs-lisp)
-            changes="
-        - lisp/emacs-lisp/*.el
-        - test/lisp/emacs-lisp/*.el"
-            ;;
-        check-lisp-emacs-lisp-eieio-tests)
-            changes="
-        - lisp/emacs-lisp/eieio-tests/*.el
-        - test/lisp/emacs-lisp/eieio-tests/*.el"
-            ;;
-        check-lisp-emacs-lisp-faceup-tests)
-            changes="
-        - lisp/emacs-lisp/faceup-tests/*.el
-        - test/lisp/emacs-lisp/faceup-tests/*.el"
-            ;;
-        check-lisp-mh-e)
+        check*-src)
             changes="
-        - lisp/mh-e/*.el
-        - test/lisp/mh-e/*.el"
-            ;;
-        check-lisp-so-long-tests)
-            changes="
-        - lisp/so-long-tests/*.el
-        - test/lisp/so-long-tests/*.el"
+        - $subdir/*.{h,c}
+        - test/$subdir/*.el"
             ;;
         check-misc)
             changes="
         - admin/*.el
-        - test/misc/*.el"
-            ;;
-        check-src)
-            changes="
-        - src/*.{h,c}
-        - test/src/*.el"
+        - test/$subdir/*.el"
             ;;
         *)
             changes="
-        - $(echo -n ${target##check-}/*.el | tr '-' '/')
-        - $(echo -n test${target##check}/*.el | tr '-' '/')"
+        - $subdir/*.el
+        - test/$subdir/*.el"
             ;;
     esac