2016-01-26 20:14:33 -06:00
|
|
|
Tests uses CMAKE as teh build infrastructure.
|
|
|
|
|
|
|
|
|
|
Use :
|
|
|
|
|
|
2016-02-11 13:06:58 +05:30
|
|
|
> mkdir build
|
|
|
|
|
> cd build
|
|
|
|
|
> cmake ../src
|
2016-02-10 20:05:59 +08:00
|
|
|
> make
|
2016-01-26 20:14:33 -06:00
|
|
|
> make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-----
|
|
|
|
|
# How to add a new test;
|
|
|
|
|
|
|
|
|
|
# edit src/CMakeFiles to add the test:
|
|
|
|
|
|
|
|
|
|
# add the executable and list of required CPP files, ie:
|
|
|
|
|
# make_test (EXE CPP_FILES)
|
|
|
|
|
> make_hip_executable (hipMemset hipMemset.cpp)
|
|
|
|
|
|
|
|
|
|
# Add to automated Test framework:
|
|
|
|
|
# make_test (TESTNAME ARGS)
|
|
|
|
|
> make_test(hipMemset " ")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Running tests:
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
# Run a specific test:
|
|
|
|
|
./hipMemset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|