Test meta-data Notes

From eLinux.org
Jump to: navigation, search

Here is information about general test meta-data issues:

LTP is proposing a meta-data syntax in JSON, like the following:

 "testcaseXY.c": {
  "needs_root": "1",
  "needs_device": "1",
  "dev_min_size": "1024",
  "dev_fs_type": "ext4",
  "restore_wallclock": "1",
  "needs_drivers": [
    "uinput",
    "NULL"
  ],
  "needs_kconfigs": [
    "CONFIG_X86_INTEL_UMIP=y",
    "NULL"
  ],
  "tags": [
    [
     "linux-git",
     "43a6684519ab"
    ],
    [
     "CVE",
     "2017-2671"
    ],
    [
     "NULL",
     "NULL"
    ]
   ],
  "doc": [
    " Test description",
    "",
    " This is a test description.",
    " Consisting of several lines."
  ],
  "fname": "testcases/kernel/syscalls/foo/testcaseXY.c"
 },