setup: optimize some tests

Optimize some tests.
setup: delete PKG_INFO

Delete PKG_INFO.
setup: pass input filename to awk

Pass input filename to awk.