diff options
-rwxr-xr-x | tests/generate_testlist.sh | 9 | ||||
-rw-r--r-- | tests/meson.build | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/tests/generate_testlist.sh b/tests/generate_testlist.sh index 6ea78655..a0d53e9f 100755 --- a/tests/generate_testlist.sh +++ b/tests/generate_testlist.sh @@ -1,10 +1,13 @@ #!/bin/bash -echo TESTLIST > $MESON_BUILD_ROOT/tests/test-list.txt +OUTPUT=$1 +shift + +echo TESTLIST > $OUTPUT while [[ $# -gt 0 ]] ; do - echo $1 >> $MESON_BUILD_ROOT/tests/test-list.txt + echo $1 >> $OUTPUT shift done -echo END TESTLIST >> $MESON_BUILD_ROOT/tests/test-list.txt +echo END TESTLIST >> $OUTPUT diff --git a/tests/meson.build b/tests/meson.build index 6feaafe3..4f636352 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -270,7 +270,14 @@ executable('testdisplay', ['testdisplay.c', 'testdisplay_hotplug.c'], install : true) test_progs += 'testdisplay' -run_command('generate_testlist.sh', test_progs) +pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), 'intel-gpu-tools') + +gen_testlist = find_program('generate_testlist.sh') +custom_target('testlist', + output : 'test-list.txt', + command : [ gen_testlist, '@OUTPUT@', test_progs ], + install : true, + install_dir : pkgdatadir) test_script = find_program('igt_command_line.sh') foreach prog : test_progs |