-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test/system: Connect system tests to Meson #1062
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,8 @@ subid_dep = cc.find_library('subid', has_headers: ['shadow/subid.h']) | |
go = find_program('go') | ||
go_md2man = find_program('go-md2man') | ||
|
||
bats = find_program('bats', required: false) | ||
codespell = find_program('codespell', required: false) | ||
htpasswd = find_program('htpasswd', required: false) | ||
openssl = find_program('openssl', required: false) | ||
podman = find_program('podman', required: false) | ||
shellcheck = find_program('shellcheck', required: false) | ||
skopeo = find_program('skopeo', required: false) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the case of Podman and Skopeo, they aren't just dependencies for the test suite, but also runtime dependencies for the main There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moving the |
||
|
||
bashcompletionsdir = get_option('bash_completions_dir') | ||
if bashcompletionsdir == '' | ||
|
@@ -84,29 +79,6 @@ if shellcheck.found() | |
test('shellcheck toolbox (deprecated)', shellcheck, args: [toolbox_sh]) | ||
endif | ||
|
||
install_subdir( | ||
'test', | ||
install_dir: get_option('datadir') / meson.project_name(), | ||
exclude_files: [ | ||
'system/libs/bats-assert/.git', | ||
'system/libs/bats-assert/.gitignore', | ||
'system/libs/bats-assert/.travis.yml', | ||
'system/libs/bats-assert/package.json', | ||
'system/libs/bats-support/.git', | ||
'system/libs/bats-support/.gitignore', | ||
'system/libs/bats-support/.travis.yml', | ||
'system/libs/bats-support/package.json' | ||
], | ||
exclude_directories: [ | ||
'system/libs/bats-assert/.git', | ||
'system/libs/bats-assert/script', | ||
'system/libs/bats-assert/test', | ||
'system/libs/bats-support/.git', | ||
'system/libs/bats-support/script', | ||
'system/libs/bats-support/test' | ||
] | ||
) | ||
|
||
subdir('data') | ||
subdir('doc') | ||
subdir('profile.d') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
test_system_libs_dir = test_system_dir / 'libs' | ||
|
||
test_system_libs_files = files( | ||
'helpers.bash' | ||
) | ||
|
||
install_data( | ||
install_dir: test_system_libs_dir, | ||
sources: test_system_libs_files | ||
) | ||
|
||
install_subdir( | ||
'bats-support', | ||
install_dir: test_system_libs_dir, | ||
exclude_files: [ | ||
'.git', | ||
'.gitignore', | ||
'.travis.yml', | ||
'package.json' | ||
], | ||
exclude_directories: [ | ||
'.git', | ||
'script', | ||
'test' | ||
] | ||
) | ||
|
||
install_subdir( | ||
'bats-assert', | ||
install_dir: test_system_libs_dir, | ||
exclude_files: [ | ||
'.git', | ||
'.gitignore', | ||
'.travis.yml', | ||
'package.json' | ||
], | ||
exclude_directories: [ | ||
'.git', | ||
'script', | ||
'test' | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really necessary to move them? Isn't it a lot more obvious to have all the dependencies listed in the top level
meson.build
? Otherwise, distributors will have to go through all themeson.build
files, which most won't do.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not necessary. To me it made sense to have purely testing dependencies specified in the
test
subdirectory. I can move those back to the root build file.