Basic process is:
- Install prerequisite software
- clone the repository
make configure
(installs some other prereqs)make
(or make build - builds the repository)make test
(runs the STF sample tests)
These prereqs must be installed before attempting to build STF
- Apache Ant version 1.8.4 or later
- Java 8 or later (any implementation)
- GNU make version 3.79 or later
- GNU Wget (optional - only required if you want to install the other prereqs automatically)
- An internet connection is required
- Review the list of prereqs listed under 'Installing prereqs manually' and confirm that you accept their license terms.
git clone https://github.com/adoptium/STF.git stf
- Change into the stf.build directory
cd <git-root>;stf.build
make configure
- Create a systemtest_prereqs directory alongside the git repository directory - e.g. /home/user/systemtest_prereqs (alongside /home/user/git)
- Download and install the prereqs as described in the table below.
Dependency | License | Used by | Steps to obtain | Install instructions | Installed via make / ant configure? |
---|---|---|---|---|---|
apache-ant-1.10.1 | https://ant.apache.org/license.html | stf.build | Download from https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.1-bin.zip | Unzip to PREREQS_ROOT/apache-ant-1.10.1 | Yes |
log4j-2.16.0 | https://logging.apache.org/log4j/2.0/license.html | stf.* | Download from https://archive.apache.org/dist/logging/log4j/2.16.0/apache-log4j-2.16.0-bin.zip | Copy to PREREQS_ROOT/log4j-2.16.0/log4j-api-2.16.0.jar and PREREQS_ROOT/log4j-2.16.0/log4j-core-2.16.0.jar | Yes |
GNU make 3.79 or later | https://www.gnu.org/licenses/gpl.html | stf.build | Windows - Download from http://gnuwin32.sourceforge.net/packages/make.htm Unix: may already be installed on the test machine, a prebuilt version may already be available, otherwise build from source - see https://www.gnu.org/software/software.html |
Add GNU make to PATH (ahead of any native platform make) before executing make or make test, or copy make to PREREQS_ROOT/gmake/ where platform is linux_x86-32, linux_x86-64, linux_ppc-32, linux_390-31, linux_arm-32, win_x86-32, aix_ppc-64, zos_390-64 | No |
perl 5.6.1 or later | http://perldoc.perl.org/index-licence.html | stf.core | Windows - tests can be executed using Strawberry perl. Other perl implementations may be OK too. | Add to PATH | No |
Windows Sysinternals | https://technet.microsoft.com/en-us/sysinternals/bb469936.aspx | stf.core | Download from https://download.sysinternals.com/files/SysinternalsSuite.zip | Unzip to PREREQS_ROOT/windows_sysinternals | Yes |
wget | https://www.gnu.org/copyleft/gpl.html | stf.build | Windows - download from https://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-bin.zip | Add to PATH | No |
git clone https://github.com/adoptium/STF.git stf
- Change into the stf.build directory
cd <git-root>;stf.build
make
STF and STF test case development must be done in an Eclipse environment. STF uses the Eclipse metadata in the project .classpath files to work out the test dependencies, these are then translated into -classpath command line arguments when the tests execute outside of Eclipse.
- Create a new Eclipse workspace (once configured the workspace will reference multiple git repositories and a local directory containing the test prereqs).
- Install the prerequisites
- Follow the instructions above to install the prereqs which can't be installed by STF.
- Follow the instructions above to install the remaining prereqs manually or via the build scripts.
- Create a General Project in Eclipse called systemtest_prereqs
- File --> Import --> File System
- Select the directory containing the prereqs. Select import into the new systemtest_prereqs folder. Do not tick the 'Create top level folder' check box (otherwise you get an extra 'systemtest_prereqs' folder which you do not want).
git clone https://github.com/adoptium/STF.git stf
- Import the STF projects into Eclipse (Find and import Eclipse projects)
- Eclipse should now build the projects without errors (check the 'Problems' view).