aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mod-test/Makefile
diff options
context:
space:
mode:
authorAurélien Aptel2015-11-16 01:00:25 +0100
committerTed Zlatanov2015-11-18 14:24:35 -0500
commit955e25dbcd0519d115f58b275923a71c04579e83 (patch)
treea75f83e478b62b1de689c1e8c91e4a6cb67f68f3 /modules/mod-test/Makefile
parent218caccd968d16a1a8d1f336e72f211c3e169142 (diff)
downloademacs-955e25dbcd0519d115f58b275923a71c04579e83.tar.gz
emacs-955e25dbcd0519d115f58b275923a71c04579e83.zip
Add dynamic module test and helper script
Add 'modhelp.py' script (python2) to automate module testing and module generation. To build and test all modules in the modules/ dir $ ./modhelp.py test To generate a module from template code (good starting point) $ ./modhelp init mynewtestmodule See the script -h option for more documentation. * modules/modhelp.py: New module helper script. * modules/mod-test/Makefile: New file. Makefile for the test module. * modules/mod-test/mod-test.c: New file. Test module source file. * modules/mod-test/test.el: New file. ert test suite for the test module. * modules/.gitignore: New file. Local .gitignore file. Co-authored-by: Philipp Stephani <phst@google.com>
Diffstat (limited to 'modules/mod-test/Makefile')
-rw-r--r--modules/mod-test/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/mod-test/Makefile b/modules/mod-test/Makefile
new file mode 100644
index 00000000000..18778f00599
--- /dev/null
+++ b/modules/mod-test/Makefile
@@ -0,0 +1,15 @@
1
2ROOT = ../..
3
4CC = gcc
5LD = gcc
6CFLAGS = -ggdb3 -Wall
7LDFLAGS =
8
9all: mod-test.so
10
11%.so: %.o
12 $(LD) -shared $(LDFLAGS) -o $@ $<
13
14%.o: %.c
15 $(CC) $(CFLAGS) -I$(ROOT)/src -fPIC -c $<