)]}' { "commit": "86ff26500ecb2c018575fdaa88096f6127d4c908", "tree": "93020bac4df198af6d1e07335f631f93c5e3874c", "parents": [ "784a94ee088501b00a1d15333e676d9338b8d09a" ], "author": { "name": "Daniel Latypov", "email": "dlatypov@google.com", "time": "Mon Oct 05 16:21:27 2020 -0700" }, "committer": { "name": "Daniel Latypov", "email": "dlatypov@google.com", "time": "Mon Jan 11 21:04:10 2021 +0000" }, "message": "kunit: add kunit/Kconfig and \u003ckunit/test.h\u003e to ease upgrade from alpha\n\nProvide macros to allow using KUNIT_EXPECT_EQ instead of EXPECT_EQ, etc.\nAnd add a Kconfig to allow users to modernize their KConfig.\n\nUpdate the example and template tests.\n\nWith this, the code can compile with a kunitconfig of\n CONFIG_KUNIT\u003dy\n CONFIG_KUNIT_TEST\u003dy\n CONFIG_KUNIT_EXAMPLE_TEST\u003dy\nwhich is exactly what the upstream version would use.\n\nUnfortunately we can\u0027t have \"struct kunit\" map back to \"struct test\"\nStuff that isn\u0027t upstream like \u003ctest/mock.h\u003e wasn\u0027t touched.\n\nThis should hopefully make it easier for alpha users to do partial,\nsimple migrations now.\nAnd it should make it a bit clearer what\u0027s not upstream.\n\nChange-Id: I9b13a871e527125e40969beefbc939f4c9e0801d\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "58217d43c4b906b6aa0d8e24fa24bda496409a89", "new_mode": 33188, "new_path": "include/kunit/test.h" }, { "type": "modify", "old_id": "a3928d4438b5008c1fa01470de11245d1557bc33", "old_mode": 33188, "old_path": "lib/Kconfig", "new_id": "8fb84d0889312875e549ac6e16dfe9abe5250210", "new_mode": 33188, "new_path": "lib/Kconfig" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "b333f65009fc4f93ffe039fcaf0432aca30dff10", "new_mode": 33188, "new_path": "lib/kunit/Kconfig" }, { "type": "modify", "old_id": "6f15cbb15d6b348282c3c9e45397e97b4bb0688a", "old_mode": 33188, "old_path": "test/example-test.c", "new_id": "8d743b3ecbbaebdb649a3d3637fb490e9dbff856", "new_mode": 33188, "new_path": "test/example-test.c" }, { "type": "modify", "old_id": "b2169cc61b45a2ff2c2726a81c71ace873409c51", "old_mode": 33188, "old_path": "tools/testing/kunit/test_template.c", "new_id": "6530334e4fbc1d1b2f0a1e7d631ef8f50f196a82", "new_mode": 33188, "new_path": "tools/testing/kunit/test_template.c" } ] }