diff mbox

allow to launch the test suite from the project root dir

Message ID 20161102232224.74747-1-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck Nov. 2, 2016, 11:22 p.m. UTC
The test suite must be run from the validation/ dir
which is sometimes slightly annoying.

Change that by letting the script to first do a cd to
the validation dir.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 validation/test-suite | 2 ++
 1 file changed, 2 insertions(+)

Comments

Christopher Li Nov. 17, 2016, 5:10 p.m. UTC | #1
On Thu, Nov 3, 2016 at 7:22 AM, Luc Van Oostenryck
<luc.vanoostenryck@gmail.com> wrote:
> The test suite must be run from the validation/ dir
> which is sometimes slightly annoying.
>
> Change that by letting the script to first do a cd to
> the validation dir.

Applied.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/validation/test-suite b/validation/test-suite
index 03421a24..9a033439 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -2,6 +2,8 @@ 
 
 #set -x
 
+cd $(dirname "$0")
+
 default_path=".."
 default_cmd="sparse \$file"
 tests_list=`find . -name '*.c' | sed -e 's#^\./\(.*\)#\1#' | sort`