diff --git a/bin/run-tests b/bin/run-tests index d3260e1a1..c133db426 100755 --- a/bin/run-tests +++ b/bin/run-tests @@ -28,7 +28,7 @@ execute_test () { echo "Running tests for ${exercise_name}"; #remove the ignore line - sed -i 's/TEST_IGNORE();//' ./test_*.c + sed -i='' 's/TEST_IGNORE();//' ./test_*.c # Copy the examples with the correct name for the exercise if [ -e ".meta/example.c" ] @@ -56,14 +56,15 @@ copy_exercises () { then local directory="${1}" shift - echo "Copying ${directory} exercises ${*}" mkdir -p "build/${directory}" if [ $# -gt 0 ] then + echo "Copying ${directory} exercises ${*}" cd "exercises/${directory}" cp -r "$@" "../../build/${directory}/" cd "../.." else + echo "Copying all ${directory} exercises" cp -r "exercises/${directory}" "build" fi fi diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 30e99797e..46b22ca5a 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -176,7 +176,7 @@ Firstly make sure you have the necessary applications installed (such as `clang- If you'd like to run only some of the tests to check your work, you can specify them as arguments to the run-tests script. ```bash -~/git/c$ ./bin/run-tests acronym all-your-base allergies +~/git/c$ ./bin/run-tests -p -e acronym -e all-your-base -e allergies ``` ## Test Runner