aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Jason Park2022-06-03 06:15:44 -0700
committerF. Jason Park2022-06-03 22:18:05 -0700
commit55768e0a788afbb759a9a3af47a7c31c63d7e2ed (patch)
treee2bb8f37e4bffdeddeb50e9cd2c0f7d3b945501a
parentc7e729224ecf7e1ec93deabb701d18f92404e2fd (diff)
downloademacs-fix/bug-48598.tar.gz
emacs-fix/bug-48598.zip
[DEBUG] Update ERC vanity case in CI subdir templatefix/bug-48598
These modifications to test/infra are not part of this patch set. This branch exists for ironing out EMBA-specific wrinkles in ERC's upcoming test suite. See bug#48598 for the actual code.
-rw-r--r--test/infra/Makefile.in10
-rw-r--r--test/infra/gitlab-ci.yml3
-rw-r--r--test/infra/test-jobs.yml4
3 files changed, 8 insertions, 9 deletions
diff --git a/test/infra/Makefile.in b/test/infra/Makefile.in
index 89ba36e27fc..0e6b45332ac 100644
--- a/test/infra/Makefile.in
+++ b/test/infra/Makefile.in
@@ -39,12 +39,14 @@ cps = $$$$CI_PIPELINE_SOURCE
39define subdir_template 39define subdir_template
40 $(eval target = check-$(subst /,-,$(1))) 40 $(eval target = check-$(subst /,-,$(1)))
41 SUBDIR_TARGETS += $(target) 41 SUBDIR_TARGETS += $(target)
42 variables =
43 42
44 $(eval 43 $(eval
45 define changes 44 define changes
46 @echo ' - $(1)/*.el' >>$(FILE) 45 @echo ' - $(1)/*.el' >>$(FILE)
47 endef 46 endef
47 define variables
48 @echo ' make_params: "-k -C test $(target)"' >>$(FILE)
49 endef
48 ifeq ($(findstring src, $(1)), src) 50 ifeq ($(findstring src, $(1)), src)
49 define changes 51 define changes
50 @echo ' - $(1)/*.{h,c}' >>$(FILE) 52 @echo ' - $(1)/*.{h,c}' >>$(FILE)
@@ -67,9 +69,8 @@ define subdir_template
67 endef 69 endef
68 else ifeq (lisp/erc,$(1)) 70 else ifeq (lisp/erc,$(1))
69 define variables 71 define variables
70 @sed -i '$$$$$$$$d' $(FILE) 72 @printf ' make_params: "-k -C test SELECTOR=' >>$(FILE)
71 @printf ' make_params: >\n -k -C test SELECTOR=' >>$(FILE) 73 @printf '\x27\x24(SELECTOR_EXPENSIVE)\x27 %s"\n' $(target) >>$(FILE)
72 @printf '\x27\x24(SELECTOR_EXPENSIVE)\x27 %s\n' $(target) >>$(FILE)
73 endef 74 endef
74 endif) 75 endif)
75 76
@@ -90,7 +91,6 @@ define subdir_template
90 @echo ' - test/$(1)/*resources/**' >>$(FILE) 91 @echo ' - test/$(1)/*resources/**' >>$(FILE)
91 @echo ' variables:' >>$(FILE) 92 @echo ' variables:' >>$(FILE)
92 @echo ' target: emacs-inotify' >>$(FILE) 93 @echo ' target: emacs-inotify' >>$(FILE)
93 @echo ' make_params: "-k -C test $(target)"' >>$(FILE)
94 $(variables) 94 $(variables)
95endef 95endef
96 96
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index 48f23821833..7dacbde9d46 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -86,11 +86,10 @@ default:
86 # TODO: with make -j4 several of the tests were failing, for 86 # TODO: with make -j4 several of the tests were failing, for
87 # example shadowfile-tests, but passed without it. 87 # example shadowfile-tests, but passed without it.
88 - 'export PWD=$(pwd)' 88 - 'export PWD=$(pwd)'
89 - 'echo "DEBUG var_test: ${var_test}"'
90 - 'echo "DEBUG make_params: ${make_params}"' 89 - 'echo "DEBUG make_params: ${make_params}"'
91 - >- 90 - >-
92 test "${make_params}" = "-k -C test SELECTOR='"'$(SELECTOR_EXPENSIVE)'"' check-lisp-erc" 91 test "${make_params}" = "-k -C test SELECTOR='"'$(SELECTOR_EXPENSIVE)'"' check-lisp-erc"
93 - 'docker run -i -e EMACS_EMBA_CI=${EMACS_EMBA_CI} -e EMACS_TEST_JUNIT_REPORT=${EMACS_TEST_JUNIT_REPORT} -e EMACS_TEST_TIMEOUT=${EMACS_TEST_TIMEOUT} -e EMACS_TEST_VERBOSE=${EMACS_TEST_VERBOSE} --volumes-from $(docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=${CI_JOB_ID}"):ro --name ${test_name} ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} /bin/bash -c "echo DEBUG in container ${make_params} && git fetch ${PWD} HEAD && echo checking out these updated files && git diff --name-only FETCH_HEAD && ( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && make -j4 && make ${make_params}"' 92 - 'docker run -i -e EMACS_EMBA_CI=${EMACS_EMBA_CI} -e EMACS_TEST_JUNIT_REPORT=${EMACS_TEST_JUNIT_REPORT} -e EMACS_TEST_TIMEOUT=${EMACS_TEST_TIMEOUT} -e EMACS_TEST_VERBOSE=${EMACS_TEST_VERBOSE} --volumes-from $(docker ps -q -f "label=com.gitlab.gitlab-runner.job.id=${CI_JOB_ID}"):ro --name ${test_name} ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} /bin/bash -c "git fetch ${PWD} HEAD && echo checking out these updated files && git diff --name-only FETCH_HEAD && ( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && make -j4 && make ${make_params}"'
94 after_script: 93 after_script:
95 # - docker ps -a 94 # - docker ps -a
96 # - printenv 95 # - printenv
diff --git a/test/infra/test-jobs.yml b/test/infra/test-jobs.yml
index 41b7a4951d6..8de5bd81f1e 100644
--- a/test/infra/test-jobs.yml
+++ b/test/infra/test-jobs.yml
@@ -215,13 +215,13 @@ test-lisp-erc-inotify:
215 when: never 215 when: never
216 - changes: 216 - changes:
217 - test/infra/* 217 - test/infra/*
218 # ^ delete this
218 - lisp/erc/*.el 219 - lisp/erc/*.el
219 - test/lisp/erc/*.el 220 - test/lisp/erc/*.el
220 - test/lisp/erc/*resources/** 221 - test/lisp/erc/*resources/**
221 variables: 222 variables:
222 target: emacs-inotify 223 target: emacs-inotify
223 var_test: "-k -C test SELECTOR='$(SELECTOR_EXPENSIVE)' check-lisp-erc" 224 make_params: "-k -C test SELECTOR='$(SELECTOR_EXPENSIVE)' check-lisp-erc"
224 make_params: "-k -C test SELECTOR='$$(SELECTOR_EXPENSIVE)' check-lisp-erc"
225 225
226test-lisp-eshell-inotify: 226test-lisp-eshell-inotify:
227 stage: normal 227 stage: normal