Conor Hughes
e28e530d54
additional missed fixes for yap update
2023-05-09 10:23:11 -07:00
Conor Hughes
0d4d3954da
NetBSD test fixes
2023-05-09 09:58:49 -07:00
Conor Hughes
e5c8790d7b
update yap
2023-05-09 09:56:43 -07:00
Conor Hughes
b6a3e7f39f
add missing NULL terminator for execv; don't generate cores for multiprocess tests, which abort()
2022-12-12 19:05:53 -08:00
Conor Hughes
81137bfb21
fix C++ goop just added
...
sigh
2022-10-10 19:13:03 -07:00
Conor Hughes
53c8c8a8dd
add some C++ goop to make managing test suite context easier
2022-10-10 18:56:16 -07:00
Conor Hughes
5875370db6
check for clang before checking gcc < 4.8 path for __STDC_NO_ATOMICS__
...
Apparently clang is GCC 4.2 forever.
2022-09-27 08:48:16 -07:00
Conor Hughes
e8c9f1872a
don't use sys/sysctl.h unless needed
2022-05-31 10:35:21 -07:00
Conor Hughes
4f778d1e3c
use == in YR_ASSERT_EQUAL and != in YR_ASSERT_NOT_EQUAL
2022-05-29 12:30:16 -07:00
Conor Hughes
d0a2dff7e9
set close-on-exec flag on socket in inferior
...
This prevents a process the inferior forks (and execs) in turn from
holding the socket open, preventing the superior from noticing a crash.
2022-03-12 22:08:54 -08:00
Conor Hughes
ca6bc5f41d
add yr_create_blank_suite_with_extra_bytes
...
it does what it says on the tin.
2021-12-11 23:08:09 -08:00
Conor Hughes
91fa9d4833
Merge branch 'script_helpers'
2021-12-04 23:18:00 -08:00
Conor Hughes
554275f069
linux fixes for script helpers
2021-12-04 23:16:41 -08:00
Conor Hughes
bb07e35925
add script invocation helpers
2021-12-04 23:10:36 -08:00
Conor Hughes
69dc2817a4
pass LDFLAGS to link script
2021-02-24 21:31:33 -08:00
Conor Hughes
0aeb702b4a
support a new YR_RUNTESTS_GLOB environment variable
...
This allows for specifying this variable before, say, a `make`
invocation which ends up invoking yr_runtests to run some tests, in
order to easily filter the tests. For now it supports just one glob.
2020-08-15 11:56:29 -07:00
Conor Hughes
b5c6fb9def
exchange link order to fix build on whatever linux travis uses
2020-07-14 17:03:22 -07:00
Conor Hughes
9d94f13ca3
Merge branch 'yap'
2020-07-05 23:09:03 -07:00
Conor Hughes
29d8d59633
add yap/generate_dylibname.sh and use it
2020-06-28 22:00:20 -07:00
Conor Hughes
d5186aefa1
give absolute path to -L
...
this will result in a non-relative rpath
2020-06-28 21:44:25 -07:00
Conor Hughes
e974984a72
pass --dl to linking tests, as they invoke dl* stuff
2020-06-28 21:41:45 -07:00
Conor Hughes
5af552888d
initial yap conversion
2020-06-28 21:39:27 -07:00
Conor Hughes
7da759f5f2
FreeBSD fixes
2020-06-21 17:14:49 -07:00
Conor Hughes
40653f69c0
clean up invoke_case
2019-12-20 12:43:45 -08:00
Conor Hughes
1e49289122
refactor yr_runtests
...
factor out arg parsing to make main more grokkable
2019-12-20 00:31:32 -08:00
Conor Hughes
65de4e7d5b
correct jump targets on error path of yr_spawn_inferior
...
avoid destroying a posix_spawn_file_actions that isn't initialized.
2019-12-19 18:55:13 -08:00
Conor Hughes
7b3ed19ffa
update version to 1.2.0
...
onward
2019-11-24 16:04:59 -08:00
Conor Hughes
8c8e7e7e64
make glob selector vtable const
2019-11-05 18:33:52 -08:00
Conor Hughes
4f8dfac093
combine two fprintf calls in emit_diagnostic
2019-11-02 12:52:57 -07:00
Conor Hughes
031f23ea74
warning fixes for -Wextra
...
comparing integers of different signedness.
2019-09-28 11:53:48 -07:00
Conor Hughes
a6bad81aca
change initialization to avoid GNU extensions
2019-09-28 11:46:40 -07:00
Conor Hughes
293466968b
use \033, not \e (nonstandard) for ASCII ESC
2019-09-28 11:39:40 -07:00
Conor Hughes
dd78b59781
pedantic change to avoid jumping over variable declaration
...
Also init it, though using it uninitialized is in fact impossible.
2019-09-28 11:35:12 -07:00
Conor Hughes
44b87465da
pedantic size conversion clarity change
2019-09-28 11:34:56 -07:00
Conor Hughes
232ba55f71
results.c: update comment, cosmetic line break
2019-09-28 11:23:42 -07:00
Conor Hughes
5c8fb302fa
cleanup system header includes from yachtrock headers
2019-09-21 16:07:57 -07:00
Conor Hughes
58987eea9f
support colored output via ANSI terminal color codes
2019-09-21 15:44:47 -07:00
Conor Hughes
7c48378e47
more constification
2019-08-16 18:36:34 -07:00
Conor Hughes
8a6ba9f44a
Factor out buffer size into #define as intended
2019-08-01 15:23:16 -07:00
Conor Hughes
f7386f4e5b
update version to 1.1.0
2019-07-31 19:06:42 -07:00
Conor Hughes
3cade55e11
don't call posix_spawn_file_actions_destroy on uninitialized variables
...
resolves #7
2019-07-31 19:05:21 -07:00
Conor Hughes
681e8ef1fa
Merge branch 'debugger'
...
Resolves #8
2019-07-31 18:57:49 -07:00
Conor Hughes
c45dc99b1a
use different prompt if we don't know how to check for a debugger
2019-07-31 18:56:43 -07:00
Conor Hughes
6ae3989cd3
wait for debugger in inferior if YR_DEBUG_INFERIOR is set
...
This maakes it easier to debug multiprocess testing.
This only has debugger detection for macOS and linux at the moment;
otherwise you must send SIGCONT to the inferior.
2019-07-31 18:54:37 -07:00
Conor Hughes
8976db51ff
avoid gcc warnings about unbalanced ' in #error
2019-07-31 18:25:33 -07:00
Conor Hughes
d920ff28a6
retry select on EINTR
2019-07-30 18:50:26 -07:00
Conor Hughes
2ba2b7b48c
rework how SIGPIPE is avoided to centralize platform logic
2019-07-24 19:01:52 -07:00
Conor Hughes
94c01afe51
minor updates from stricter compiler warnings
2019-07-24 18:45:25 -07:00
Conor Hughes
fe887a8fa8
add some header documentation
2019-07-17 18:06:42 -07:00
Conor Hughes
c915f3777b
add makefile-gmake emacs mode lines
...
why not, I make the rules
2019-07-07 22:53:08 -07:00