HW2: A validator added and small changes

This commit is contained in:
2024-12-31 12:54:58 +02:00
parent 9dd3eb737f
commit 36de8d94fc
7 changed files with 131 additions and 66 deletions
+14 -10
View File
@@ -2,6 +2,10 @@
* \file
* \brief PDS HW2 tests
*
* To run these test execute:
* make tests
* mpirun -np <N> ./out/tests
*
* \author
* Christos Choutouridis AEM:8997
* <cchoutou@ece.auth.gr>
@@ -28,8 +32,8 @@ protected:
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
ts_mpi.rank_ = rank;
ts_mpi.size_ = size;
ts_mpi.rank(rank);
ts_mpi.size(size);
}
static void TearDownTestSuite() {
@@ -39,8 +43,8 @@ protected:
/*
* To run thiese test execute:
* mpirun -np <N> ./bit/tests
* MPI: SysTest (acceptance)
* Each process executes distBubbletonic for uin8_t [16]
*/
TEST_F(TMPIdistSort, distBubbletonic_test1) {
// Create and fill vector
@@ -80,8 +84,8 @@ TEST_F(TMPIdistSort, distBubbletonic_test1) {
}
/*
* To run thiese test execute:
* mpirun -np <N> ./bit/tests
* MPI: SysTest (acceptance)
* Each process executes distBubbletonic for uin32_t [1 << 16]
*/
TEST_F(TMPIdistSort, distBubbletonic_test2) {
// Create and fill vector
@@ -122,8 +126,8 @@ TEST_F(TMPIdistSort, distBubbletonic_test2) {
/*
* To run thiese test execute:
* mpirun -np <N> ./bit/tests
* MPI: SysTest (acceptance)
* Each process executes distBitonic for uin8_t [16]
*/
TEST_F(TMPIdistSort, distBitonic_test1) {
// Create and fill vector
@@ -163,8 +167,8 @@ TEST_F(TMPIdistSort, distBitonic_test1) {
}
/*
* To run thiese test execute:
* mpirun -np <N> ./bit/tests
* MPI: SysTest (acceptance)
* Each process executes distBitonic for uin32_t [1 << 16]
*/
TEST_F(TMPIdistSort, distBitonic_test2) {
// Create and fill vector