Deepa,
You added this warning: pr_warn("Mounted %s file system at %s supports timestamps until ... along with timestamp clamping
I suggest that you implement kernel support check based on grepping for this warning after loop mounting an ext2 test image. A bit over the top and ugly, but the test should be reliable and mkfs.ext2 is probably available in all xfstest deployments.
xfs/049 makes use of an ext2 loop mount, so your test won't be the first one to use ext2 for testing other fs.
Ok, this can work. Let me give this a try.
Thanks, Deepa