| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| #include <gtest/gtest.h> |
| |
| #include "tests/script.hpp" |
| |
| // Run each of the sample frameworks in local mode. |
| TEST_SCRIPT(ExamplesTest, TestFramework, "test_framework_test.sh") |
| TEST_SCRIPT(ExamplesTest, NoExecutorFramework, "no_executor_framework_test.sh") |
| |
| TEST_SCRIPT(ExamplesTest, TestHTTPFramework, |
| "test_http_framework_test.sh") |
| |
| TEST_SCRIPT(ExamplesTest, PersistentVolumeFramework, |
| "persistent_volume_framework_test.sh") |
| |
| TEST_SCRIPT(ExamplesTest, DynamicReservationFramework, |
| "dynamic_reservation_framework_test.sh") |
| |
| TEST_SCRIPT(ExamplesTest, DiskFullFramework, |
| "disk_full_framework_test.sh") |
| |
| TEST_SCRIPT(ExamplesTest, OperationFeedbackFramework, |
| "operation_feedback_framework_test.sh") |
| |
| #ifdef MESOS_HAS_JAVA |
| TEST_SCRIPT(ExamplesTest, JavaFramework, "java_framework_test.sh") |
| TEST_SCRIPT(ExamplesTest, JavaException, "java_exception_test.sh") |
| TEST_SCRIPT(ExamplesTest, JavaLog, "java_log_test.sh") |
| |
| // TODO(anand): Parameterize these tests on version. |
| TEST_SCRIPT(ExamplesTest, V0JavaFramework, "java_v0_framework_test.sh") |
| TEST_SCRIPT(ExamplesTest, V1JavaFramework, "java_v1_framework_test.sh") |
| #endif |
| |
| #ifdef MESOS_HAS_PYTHON |
| // This test requires python 2.7+ due to protobuf 3.5.0. |
| TEST_SCRIPT(ExamplesTest, PythonFramework, "python_framework_test.sh") |
| #endif |