mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib/tests: fix tests and test list location
The igt_command_line.sh script was moved by commit 685e577 (Move library
selftests to lib/tests), but the location of the tests and the test
lists was not updated.
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -25,17 +25,23 @@
|
||||
# Check that command line handling works consistently across all tests
|
||||
#
|
||||
|
||||
for test in `cat single-tests.txt multi-tests.txt`; do
|
||||
TESTLIST=`cat $top_builddir/tests/single-tests.txt $top_builddir/tests/multi-tests.txt`
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Could not read test lists"
|
||||
exit 99
|
||||
fi
|
||||
|
||||
for test in $TESTLIST; do
|
||||
|
||||
if [ "$test" = "TESTLIST" -o "$test" = "END" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
# if the test is a script, it will be in $srcdir
|
||||
if [ ! -x $test ]; then
|
||||
if [ -x $srcdir/$test ]; then
|
||||
test=$srcdir/$test
|
||||
fi
|
||||
if [ -x $top_builddir/tests/$test ]; then
|
||||
test=$top_builddir/tests/$test
|
||||
else
|
||||
# if the test is a script, it will be in $srcdir
|
||||
test=$top_srcdir/tests/$test
|
||||
fi
|
||||
|
||||
echo "$test:"
|
||||
|
||||
Reference in New Issue
Block a user