Commit Graph

7 Commits

Author SHA1 Message Date
Adrian Bibby Walther
628076aeed
[rapidcheck] Update to 2023-01-13 (#29436)
* Updated rapidcheck to 2023-01-13.

* Updated version files.

* Add license note and quotes.

* Forgot to fix version DB :)

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-02-03 14:21:16 -08:00
Adrian Bibby Walther
0a365adc6e
[rapidcheck ] Update to 2021-12-20. (#22125)
* Updated rapidcheck to 2021-12-20.

* Updated version files.
2021-12-21 23:13:07 -05:00
Adrian Bibby Walther
38b19b5718
[rapidcheck] Update rapidcheck to 2021-10-10 (#22100)
* Updated rapidcheck port to 2021-10-10.

* Further updated rapidcheck for pull request.

* Apparently I `x-add-version`ed wrong the first time.
2021-12-20 11:37:07 -05:00
Billy O'Neal
b295670e4b
Bulk convert control files. (#19986)
```
function Convert-Control {
    Param($full)
    .\vcpkg.exe format-manifest $full
    $root = $full.Substring(0, $full.Length - 7) # CONTROL
    $new = $root + 'vcpkg.json'
    $content = Get-Content -Raw $new
    $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
    $oldVersion = $asJson['port-version']
    if ($null -eq $oldVersion) {
        $oldVersionFull = $asJson['version-string']
        Write-Host "Got version $oldVersionFull"
        $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
        if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
            $newFullVersion = [string]$match.Groups[1].Value
            $oldVersion = [int]$match.Groups[2].Value
            Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
            $newVersion = $oldVersion + 1
            $asJson['version-string'] = $newFullVersion
            Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
        } else {
            Write-Host "No previous version for $full -- setting 1"
            $newVersion = 1
        }
    } else {
        $newVersion = [int]$oldVersion + 1
        Write-Host "New version for $full : $newVersion"
    }

    $asJson['port-version'] = $newVersion

    $content = ConvertTo-Json $asJson -Depth 100
    Set-Content -Path $new -Value $content
    .\vcpkg.exe format-manifest $new
}

Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
    Convert-Control $_.FullName
}

git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
Eric Kilmer
2f52c7cbaa
[rapidcheck] Update and fix compiler error with clang-10 (#13143) 2020-08-27 22:16:03 -07:00
Lily
4694b885a2
[basisu, gppanel, msgpack11, nana, rapidcheck, folly] Fix std function build error (#11494) 2020-05-26 22:13:00 -07:00
Stefan Ivanov
40af541c50 [rapidcheck] Add initial support for RapidCheck (#4605)
* Add initial support for RapidCheck

Create a portfile for the C++ property-based testing library RapidCheck.
This port is relatively straight forward but there are a couple of caveats:
 * The current port uses a branch from a fork that I modified as the CMake installation logic had some problems.
   The library was almost exclusively used by being added as a subfolder so the CMake export machinery was probably not well tested.
 * The changes are going to get merged into the main repository eventually and then it would be possible to change where the source
   code is downloaded.

I am unaware when the main RapidCheck library maintainer will accept my pull request, so it is better to have this library in VCPKG
sooner, rather than later.

* Update the RapidCheck portfile to download the library sources for the main repository

 * Since the maintainer of RapidCheck very quickly merged the required CMake modifications
   to enable the proper installation of the library, it is better to now use the official
   repository's master branch.
 * Change the versioning of the library to be based on the date of the git reference chosen
   since rapid check does not have an explicit versioning scheme.

* Update rapidcheck and modify configuration step

* [rapidcheck] Tidy
2018-11-07 23:44:36 -08:00