absolute paths in its test specifications . So instead of creating a file called test.spec , we'll create a file called test.spec.in , and use make to generate the test.spec file with absolute paths. test.spec.in {logdir, "@PATH@/log"}. {alias, app1, "@PATH@/lib/app1"}. {suites, app1, [module1_SUITE]}. Makefile src: erl -pa lib/*/ebin -make test.spec: test.spec.in