~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Steve Langasek
  • Date: 2013-11-07 03:06:51 UTC
  • Revision ID: steve.langasek@canonical.com-20131107030651-f1jzeyi7ifvvw1h8
Attempt to cherry-pick fixes for bug #1199778 to raring; something is still
missing though, the test suite segfaults on one of the json loads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2013-07-17  James Hunt  <james.hunt@ubuntu.com>
 
2
 
 
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:
 
12
          - ensure_env_clean():
 
13
            - Comments.
 
14
            - Added log_unflushed_files.
 
15
          - clean_env(): New function that re-initialises the common
 
16
            data structures.
 
17
        * test/test_util_common.c: search_and_replace(): New function.
 
18
 
 
19
2013-07-16  James Hunt  <james.hunt@ubuntu.com>
 
20
 
 
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
 
24
          to TEST_DATA_FILES.
 
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().
 
38
 
 
39
2013-07-15  James Hunt  <james.hunt@ubuntu.com>
 
40
 
 
41
        * init/state.c:
 
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
 
48
          being deserialised.
 
49
 
 
50
2013-07-12  Dmitrijs Ledkovs  <xnox@ubuntu.com>
 
51
 
 
52
        * init/tests/data: upstart-session.json: add stateful re-exec
 
53
        tests with chroot session. (LP: #1200264)
 
54
 
 
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.
 
58
 
 
59
2013-07-11  James Hunt  <james.hunt@ubuntu.com>
 
60
 
 
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.
 
65
 
1
66
2013-06-05  James Hunt  <james.hunt@ubuntu.com>
2
67
 
3
68
        * init/tests/data/upstart-1.8+apparmor.json: New test data file.
224
289
 
225
290
2013-04-30  James Hunt  <james.hunt@ubuntu.com>
226
291
 
 
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().
 
300
 
 
301
2013-04-30  James Hunt  <james.hunt@ubuntu.com>
 
302
 
 
303
        * Makefile.am: Added 'test'.
 
304
        * configure.ac: Added 'test/Makefile'.
 
305
        * init/Makefile.am: Depend on test_util archive rather than source
 
306
          files.
 
307
        * init/state.c: Added missing config.h include.
 
308
        * util/Makefile.am: Depend on test_util archive rather than source
 
309
          files.
 
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.
 
314
 
 
315
2013-04-30  James Hunt  <james.hunt@ubuntu.com>
 
316
 
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.