This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
12 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 |
---|---|---|
|
@@ -63,4 +63,4 @@ cobertura.xml | |
|
||
fuzz/Cargo.lock | ||
fuzz/artifacts | ||
fuzz/hfuzz_* | ||
hfuzz_* |
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
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,30 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import subprocess | ||
import os | ||
import os.path as osp | ||
|
||
KM_ENV = 'KM_ENCLAVE_PATH' | ||
RUSTFLAGS_ENV = 'RUSTFLAGS' | ||
This comment has been minimized.
Sorry, something went wrong. |
||
REPO_ROOT = osp.abspath(osp.join(osp.dirname(__file__), '..')) | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('target', help='The name of the fuzz target to run') | ||
args = parser.parse_args() | ||
run(f'cargo hfuzz run {args.target}') | ||
|
||
|
||
def run(cmd): | ||
env = dict(os.environ) | ||
if KM_ENV not in env: | ||
env[KM_ENV] = osp.join(REPO_ROOT, '.ekiden', 'target', | ||
'x86_64-fortanix-unknown-sgx', 'debug', | ||
'ekiden-keymanager-runtime.sgxs') | ||
subprocess.run(cmd, env=env, cwd=REPO_ROOT, shell=True, check=True) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file was deleted.
Oops, something went wrong.
this is unused