test-release.sh: Add ability to do a test build using the trunk or branches.