-
Notifications
You must be signed in to change notification settings - Fork 18
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
12 changed files
with
505 additions
and
77 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 +1,20 @@ | ||
[package] | ||
name = "cargo-kcov" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
authors = ["kennytm <[email protected]>"] | ||
description = "Cargo subcommand to run kcov to get coverage report on Linux" | ||
repository = "https://github.com/kennytm/cargo-kcov" | ||
keywords = ["cargo", "subcommand", "kcov", "coverage"] | ||
license = "MIT" | ||
|
||
[dependencies] | ||
clap = "2.5.1" | ||
clap = "2.5.2" | ||
shlex = "0.1.1" | ||
term = "0.4.4" | ||
rustc-serialize = "0.3.19" # use serde instead? we just use it to parse a simple JSON... | ||
regex = "0.1.71" | ||
|
||
[dev-dependencies] | ||
rquery = "0.2.1" | ||
tempdir = "0.3.4" | ||
|
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 @@ | ||
fn main() {} |
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 @@ | ||
fn main() {} |
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,10 @@ | ||
extern crate cargo_kcov_test; | ||
|
||
fn main() { | ||
assert!(cargo_kcov_test::test_this_in_korean()); | ||
} | ||
|
||
#[test] | ||
fn test_korean() { | ||
main(); | ||
} |
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,15 @@ | ||
#!/bin/sh | ||
|
||
set -euo pipefail | ||
|
||
KCOV_VERSION=31 | ||
|
||
wget https://github.com/SimonKagstrom/kcov/archive/v${KCOV_VERSION}.tar.gz | ||
tar xzf v${KCOV_VERSION}.tar.gz | ||
cd kcov-${KCOV_VERSION} | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make | ||
cp src/kcov src/libkcov_sowrapper.so ~/.cargo/bin | ||
|
Oops, something went wrong.