Skip to content

Commit

Permalink
Add `tools/ and move scripts
Browse files Browse the repository at this point in the history
- addressing #89 (Re-organize repository with more sub-folders)
  • Loading branch information
dschlaep committed Jul 25, 2019
1 parent 6e6bf27 commit cadf3a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ Run unit tests locally on the command-line with
```

If you want to run unit tests repeatedly (e.g., to sample a range of
random numbers), then you may use the bash-script `many_test_runs.sh` which
runs `N` number of times and reports only unit test failures, e.g.,
random numbers), then you may use the bash-script `tools/many_test_runs.sh`
which runs `N` number of times and reports only unit test failures, e.g.,
```{.sh}
./many_test_runs.sh # will run a default (currently, 10) number of times
N=3 ./many_test_runs.sh # will run 3 replicates
./tools/many_test_runs.sh # will run a default (currently, 10) number of times
N=3 ./tool/many_test_runs.sh # will run 3 replicates
```

<br>
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ cov : cov_clean $(lib_gtest) $(lib_target_cov)
.PHONY : cov_run
cov_run : cov
./$(bin_test)
./run_gcov.sh
./tools/run_gcov.sh



Expand Down
3 changes: 1 addition & 2 deletions many_test_runs.sh → tools/many_test_runs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# N=3 ./many_test_runs.sh: run unit tests repeatedly and report failures only
# N=3 ./tools/many_test_runs.sh: run unit tests repeatedly and report failures
# $N number of test runs; default 10 if empty or unset

iters=${N:-10}
Expand All @@ -22,4 +22,3 @@ for i in $(seq 1 $iters); do
done

echo $(date): Completed ${iters} test replicates.

File renamed without changes.

0 comments on commit cadf3a5

Please sign in to comment.