We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f528aff commit 8ca5f73Copy full SHA for 8ca5f73
1 file changed
Makefile
@@ -211,10 +211,16 @@ vet: $(GO)
211
test: test-aot-runtime test-glj # vet
212
($(MAKE) test-suite v=1 || $(MAKE) test-suite v=1) || $(MAKE) test-suite v=1
213
214
+TEST-COMPARE-LOAD := $(shell \
215
+ processors=$$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 2); \
216
+ awk -v processors="$$processors" \
217
+ 'BEGIN { threshold = processors * 0.75; \
218
+ print (threshold < 1 ? 1 : threshold) }')
219
+
220
test-compare: $(YS)
221
@scripts/make-test-compare \
222
'$(if $(with),$(with),origin/main)' '$(file)' \
- '$(if $(load),$(load),1.0)'
223
+ '$(if $(load),$(load),$(TEST-COMPARE-LOAD))'
224
225
test-aot-runtime: $(GO)
226
go test -tags glj_aot_runtime ./pkg/glj ./pkg/gljmain ./pkg/runtime
0 commit comments