File tree Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ jobs:
9494 - name : Test in ubuntu 20.04 container
9595 if : ${{ inputs.do_test }}
9696 run : |
97- docker run -v ./dist:/dist -v ./scripts:/scripts tester-image_ubuntu2004:latest \
97+ docker run -v ./dist:/dist tester-image_ubuntu2004:latest \
9898 /scripts/test_emacs_in_docker.sh /dist/Emacs.AppImage
9999
100100 - name : Test in archlinux container
101101 if : ${{ inputs.do_test }}
102102 run : |
103- docker run -v ./dist:/dist -v ./scripts:/scripts tester-image_archlinux:latest \
103+ docker run -v ./dist:/dist tester-image_archlinux:latest \
104104 /scripts/test_emacs_in_docker.sh /dist/Emacs.AppImage
105105
106106 - name : Upload binary as artifact
Original file line number Diff line number Diff line change 5252 - name : Build and export
5353 uses : docker/build-push-action@v5
5454 with :
55+ context : tests/
5556 file : tests/Dockerfile.ubuntu2004
5657 # cache-from: type=gha
5758 # cache-to: type=gha,mode=max
7980 - name : Build and export
8081 uses : docker/build-push-action@v5
8182 with :
83+ context : tests/
8284 file : tests/Dockerfile.archlinux
8385 # cache-from: type=gha
8486 # cache-to: type=gha,mode=max
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ FROM archlinux:latest
33RUN pacman-key --init \
44 && pacman -Syu --noconfirm \
55 && pacman -S --noconfirm xfce4
6+
7+ ADD scripts /scripts
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ FROM ubuntu:20.04
33ENV DEBIAN_FRONTEND=noninteractive
44
55RUN apt-get update && apt-get install -y ubuntu-desktop
6+
7+ ADD scripts /scripts
Original file line number Diff line number Diff line change 1+ ; ;; test.el --- -*- lexical-binding : t ; -*-
2+
3+ ; ;; Commentary:
4+
5+ ; ;; Code:
6+
7+ (require 'cl-macs )
8+
9+ (message " hello world! " )
10+
11+ (cl-assert (native-comp-available-p))
12+ (cl-assert (native-compile '(lambda (x) (* x 2 ))))
13+
14+ (cl-assert (executable-find " emacsclient" ))
15+ (cl-assert (executable-find " emacs" ))
16+ (cl-assert (executable-find " hexl" ))
17+
18+ (cl-assert (file-exists-p (file-name-concat doc-directory " NEWS" )))
19+ (cl-assert (file-exists-p (file-name-concat data-directory " charsets/GBK.map" )))
20+
Original file line number Diff line number Diff line change 11#! /bin/bash -ex
22
3+ SCRIPTS_DIR=" $( realpath " $( dirname " $0 " ) " ) "
34EMACS_APPIMAGE=" $( realpath " $1 " ) "
45
56cd " $( mktemp -d) "
67
78cp " $EMACS_APPIMAGE " ./Emacs.AppImage
89chmod +x ./Emacs.AppImage
910
10- cat << -EOF > test.el
11- (native-compile '(lambda (x) (* x 2)))
12- (message "hello world!")
13- EOF
14-
1511./Emacs.AppImage --appimage-extract
1612cd squashfs-root
17- ./AppRun --batch -l ../test.el
13+
14+ ./AppRun --batch -l " $SCRIPTS_DIR /test.el"
15+ [[ " $( ./AppRun --emacs-appimage-run-as emacsclient --version) " =~ emacsclient* ]]
You can’t perform that action at this time.
0 commit comments