1
2013-07-17 James Hunt <james.hunt@ubuntu.com>
3
* init/tests/test_state.c:
4
- test_session_serialise(): Added new test "Ensure session
5
deserialisation does not create JobClasses" to assert
6
new session deserialisation behaviour.
7
- test_session_upgrade2(): Finished writing this test - it now creates
8
a fake chroot path, updates the JSON so that all references to the
9
chroot session refer to the temporary chroot path, creates 2 jobs
10
and then performs the serialisation/deserialisation.
11
* init/tests/test_util.c:
14
- Added log_unflushed_files.
15
- clean_env(): New function that re-initialises the common
17
* test/test_util_common.c: search_and_replace(): New function.
19
2013-07-16 James Hunt <james.hunt@ubuntu.com>
21
* init/tests/data/upstart-session2.json: New JSON used by
22
test_session_upgrade2().
23
* init/Makefile.am: Added upstart-session.json and upstart-session2.json
25
* init/conf.c: conf_source_deserialise_all(): Assert that no conf
26
sources have yet been deserialised since now session deserialisation
27
avoids creating chroot conf sources (see below).
28
* init/job_class.c: job_class_deserialise_all(): Formatting.
29
* init/session.c: session_deserialise_all(): Don't create ConfSources
30
for each Session (since they are not actually used).
31
* init/tests/test_state.c:
32
- test_upgrade(): Call ensure_env_clean() both before each test and
33
after the last test to ensure it left the environment clean.
34
- test_session_upgrade(): Clear up sessions.
35
- test_session_upgrade2(): New test.
36
* init/tests/test_util.c: ensure_env_clean(): New function abstracted
37
from code in test_upgrade().
39
2013-07-15 James Hunt <james.hunt@ubuntu.com>
42
- state_deserialise_resolve_deps(): Look up class
43
conventionally using name and session since existing indexing
44
code unreliable as referencing a hash.
45
- state_index_to_job_class(): Removed.
46
* init/tests/test_state.c: test_session_upgrade(): Add check to ensure
47
session job with same name as NULL session job does not stop latter
50
2013-07-12 Dmitrijs Ledkovs <xnox@ubuntu.com>
52
* init/tests/data: upstart-session.json: add stateful re-exec
53
tests with chroot session. (LP: #1200264)
55
* init/state.c: state_deserialise_resolve_deps(): properly account
56
at dependency resolution stage for skipped job_classes from chroot
57
sessions when those got deserialised. Fixes above unit test.
59
2013-07-11 James Hunt <james.hunt@ubuntu.com>
61
* init/conf.c: conf_source_deserialise_all(): Assert that any
62
existing ConfSources relate to chroot sessions, created as
63
part of the earlier Session deserialisation. (LP: #1199778)
64
* init/state.c: Formatting.
1
66
2013-06-05 James Hunt <james.hunt@ubuntu.com>
3
68
* init/tests/data/upstart-1.8+apparmor.json: New test data file.
225
290
2013-04-30 James Hunt <james.hunt@ubuntu.com>
292
* init/Makefile.am: Added test_main.
293
* init/tests/test_main.c: New test.
294
* init/tests/test_job_process.c: strcmp_compar() moved to test_util.c.
295
* util/tests/test_initctl.c: strcmp_compar() removed.
296
* init/xdg.c: Disable loading of jobs from SYSTEM_USERCONFDIR if
297
"UPSTART_NO_SYSTEM_USERCONFDIR" envvar set (required for testing).
298
* test/test_util.c: Added strcmp_compar() and get_session_file().
299
* util/tests/test_initctl.c: Use get_session_file().
301
2013-04-30 James Hunt <james.hunt@ubuntu.com>
303
* Makefile.am: Added 'test'.
304
* configure.ac: Added 'test/Makefile'.
305
* init/Makefile.am: Depend on test_util archive rather than source
307
* init/state.c: Added missing config.h include.
308
* util/Makefile.am: Depend on test_util archive rather than source
310
* util/tests/test_initctl.c: Moved common utility code to
311
test/test_util.c and replaced INITCTL_BINARY by get_initctl_binary().
312
* test/test_util.[ch]: New location for init/tests/test_util.[ch] to
313
allow all tests access to common functionality.
315
2013-04-30 James Hunt <james.hunt@ubuntu.com>
227
317
* init/job.c: job_serialise_all(): Really serialise all JobClasses,
228
318
* init/main.c: Add 'write-state-file' command-line option.
229
319
regardless of whether they have associated Jobs.