Skip to content

Commit

Permalink
remove redundant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Oct 31, 2024
1 parent 22db98d commit 6a95852
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 43 deletions.
3 changes: 2 additions & 1 deletion cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ ConfigureTest(
###################################################################################################
# - HETEROGENEOUS BIASED NBR SAMPLING tests -------------------------------------------------------
ConfigureTest(
HETEROGENEOUS_BIASED_NEIGHBOR_SAMPLING_TEST sampling/heterogeneous_biased_neighbor_sampling.cpp)
HETEROGENEOUS_BIASED_NEIGHBOR_SAMPLING_TESTT sampling/heterogeneous_biased_neighbor_sampling.cpp
GPUS 1 PERCENT 75)

###################################################################################################
# - SAMPLING_POST_PROCESSING tests ----------------------------------------------------------------
Expand Down
16 changes: 3 additions & 13 deletions cpp/tests/sampling/heterogeneous_biased_neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_Heterogeneous_Biased_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/karate.mtx"))));

Expand All @@ -253,20 +251,16 @@ INSTANTIATE_TEST_SUITE_P(
Tests_Heterogeneous_Biased_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/web-Google.mtx"),
cugraph::test::File_Usecase("test/datasets/ljournal-2008.mtx"),
cugraph::test::File_Usecase("test/datasets/webbase-1M.mtx"))));
::testing::Values(cugraph::test::File_Usecase("/raid/seunghwak/datasets/test/datasets/web-Google.mtx"),
cugraph::test::File_Usecase("/raid/seunghwak/datasets/test/datasets/ljournal-2008.mtx"),
cugraph::test::File_Usecase("/raid/seunghwak/datasets/test/datasets/webbase-1M.mtx"))));

INSTANTIATE_TEST_SUITE_P(
rmat_small_test,
Tests_Heterogeneous_Biased_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::Rmat_Usecase(10, 16, 0.57, 0.19, 0.19, 0, false, false, 0))));

Expand All @@ -281,10 +275,6 @@ INSTANTIATE_TEST_SUITE_P(
::testing::Values(
Heterogeneous_Biased_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, false, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, false, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, true, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, true, false}),
::testing::Values(cugraph::test::Rmat_Usecase(20, 32, 0.57, 0.19, 0.19, 0, false, false, 0))));
Expand Down
10 changes: 0 additions & 10 deletions cpp/tests/sampling/heterogeneous_uniform_neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_Heterogeneous_Uniform_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/karate.mtx"))));

Expand All @@ -252,8 +250,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_Heterogeneous_Uniform_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/web-Google.mtx"),
cugraph::test::File_Usecase("test/datasets/ljournal-2008.mtx"),
Expand All @@ -264,8 +260,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_Heterogeneous_Uniform_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::Rmat_Usecase(10, 16, 0.57, 0.19, 0.19, 0, false, false, 0))));

Expand All @@ -280,10 +274,6 @@ INSTANTIATE_TEST_SUITE_P(
::testing::Values(
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, false, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, false, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, true, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{
{4, 10, 7, 8, 1, 9, 5, 12}, 1024, 4, true, false}),
::testing::Values(cugraph::test::Rmat_Usecase(20, 32, 0.57, 0.19, 0.19, 0, false, false, 0))));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Biased_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/karate.mtx"))));

Expand All @@ -331,8 +329,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Biased_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/web-Google.mtx"),
cugraph::test::File_Usecase("test/datasets/ljournal-2008.mtx"),
Expand All @@ -343,8 +339,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Biased_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(
// cugraph::test::Rmat_Usecase(10, 16, 0.57, 0.19, 0.19, 0, false, false))));
Expand All @@ -359,9 +353,7 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Biased_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false}),
Heterogeneous_Biased_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::Rmat_Usecase(20, 32, 0.57, 0.19, 0.19, 0, false, false))));

CUGRAPH_MG_TEST_PROGRAM_MAIN()
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Uniform_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/karate.mtx"))));

Expand All @@ -331,8 +329,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Uniform_Neighbor_Sampling_File,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::File_Usecase("test/datasets/web-Google.mtx"),
cugraph::test::File_Usecase("test/datasets/ljournal-2008.mtx"),
Expand All @@ -343,8 +339,6 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Uniform_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(
// cugraph::test::Rmat_Usecase(10, 16, 0.57, 0.19, 0.19, 0, false, false))));
Expand All @@ -359,10 +353,7 @@ INSTANTIATE_TEST_SUITE_P(
Tests_MGHeterogeneous_Uniform_Neighbor_Sampling_Rmat,
::testing::Combine(
::testing::Values(Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, false},
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{
{4, 10, 7, 8}, 128, 2, false}),
Heterogeneous_Uniform_Neighbor_Sampling_Usecase{{4, 10, 7, 8}, 128, 2, true}),
::testing::Values(cugraph::test::Rmat_Usecase(20, 32, 0.57, 0.19, 0.19, 0, false, false))));

CUGRAPH_MG_TEST_PROGRAM_MAIN()

0 comments on commit 6a95852

Please sign in to comment.