[arrayfire] 70/84: TEST Rename test/unified.cpp to test/backend.cpp
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository arrayfire.
commit 5df0b29126c28cbe9fd7b3a226643efdc45349d4
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Dec 29 16:22:33 2015 -0500
TEST Rename test/unified.cpp to test/backend.cpp
---
test/{unified.cpp => backend.cpp} | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/test/unified.cpp b/test/backend.cpp
similarity index 84%
rename from test/unified.cpp
rename to test/backend.cpp
index fc9ec02..59b8fd5 100644
--- a/test/unified.cpp
+++ b/test/backend.cpp
@@ -33,7 +33,7 @@ void testFunction()
if(outArray != 0) ASSERT_EQ(AF_SUCCESS, af_release_array(outArray));
}
-void unifiedTest()
+void backendTest()
{
int backends = af::getAvailableBackends();
@@ -42,27 +42,25 @@ void unifiedTest()
bool opencl = backends & AF_BACKEND_OPENCL;
if(cpu) {
- printf("Running CPU Backend...\n");
+ printf("\nRunning CPU Backend...\n");
af::setBackend(AF_BACKEND_CPU);
testFunction<float>();
}
if(cuda) {
- printf("Running CUDA Backend...\n");
+ printf("\nRunning CUDA Backend...\n");
af::setBackend(AF_BACKEND_CUDA);
testFunction<float>();
}
if(opencl) {
- printf("Running OpenCL Backend...\n");
+ printf("\nRunning OpenCL Backend...\n");
af::setBackend(AF_BACKEND_OPENCL);
testFunction<float>();
}
-
- af::setBackend(AF_BACKEND_DEFAULT);
}
-TEST(UNIFIED_TEST, Basic)
+TEST(BACKEND_TEST, Basic)
{
- unifiedTest();
+ backendTest();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list