Skip to content

Instantly share code, notes, and snippets.

@astraw38
Created July 10, 2017 13:50
Show Gist options
  • Save astraw38/9c9e62f4af218ddf762ba2a6d6a11fc8 to your computer and use it in GitHub Desktop.
Save astraw38/9c9e62f4af218ddf762ba2a6d6a11fc8 to your computer and use it in GitHub Desktop.
Kcov Duplicate File example
#!/bin/bash
echo "Hello world diffname"
#!/bin/bash
echo "Hello world 1"
#!/bin/bash
echo "Hello world 2"
@astraw38
Copy link
Author

To test:

mkdir out test1 test2 test3

mv test1.sh test1/test.sh
mv test2.sh test2/test.sh
mv diff.sh test3/diff.sh


kcov out test1/test.sh
kcov out test2/test.sh
## Check results here, see no data in out/kcov-merged, and only one test file

kcov out test3/diff.sh
## kcov-merged now populated with data from all 3 executions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment