@@ -460,38 +460,42 @@ TEST_PACKAGES_HOST := $(TEST_PACKAGES_FAST) $(TEST_PACKAGES_WINDOWS)
460
460
TEST_IOFS := false
461
461
endif
462
462
463
+ TEST_SKIP_FLAG := -skip='TestExtraMethods|TestParseAndBytesRoundTrip/P256/Generic'
464
+
463
465
# Test known-working standard library packages.
464
466
# TODO: parallelize, and only show failing tests (no implied -v flag).
465
467
.PHONY : tinygo-test
466
468
tinygo-test :
467
- $(TINYGO ) test $(TEST_PACKAGES_HOST ) $(TEST_PACKAGES_SLOW )
469
+ @# TestExtraMethods: used by many crypto packages and uses reflect.Type.Method which is not implemented.
470
+ @# TestParseAndBytesRoundTrip/P256/Generic: relies on t.Skip() which is not implemented
471
+ $(TINYGO ) test $(TEST_SKIP_FLAG ) $(TEST_PACKAGES_HOST ) $(TEST_PACKAGES_SLOW )
468
472
@# io/fs requires os.ReadDir, not yet supported on windows or wasi. It also
469
473
@# requires a large stack-size. Hence, io/fs is only run conditionally.
470
474
@# For more details, see the comments on issue #3143.
471
475
ifeq ($(TEST_IOFS ) ,true)
472
476
$(TINYGO) test -stack-size=6MB io/fs
473
477
endif
474
478
tinygo-test-fast :
475
- $(TINYGO ) test $(TEST_PACKAGES_HOST )
479
+ $(TINYGO ) test $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_HOST )
476
480
tinygo-bench :
477
481
$(TINYGO ) test -bench . $(TEST_PACKAGES_HOST ) $(TEST_PACKAGES_SLOW )
478
482
tinygo-bench-fast :
479
483
$(TINYGO ) test -bench . $(TEST_PACKAGES_HOST )
480
484
481
485
# Same thing, except for wasi rather than the current platform.
482
486
tinygo-test-wasm :
483
- $(TINYGO ) test -target wasm $(TEST_PACKAGES_WASM )
487
+ $(TINYGO ) test -target wasm $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_WASM )
484
488
tinygo-test-wasi :
485
- $(TINYGO ) test -target wasip1 $(TEST_PACKAGES_FAST ) $(TEST_PACKAGES_SLOW ) ./tests/runtime_wasi
489
+ $(TINYGO ) test -target wasip1 $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_FAST ) $(TEST_PACKAGES_SLOW ) ./tests/runtime_wasi
486
490
tinygo-test-wasip1 :
487
- GOOS=wasip1 GOARCH=wasm $(TINYGO ) test $(TEST_PACKAGES_FAST ) $(TEST_PACKAGES_SLOW ) ./tests/runtime_wasi
491
+ GOOS=wasip1 GOARCH=wasm $(TINYGO ) test $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_FAST ) $(TEST_PACKAGES_SLOW ) ./tests/runtime_wasi
488
492
tinygo-test-wasip1-fast :
489
- $(TINYGO ) test -target=wasip1 $(TEST_PACKAGES_FAST ) ./tests/runtime_wasi
493
+ $(TINYGO ) test -target=wasip1 $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_FAST ) ./tests/runtime_wasi
490
494
491
495
tinygo-test-wasip2-slow :
492
- $(TINYGO ) test -target=wasip2 $(TEST_PACKAGES_SLOW )
496
+ $(TINYGO ) test -target=wasip2 $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_SLOW )
493
497
tinygo-test-wasip2-fast :
494
- $(TINYGO ) test -target=wasip2 $(TEST_PACKAGES_FAST ) ./tests/runtime_wasi
498
+ $(TINYGO ) test -target=wasip2 $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_FAST ) ./tests/runtime_wasi
495
499
496
500
tinygo-test-wasip2-sum-slow :
497
501
TINYGO=$(TINYGO ) \
@@ -517,7 +521,7 @@ tinygo-bench-wasip2-fast:
517
521
518
522
# Run tests on riscv-qemu since that one provides a large amount of memory.
519
523
tinygo-test-baremetal :
520
- $(TINYGO ) test -target riscv-qemu $(TEST_PACKAGES_BAREMETAL )
524
+ $(TINYGO ) test -target riscv-qemu $(TEST_SKIP_FLAG ) $( TEST_PACKAGES_BAREMETAL )
521
525
522
526
# Test external packages in a large corpus.
523
527
test-corpus :
0 commit comments