Mercurial > pub > dyncall > dyncall
annotate test/callback_suite/Makefile.generic @ 410:7608e34098b0
- cleanups, simplifications, some api clarification, ...
- test cases consistency:
* return status code depending on test results (for actual conformance tests, not stuff that is not an example or hack to check something, ..)
* platform init helper added for some
author | Tassilo Philipp |
---|---|
date | Tue, 05 Oct 2021 21:53:04 +0200 |
parents | ca36937b4613 |
children | d8f0e6cecdab |
rev | line source |
---|---|
0 | 1 APP = callback_suite |
410
7608e34098b0
- cleanups, simplifications, some api clarification, ...
Tassilo Philipp
parents:
105
diff
changeset
|
2 OBJS = env.o handler.o sigstrings.o invokers.o do_test.o main.o signature_utils.o |
0 | 3 SRCTOP = ${VPATH}/../.. |
4 BLDTOP = ../.. | |
5 CFLAGS += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback | |
6 LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s -L${BLDTOP}/dyncallback -ldyncallback_s | |
7 LUA = lua | |
8 AUTOS = _auto_config.h _auto_sigstrings.h _auto_invokers.h \ | |
9 _auto_invoke_macros.h _auto_invoke_table.h _auto_signatures.txt | |
10 | |
11 .PHONY: all clean install config clean-config | |
12 all: ${APP} | |
13 ${APP}: ${OBJS} | |
14 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP} | |
15 clean: | |
16 rm -f ${APP} ${OBJS} | |
17 install: | |
18 mkdir -p ${PREFIX}/test | |
19 cp ${APP} ${PREFIX}/test | |
20 config: clean-config ${AUTOS} | |
21 config-random: | |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
44
diff
changeset
|
22 echo "-- auto-generated file from template config-random.lua (created by GNUmake)" >config.lua |
0 | 23 cat config-random.lua >>config.lua |
24 ${MAKE} config | |
25 config-stress1: | |
105
ca36937b4613
- more cases for checked-in config of callback_suite test (needed some more floats as first params)
cslag
parents:
44
diff
changeset
|
26 echo "-- auto-generated file from template config-stress1.lua (created by GNUmake)" >config.lua |
0 | 27 cat config-stress1.lua >>config.lua |
28 ${MAKE} config | |
29 | |
30 clean-config: clean | |
31 rm -f ${AUTOS} | |
32 | |
33 _auto_signatures.txt: | |
34 ${LUA} make-signatures.lua >$@ | |
35 | |
36 _auto_invokers.h: _auto_signatures.txt | |
44
b8f16ad80e34
- more extreme test case configs, as cconvs like armhf can pass a lot of args via registers, and old config didn't test stack usage in those cases
cslag
parents:
0
diff
changeset
|
37 ${LUA} make-invokers.lua <$> >$@ |
0 | 38 |
39 _auto_sigstrings.h: _auto_signatures.txt | |
44
b8f16ad80e34
- more extreme test case configs, as cconvs like armhf can pass a lot of args via registers, and old config didn't test stack usage in those cases
cslag
parents:
0
diff
changeset
|
40 ${LUA} make-cstrings.lua <$> >$@ |
0 | 41 |
42 _auto_config.h: | |
43 ${LUA} make-config.lua >$@ | |
44 | |
45 _auto_invoke_macros.h: | |
46 ${LUA} make-invoke-macros.lua >$@ | |
47 | |
48 _auto_invoke_table.h: | |
49 ${LUA} make-invoke-table.lua >$@ | |
50 |