Skip to content

Commit

Permalink
[test] Simplify sandboxing by symlinking and explicit loading iso. el…
Browse files Browse the repository at this point in the history
…-get
  • Loading branch information
thoni56 committed Jun 5, 2024
1 parent 1423851 commit 0a7c446
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 111 deletions.
5 changes: 0 additions & 5 deletions tests/sandboxed_emacs/.emacs.d/el-get/.gitignore

This file was deleted.

55 changes: 0 additions & 55 deletions tests/sandboxed_emacs/.emacs.d/el-get/.loaddefs.el

This file was deleted.

31 changes: 0 additions & 31 deletions tests/sandboxed_emacs/.emacs.d/el-get/.status.el

This file was deleted.

2 changes: 1 addition & 1 deletion tests/sandboxed_emacs/.emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)

(add-to-list 'load-path "~/.emacs.d/c-xrefactory/editors/emacs")
(add-to-list 'load-path "~/c-xrefactory/editors/emacs")
(load "c-xrefactory.el")

(custom-set-variables
Expand Down
4 changes: 0 additions & 4 deletions tests/sandboxed_emacs/.emacs.d/override-el-get-update.el

This file was deleted.

24 changes: 9 additions & 15 deletions tests/sandboxed_emacs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ all: pure
EMACS_COMMAND = emacs -l $(PWD)/.emacs.d/init.el --eval '(setq c-xref-exec-directory "$(PWD)/bin/")' --eval '(setq c-xref-debug-mode t)' --eval '(setq c-xref-debug-preserve-tmp-files t)'

# Run a pure sandboxed Emacs which should use the latest elisp and c-xref
pure: .emacs.d/c-xrefactory/src .emacs.d/c-xrefactory/editors
make -C .emacs.d/c-xrefactory/src
cp .emacs.d/c-xrefactory/src/c-xref $(CURDIR)/bin/
-rm -r .emacs.d/c-xrefactory/editors/emacs/*.elc
pure: c-xrefactory
make -C c-xrefactory/src c-xref
cp c-xrefactory/src/c-xref $(CURDIR)/bin/
-rm -r c-xrefactory/editors/emacs/*.elc
@$(ENV) $(EMACS_COMMAND)

debug: .emacs.d/c-xrefactory
debug: c-xrefactory
@$(ENV) $(EMACS_COMMAND)


Expand All @@ -42,14 +42,8 @@ pipe-spy: pipe-spy.c Makefile
$(CC) -o pipe-spy -g -Wall -DTARGET=\"$(TARGET_PATH)\" pipe-spy.c
cp pipe-spy bin/c-xref

.emacs.d/c-xrefactory/editors : .emacs.d/c-xrefactory
ln -s $(CURDIR)/../../editors .emacs.d/c-xrefactory/editors
c-xrefactory :
ln -s $(CURDIR)/../.. c-xrefactory

.emacs.d/c-xrefactory/src : .emacs.d/c-xrefactory
ln -s $(CURDIR)/../../src .emacs.d/c-xrefactory/src

.emacs.d/c-xrefactory:
ln -s $(CURDIR)/../../src .emacs.d/c-xrefactory/src

clean:
-rm $(LOGFILE)* /tmp/c-xref*.log
curdir:
echo $(CURDIR)

0 comments on commit 0a7c446

Please sign in to comment.