smake: add test

Closes #30566.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>