ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pw_test.h
Go to the documentation of this file.
1#ifndef __PWTEST
2#define __PWTEST
3#include "gtest/gtest.h"
4#include <iostream>
5using namespace std;
8
9class PWTEST: public testing::Test
10{
11public:
12 static void SetUpTestCase()
13 {
14 if(rank_in_pool == 0)
15 {
16 cout<<"\033[32m"<<"============================"<<"\033[0m"<<endl;
17 cout<<"\033[32m"<<"= PW MODULE TEST START ="<<"\033[0m"<<endl;
18 cout<<"\033[32m"<<"============================"<<"\033[0m"<<endl;
19 }
20 }
21 static void TearDownTestCase()
22 {
23 if(rank_in_pool == 0)
24 {
25 cout<<"\033[32m"<<"============================"<<"\033[0m"<<endl;
26 cout<<"\033[32m"<<"= PW MODULE TEST END ="<<"\033[0m"<<endl;
27 cout<<"\033[32m"<<"============================"<<"\033[0m"<<endl;
28 }
29 }
30 void SetUp()
31 {
32 cout<<"\033[32m"<<"[ CASE ]"<<"\033[0m"<<" ";
33 }
34 void TearDown(){}
35};
36
37#endif
Definition pw_test.h:10
void TearDown()
Definition pw_test.h:34
void SetUp()
Definition pw_test.h:30
static void SetUpTestCase()
Definition pw_test.h:12
static void TearDownTestCase()
Definition pw_test.h:21
int rank_in_pool
Definition pw_test.h:6
string precision_flag
Definition pw_test.cpp:13
string device_flag
Definition pw_test.h:7
int nproc_in_pool
Definition pw_test.cpp:12
int rank_in_pool
Definition pw_test.h:6