Files
rocm-systems/tests/README.md
T

40 строки
513 B
Markdown
Исходник Обычный вид История

2016-01-26 20:14:33 -06:00
Tests uses CMAKE as teh build infrastructure.
Use :
2016-02-26 19:38:22 -06:00
```
$ mkdir build
$ cd build
$ cmake ../src
$ make
$ make test
```
2016-01-26 20:14:33 -06:00
#-----
2016-02-26 19:39:14 -06:00
### How to add a new test
2016-01-26 20:14:33 -06:00
2016-02-26 19:39:14 -06:00
edit src/CMakeFiles to add the test:
2016-01-26 20:14:33 -06:00
2016-02-26 19:39:14 -06:00
### add the executable and list of required CPP files, ie:
2016-02-26 19:38:22 -06:00
```
make_test (EXE CPP_FILES)
make_hip_executable (hipMemset hipMemset.cpp)
```
2016-01-26 20:14:33 -06:00
2016-02-26 19:39:14 -06:00
### Add to automated Test framework:
2016-02-26 19:38:22 -06:00
```
make_test (TESTNAME ARGS)
make_test(hipMemset " ")
```
2016-01-26 20:14:33 -06:00
2016-02-26 19:39:14 -06:00
### Running tests:
2016-02-26 19:38:22 -06:00
```
2016-01-26 20:14:33 -06:00
make test
2016-02-26 19:38:22 -06:00
```
2016-01-26 20:14:33 -06:00
# Run a specific test:
2016-02-26 19:38:22 -06:00
```
2016-01-26 20:14:33 -06:00
./hipMemset
2016-02-26 19:38:22 -06:00
```
2016-01-26 20:14:33 -06:00