-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update master-with-bazel from master branch
- Loading branch information
Showing
4 changed files
with
97 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
[ | ||
["crypto/crypto_test"], | ||
["crypto/crypto_test", "--gtest_also_run_disabled_tests", "--gtest_filter=RSATest.DISABLED_BlindingCacheConcurrency:BNTest.DISABLED_WycheproofPrimality"], | ||
["crypto/urandom_test"], | ||
["$OPENSSL_ia32cap=~0x4000000000000000", "crypto/urandom_test"], | ||
["crypto/crypto_test", "--fork_unsafe_buffering", "--gtest_filter=RandTest.*:-RandTest.Fork"], | ||
["decrepit/decrepit_test"], | ||
["ssl/ssl_test"] | ||
{ | ||
"cmd": ["crypto/crypto_test"] | ||
}, | ||
{ | ||
"cmd": ["crypto/crypto_test", "--gtest_also_run_disabled_tests", "--gtest_filter=BNTest.DISABLED_WycheproofPrimality"] | ||
}, | ||
{ | ||
"cmd": ["crypto/crypto_test", "--gtest_also_run_disabled_tests", "--gtest_filter=RSATest.DISABLED_BlindingCacheConcurrency"], | ||
"skip_sde": true | ||
}, | ||
{ | ||
"cmd": ["crypto/urandom_test"] | ||
}, | ||
{ | ||
"cmd": ["crypto/urandom_test"], | ||
"env": ["OPENSSL_ia32cap=~0x4000000000000000"] | ||
}, | ||
{ | ||
"cmd": ["crypto/crypto_test", "--fork_unsafe_buffering", "--gtest_filter=RandTest.*:-RandTest.Fork"] | ||
}, | ||
{ | ||
"cmd": ["decrepit/decrepit_test"] | ||
}, | ||
{ | ||
"cmd": ["ssl/ssl_test"] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Copyright (c) 2020, Google Inc. | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
* copyright notice and this permission notice appear in all copies. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ | ||
|
||
package testconfig | ||
|
||
import ( | ||
"encoding/json" | ||
"os" | ||
) | ||
|
||
type Test struct { | ||
Cmd []string `json:"cmd"` | ||
Env []string `json:"env"` | ||
SkipSDE bool `json:"skip_sde"` | ||
} | ||
|
||
func ParseTestConfig(filename string) ([]Test, error) { | ||
in, err := os.Open(filename) | ||
if err != nil { | ||
return nil, err | ||
} | ||
defer in.Close() | ||
|
||
decoder := json.NewDecoder(in) | ||
var result []Test | ||
if err := decoder.Decode(&result); err != nil { | ||
return nil, err | ||
} | ||
return result, nil | ||
} |