270 Commits

Author SHA1 Message Date
Stone Tickle
ad2756f260
add missing copyright 2023-12-06 21:53:41 -05:00
Stone Tickle
f627ba159e
add a script module test 2023-12-06 21:41:10 -05:00
Stone Tickle
d2fc8afeca
make analyzer happy about 162 subir if_found 2023-12-06 16:55:03 -05:00
Stone Tickle
acd88ddf23
add dict delete 2023-11-30 13:12:20 -05:00
Stone Tickle
007229396d
fix fmt 2023-11-20 11:53:11 -05:00
Seedo Paul
a9eb180220
mod/python: add some test cases
Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-11-11 20:48:03 -05:00
Stone Tickle
6416305a94
reformat and fix issues with python module changes
- fix python3.find_python return type
- fix missing interp_args for language_version()
- add missing run_cmd_ctx_destroy
2023-10-19 22:34:37 -04:00
Stone Tickle
b102e40d5f
tests: add simple python test to keep track of progress 2023-10-19 22:33:55 -04:00
Stone Tickle
1348de5415
add copyright 2023-10-14 22:13:11 -04:00
Filipe Laíns
dddd4476dd
func/str: align str.substring out of bounds behavior with Meson
This is currently undefined behavior, but users are relying on it, so
let's align ourselves with Meson.

See https://github.com/mesonbuild/meson/issues/12370

Signed-off-by: Filipe Laíns <lains@riseup.net>
2023-10-14 21:53:51 -04:00
Seedo Paul
7e3dc9908a
mark 'nasm/2 asm language' as failing on non x86
Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-10-08 07:16:33 -04:00
Stone Tickle
381cedd0d2
update install check scripts 2023-10-03 13:35:26 -04:00
Stone Tickle
5de4d811b7
implement declare_dependency(objects:) 2023-10-03 13:35:25 -04:00
Stone Tickle
55ad6a9f16
update tests to 1.1.1 2023-10-03 13:35:20 -04:00
Stone Tickle
dc432474c0
muon fmt: editorconfig support 2023-04-24 19:40:10 -04:00
Stone Tickle
e98903dcdf
comment out pthread filtering from asm test
This behavior is an ugly hack in meson, and not documented.  It is also
trivially avoidable at the user level.  Based on this, I'm not going to
add it to muon for now at least.
2023-04-10 07:17:00 -04:00
Stone Tickle
43b38b73e4
update tests to meson 1.0.1 2023-04-10 06:23:03 -04:00
Stone Tickle
e59603b833
implement asm language 2023-01-14 21:10:02 -05:00
Stone Tickle
4d638b0f6c
update test check files 2023-01-14 21:10:02 -05:00
Stone Tickle
a31e229660
add new tests to project tests 2023-01-14 21:10:02 -05:00
Stone Tickle
98dc478edd
fix test 256 2023-01-14 21:10:01 -05:00
Stone Tickle
db3eaefbe1
update tests to 0.64 2023-01-14 21:09:58 -05:00
Stone Tickle
8f3cc57d47
add missing copyright notices 2022-12-19 09:09:43 -05:00
Stone Tickle
5362fa8b51
fix signature of thread entrypoint function 2022-12-17 20:23:59 -05:00
Stone Tickle
167c11c224
remove leftover p() invocations from tests 2022-12-17 16:33:46 -05:00
Stone Tickle
e67083d2e5
filter project tests without python
This will allow us to safely run project tests even when python isn't
installed.
2022-11-16 12:27:58 -05:00
Stone Tickle
79220ebe8c
add tests for muon fmt 2022-11-16 12:08:03 -05:00
Stone Tickle
6e7439660f
run muon fmt 2022-11-16 11:53:37 -05:00
Stone Tickle
4298aa2011
make muon reuse compliant
https://reuse.software
2022-10-25 10:54:31 -04:00
Stone Tickle
2021ab4aa1
fix compiler cache error result
- set the cache key earlier so that error returns have a key to cache
  the erroneous result with
- some returns must happen before the key is built, in which case we
  cannot cache the result, so just skip it
2022-10-06 21:12:21 -04:00
Stone Tickle
9918e4d60d
fix handling of quotes inside multiline strings 2022-10-06 21:01:00 -04:00
Stone Tickle
c97bf68a92
tap test support part 2 2022-10-04 20:30:00 -04:00
Stone Tickle
88dfcaa36c
remove debug message 2022-10-03 13:50:59 -04:00
Stone Tickle
43a1691c38
add a simple test_setup for valgrind 2022-09-29 14:36:07 -04:00
Stone Tickle
15d588c050
support test setups and timeout 2022-09-29 10:44:35 -04:00
Stone Tickle
768302c35b
comment out test depending on dependency('boost') 2022-09-21 07:02:36 -04:00
Stone Tickle
33b1a57396
add fuzzing run targets 2022-09-20 08:43:53 -04:00
Stone Tickle
3e179876c1
implement sourceset module 2022-09-16 20:18:38 -04:00
Stone Tickle
905f411d16
implement keyval module 2022-09-12 14:11:22 -04:00
Stone Tickle
05e699eaf4
port the lone path unit test to a lang test
This allows us to remove the unit test directory, and removes one of the
consumers of path.c.  Some of these functions may also be useful for
internal scripts.
2022-09-05 06:50:38 -05:00
Stone Tickle
c11e681606
make path optimization (./a/../b -> ./b) optional 2022-08-15 07:42:48 -05:00
Stone Tickle
75440d8b96
joining a path to '' appends a path separator
Some meson.builds intentionally do path / '' to add a '/' to the end of
path.  muon would end up stripping the trailing path separator in
path_normalize, so path / '' was a no-op.  Allow the meson behavior by
explicitly appending the '/' with path_add_suffix.
2022-08-12 19:50:37 -05:00
Stone Tickle
34b49183ec
fix path_normalize('/') -> ''
or: Don't Trim Trailing / if It is a Root Path
2022-08-12 19:49:26 -05:00
Stone Tickle
6b2758d39a
implement add_project_dependencies 2022-08-12 12:53:13 -05:00
Stone Tickle
664760ea4f
install refactor
- separate install functionality to install.c and
  functions/kernel/install.c
- remove specialized install functions that are only used in 1 place
- implement preserve_path for push_install_targets
2022-08-12 08:01:05 -05:00
Stone Tickle
bca734ec2a
update tests to 3fbcff1c 2022-08-11 14:36:51 -05:00
Stone Tickle
25f356b9e9
fix empty element in argv/env attempt #2
I tried to fix this by ending the argstr in a triple NUL, but that has
an edge case when the last element of argv is empty.  This time fix it
more robustly by tracking argc separately.
2022-08-04 17:48:46 -05:00
Stone Tickle
3955d14528
fix env.append/prepend
The initial env implementation assumed that append/prepend only worked
on values that were previously set in the environment() object.  In
reality, these are supposed to apply to the current environment if
the key has not been env.set() previously.
2022-08-04 07:42:05 -05:00
Stone Tickle
b44e90f0a9
support empty args & envvars with empty values
Due to the encoding of arguments and environment variables in run_cmd,
empty strings could not be handled.
2022-08-02 16:54:54 -05:00
Stone Tickle
6c502b961e
add obj_array_del() function
This is exposed internally as array.delete() for testing purposes only
2022-08-01 10:41:55 -05:00