Commit Graph
11 Commits
Author SHA1 Message Date
Karoy Lorentey 299d1251f1 Regenerate gybbed sources 2021-08-27 17:19:56 -07:00
Karoy Lorentey eb7e1335f8 [NFC] Update copyright notices 2021-08-27 17:13:03 -07:00
Saleem Abdulrasool 907a24f5f2 Add the ability to run tests via CMake
This adds the ability to run the test suite via CMake + Ninja.
2021-04-30 09:13:39 -07:00
Saleem Abdulrasool c711547ac1 Tests: add XCTest manifest for non-SPM based builds
This allows for testing without SPM on non-Darwin targets.  We
explicitly exclude the manifest in SPM based builds because we would
like to use the automatic test discovery functionality from SPM.
2021-04-29 14:43:21 -07:00
Karoy Lorentey 47c88d732f Work around some compiler issues in Swift 5.2
This allows the package to be built with the Swift 5.2.4 toolchain.

Resolves #15
2020-11-09 13:52:03 -08:00
Karoy Lorentey 7658766e61 Remove LinuxMain.swift
This package requires --enable-test-discovery.
2020-10-12 12:08:04 -07:00
Karoy Lorentey ed324ec42e generate-sources: Don’t invoke —generate-linuxmain
SPM’s --generate-linuxmain feature doesn’t support conditionally compiled tests.

To run tests on non-Darwin platforms, use `swift test --enable-test-discovery`.
2020-10-09 14:53:02 -07:00
Karoy Lorentey 9ad914d118 Make double-wide atomics conditional on platform support
Linux on x86_64 unfortunately disables support for cmpxchg16 by default, making double-wide atomic operations fall back to using locks. We cannot currently override this on the package level, so stop providing double-wide atomics in this configuration by default.

To enable codegen support for double-wide atomics on Linux/x86_64, compile the package with `-Xcc -mcx16 -Xswiftc -DENABLE_DOUBLEWIDE_ATOMICS`.
2020-10-09 14:52:33 -07:00
Karoy Lorentey 34caa6fbd5 [test] Split basic tests into 25 separate test cases
This prevents an “unable to typecheck in reasonable time” error when compiling the test registry.

1612 tests under one test case is currently too many for swift-corelibs-xctest.

While we’re here, add explicit test cases for UnsafeRawPointer and Optional<UnsafeRawPointer>.
2020-10-09 14:48:50 -07:00
Karoy Lorentey 4fb7f05a27 Register all tests 2020-10-01 18:25:07 -07:00
Karoy Lorentey b97750eb18 Initial commit. 2020-10-01 16:57:36 -07:00