Skip to content

Commit

Permalink
#652: Started unit tests for script option lines parser
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jul 24, 2024
1 parent 7d6bcfa commit bc39729
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check_bazel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk libzmq3-dev
- name: Test
- name: Java Tests
run: |
export USE_BAZEL_VERSION=6.4.0
bazel test //javacontainer/test/...
working-directory: ./exaudfclient/base
- name: ExaudfLib Tests
run: |
export USE_BAZEL_VERSION=6.4.0
bazel test //exaudflib/test/...
working-directory: ./exaudfclient/base

9 changes: 9 additions & 0 deletions exaudfclient/base/exaudflib/test/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cc_test(
name = "exaudflib-test",
srcs = ["script_data_transfer_objects_test.cpp", "script_option_lines_test.cpp"],
deps = [
"//exaudflib:script_data_transfer_objects",
"//exaudflib:scriptoptionlines",
"@googletest//:gtest_main",
],
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <engine/exscript/script_data_transfer_objects.h>
#include "exaudflib/swig/script_data_transfer_objects.h"
#include <gtest/gtest.h>

using namespace ExecutionGraph;
Expand Down Expand Up @@ -258,9 +258,3 @@ TEST_F(ConnectionInformationTest, copy)
EXPECT_TRUE(ca.getPassword() == cb.getPassword());
EXPECT_TRUE(ca.hasData() == cb.hasData());
}


int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
7 changes: 7 additions & 0 deletions exaudfclient/base/exaudflib/test/script_option_lines_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "exaudflib/vm/scriptoptionlines.h"
#include <gtest/gtest.h>


TEST(ScriptOptionLines, basic)
{
}

0 comments on commit bc39729

Please sign in to comment.