From 984f6f94087a58ec9991ba275956f2f63efb518d Mon Sep 17 00:00:00 2001 From: pithikos Date: Fri, 6 Mar 2015 16:26:05 +0000 Subject: [PATCH] Small fixes --- tests/README.md | 2 ++ tests/memleaks.sh | 2 +- tests/normal_compile.sh | 8 ++++---- tests/optimized_compile.sh | 2 +- tests/pause_resume.sh | 2 +- tests/threadpool.sh | 2 +- tests/wait.sh | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/README.md b/tests/README.md index 3496718..54549ef 100644 --- a/tests/README.md +++ b/tests/README.md @@ -10,6 +10,8 @@ pause_resume - Will test the synchronisation of the threadpool from the user. wait - Will run tests to assuse that the wait() function works correctly. ```` +Any test can be run with extra flags by exporting the variable COMPILATION_FLAGS. That's +also how the optimized_compile test works. **Compilation cases** diff --git a/tests/memleaks.sh b/tests/memleaks.sh index 15c6ac2..39c0ac7 100755 --- a/tests/memleaks.sh +++ b/tests/memleaks.sh @@ -5,7 +5,7 @@ # valgrind is used so make sure you have it installed # -. funcs +. funcs.sh # ---------------------------- Tests ----------------------------------- diff --git a/tests/normal_compile.sh b/tests/normal_compile.sh index 3afe877..0e78eb0 100755 --- a/tests/normal_compile.sh +++ b/tests/normal_compile.sh @@ -8,9 +8,9 @@ # ---------------------------- Tests ----------------------------------- -. threadpool -. pause_resume -. memleaks -. wait +. threadpool.sh +. pause_resume.sh +. memleaks.sh +. wait.sh echo "No errors" diff --git a/tests/optimized_compile.sh b/tests/optimized_compile.sh index a476a02..8f28372 100755 --- a/tests/optimized_compile.sh +++ b/tests/optimized_compile.sh @@ -10,6 +10,6 @@ # ---------------------------- Tests ----------------------------------- COMPILATION_FLAGS='-g -O' -. normal_compile +. normal_compile.sh echo "No optimization errors" diff --git a/tests/pause_resume.sh b/tests/pause_resume.sh index 44c67e1..4cdd37c 100755 --- a/tests/pause_resume.sh +++ b/tests/pause_resume.sh @@ -5,7 +5,7 @@ # valgrind is used so make sure you have it installed # -. funcs +. funcs.sh # ---------------------------- Tests ----------------------------------- diff --git a/tests/threadpool.sh b/tests/threadpool.sh index 110c74b..e979d50 100755 --- a/tests/threadpool.sh +++ b/tests/threadpool.sh @@ -5,7 +5,7 @@ # might use in his/her code # -. funcs +. funcs.sh function test_mass_addition { #endsum #threads diff --git a/tests/wait.sh b/tests/wait.sh index ab25a8f..8259bcc 100755 --- a/tests/wait.sh +++ b/tests/wait.sh @@ -5,7 +5,7 @@ # valgrind is used so make sure you have it installed # -. funcs +. funcs.sh # ---------------------------- Tests -----------------------------------