and Amit Langote's set of patches posted on 15th Sept. 2016 [1]
I have applied your patch on top of Amit patches posted on 15th Sept. 2016, and tried to create some test cases on list and multi-level partition based on test cases written for range partition.
I got some server crash and errors which I have mentioned as comment in expected output file, which need to be updated once these issues will get fix. also for these issue expected output is generated by creating same query for non-partition table with same data.
Attached patch created on top to Ashutosh's patch posted on 22 Sept 2016.