How can I have Meson reconize custom media files for testing? #13623
Unanswered
dreamer-coding
asked this question in
Q&A
Replies: 3 comments 6 replies
-
This seems to work so far: fs = import('fs')
data = [
'delete_command.crabql',
'insert_commands.crabql',
'select_command.crabql',
'sort_key_command.crabql',
'test_condition_met.crabql',
'test_condition_not_met.crabql',
'test_invalid.txt',
'test_unknown_command.crabql',
'test_valid.crabql',
'update_command.crabql'
]
foreach iter : data
fs.copyfile(iter, iter)
endforeach |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm assuming that your test programs expect to find test files in a certain directory, like the one it's run in (the link you gave provides a 404)? |
Beta Was this translation helpful? Give feedback.
2 replies
-
You haven't really explained what the problem is. You described something you have tried so far, but then say "It seems to fail" without a description of what, precisely, failed. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Building a database system and would like to have the test use the example files in the test data directory, how can I do this with Meson 1.3.0 and newer?
Build file for reference, located in the test directory along with sub directories for test data and scripts:
https://github.com/dreamer-coding/fossil-crabdb/blob/crabdb_prod/code/tests/meson.build
In addition to setting up test data I'm also wondering how would I use media files in a given Meson build project that would make use of database files and other types of media.
Beta Was this translation helpful? Give feedback.
All reactions