use perl one-liner to do batch testing
refine test in makefile