Skip to content

Commit

Permalink
Merge pull request DLTcollab#750 from splasky/732
Browse files Browse the repository at this point in the history
fix(Endpoint): Move endpoint related unit-test into endpoint
  • Loading branch information
splasky authored Dec 29, 2020
2 parents fba9139 + 59d365e commit 89100f0
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 28 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function failed() {
}

function run_test_suite() {
bazel test -c dbg --config "$1" //endpoint/unit-test/... --test_arg=localhost --test_arg="$TEST_TA_PORT"
bazel test -c dbg --config "$1" //endpoint/tests/regression/... --test_arg=localhost --test_arg="$TEST_TA_PORT"
ret=$?
if [[ ret -ne 0 ]]; then
TEST_CASE="$1"
Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions endpoint/tests/unit-test/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cc_test(
name = "test_text_serializer",
srcs = [
"test_text_serializer.c",
],
deps = [
"//endpoint:cipher",
"//endpoint:text_serializer",
"//tests:logger_lib",
"//tests:test_define",
],
)

cc_test(
name = "test_cipher",
srcs = [
"test_cipher.c",
],
deps = [
"//endpoint:cipher",
"//tests:logger_lib",
"//tests:test_define",
],
)
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ cc_library(
cc_library(
name = "logger_lib",
visibility = [
"//endpoint/unit-test:__pkg__",
"//endpoint/tests/regression:__pkg__",
"//endpoint/tests/unit-test:__pkg__",
"//tests:__subpackages__",
],
deps = select({
Expand Down
26 changes: 0 additions & 26 deletions tests/unit-test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -62,32 +62,6 @@ cc_test(
],
)

cc_test(
name = "test_text_serializer",
srcs = [
"test_text_serializer.c",
],
deps = [
"//common",
"//endpoint:cipher",
"//endpoint:text_serializer",
"//tests:logger_lib",
"//tests:test_define",
],
)

cc_test(
name = "test_cipher",
srcs = [
"test_cipher.c",
],
deps = [
"//endpoint:cipher",
"//tests:logger_lib",
"//tests:test_define",
],
)

cc_test(
name = "test_tryte_byte_conv",
srcs = [
Expand Down

0 comments on commit 89100f0

Please sign in to comment.