History

Revert "tests: Add support for codesigning command."

This reverts commit ece74ceaaf0f1dd89e8520f73149867a6fa73082. codesigning is already supported via --config-codesign. This patch actually broke testing for tcc builds with that set.

Reimar Döffinger committed 3 years ago

Commit 36f53cd1 parent b7c732f3 files · +3 −16Browse files

Unified · Split

3 files
  1. Makefile +0 −6
  2. tests/Makefile +1 −5
  3. tests/tests2/Makefile +2 −5
Makefile+0−6
@@ -77,12 +77,6 @@ TCCFLAGS = $(TCCFLAGS$(CFG)) · 76 unmodified lines
7777 TCC_LOCAL = $(TOP)/tcc$(EXESUF)
7878 TCC = $(TCC_LOCAL) $(TCCFLAGS)
7979
80−ifdef CONFIG_OSX
81−CODESIGN = codesign -s -
82−else
83−CODESIGN = true
84−endif
85−
8680 CFLAGS_P = $(CFLAGS) -pg -static -DCONFIG_TCC_STATIC -DTCC_PROFILE
8781 LIBS_P = $(LIBS)
8882 LDFLAGS_P = $(LDFLAGS)
tests/Makefile+1−5
@@ -81,7 +81,7 @@ all test : · 80 unmodified lines
8181
8282 hello-exe: ../examples/ex1.c
8383 @echo ------------ $@ ------------
84− $(TCC) $< -o hello$(EXESUF) && $(CODESIGN) hello$(EXESUF) && ./hello$(EXESUF) || $(DUMPTCC)
84+ $(TCC) $< -o hello$(EXESUF) && ./hello$(EXESUF) || $(DUMPTCC)
8585
8686 hello-run: ../examples/ex1.c
8787 @echo ------------ $@ ------------
@@ -156,9 +156,7 @@ test4_static: tcctest.c test.ref · 68 unmodified lines
156156 dlltest:
157157 @echo ------------ $@ ------------
158158 $(TCC) $(NATIVE_DEFINES) -DLIBTCC_AS_DLL $(TOPSRC)/libtcc.c $(LIBS) -shared -o libtcc2$(DLLSUF)
159− $(CODESIGN) libtcc2$(DLLSUF)
160159 $(TCC) $(NATIVE_DEFINES) -DONE_SOURCE=0 $(TOPSRC)/tcc.c libtcc2$(DLLSUF) $(LIBS) -Wl,-rpath=. -o tcc2$(EXESUF)
161− $(CODESIGN) tcc2$(EXESUF)
162160 ./tcc2$(EXESUF) $(TCCFLAGS) $(RUN_TCC) -run $(TOPSRC)/examples/ex1.c
163161 ifeq (,$(filter Darwin WIN32,$(TARGETOS)))
164162 @echo ------------ $@ with PIC ------------
@@ -243,7 +241,6 @@ abitest-cc.exe: abitest.c $(LIBTCC) · 78 unmodified lines
243241
244242 abitest-tcc.exe: abitest.c libtcc.c
245243 $(TCC) -o $@ $^ $(NATIVE_DEFINES) $(LIBS)
246− $(CODESIGN) $@
247244
248245 abitest-% : abitest-%.exe
249246 @echo ------------ $@ ------------
@@ -256,7 +253,6 @@ endif · 6 unmodified lines
256253
257254 vla_test$(EXESUF): vla_test.c
258255 $(TCC) -o $@ $^
259− $(CODESIGN) $@
260256
261257 vla_test-run: vla_test$(EXESUF)
262258 @echo ------------ $@ ------------
tests/tests2/Makefile+2−5
@@ -105,11 +105,8 @@ GEN-ALWAYS = · 104 unmodified lines
105105 # this test creates two DLLs and an EXE
106106 113_btdll.test: T1 = \
107107 $(TCC) -bt $1 -shared -D DLL=1 -o a1$(DLLSUF) && \
108− $(CODESIGN) a1$(DLLSUF) && \
109108 $(TCC) -bt $1 -shared -D DLL=2 -o a2$(DLLSUF) && \
110− $(CODESIGN) a2$(DLLSUF) && \
111109 $(TCC) -bt $1 a1$(DLLSUF) a2$(DLLSUF) -Wl,-rpath=. -o $(basename $@).exe && \
112− $(CODESIGN) $(basename $@).exe && \
113110 ./$(basename $@).exe
114111
115112 114_bound_signal.test: FLAGS += -b
@@ -139,7 +136,7 @@ all test tests2.all: $(filter-out $(SKIP),$(TESTS)) · 23 unmodified lines
139136 @$(call T1,$<) $(T3)
140137
141138 T1 = $(TCC) $(FLAGS) $(T2) $(ARGS)
142−T2 = $(if $(NORUN),$1 -o $(basename $@).exe && $(CODESIGN) $(basename $@).exe && ./$(basename $@).exe,-run $1)
139+T2 = $(if $(NORUN),$1 -o $(basename $@).exe && ./$(basename $@).exe,-run $1)
143140 T3 = $(FILTER) >$*.output 2>&1 || true \
144141 && diff -Nbu $(filter %.expect,$^) $*.output \
145142 && rm -f $*.output $(filter $*.expect,$(GEN-ALWAYS))
@@ -180,4 +177,4 @@ $(sort $(GEN-ALWAYS) $(UPDATE)) : force · 34 unmodified lines
180177 force:
181178
182179 clean :
183− rm -f fred.txt *.output *.exe *.dll *.so *.dylib *.def $(GEN-ALWAYS)
180+ rm -f fred.txt *.output *.exe *.dll *.so *.def $(GEN-ALWAYS)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t