Import librt testcases from NetBSD

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>