Vladimir Marko | 1352f13 | 2017-04-28 15:28:29 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include "oatdump_test.h" |
| 18 | |
| 19 | namespace art { |
| 20 | |
| 21 | // Disable tests on arm and mips as they are taking too long to run. b/27824283. |
| 22 | #if !defined(__arm__) && !defined(__mips__) |
| 23 | TEST_F(OatDumpTest, TestImage) { |
| 24 | std::string error_msg; |
| 25 | ASSERT_TRUE(Exec(kDynamic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg; |
| 26 | } |
| 27 | TEST_F(OatDumpTest, TestImageStatic) { |
| 28 | TEST_DISABLED_FOR_NON_STATIC_HOST_BUILDS(); |
| 29 | std::string error_msg; |
| 30 | ASSERT_TRUE(Exec(kStatic, kModeArt, {}, kListAndCode, &error_msg)) << error_msg; |
| 31 | } |
| 32 | |
| 33 | TEST_F(OatDumpTest, TestOatImage) { |
| 34 | std::string error_msg; |
| 35 | ASSERT_TRUE(Exec(kDynamic, kModeOat, {}, kListAndCode, &error_msg)) << error_msg; |
| 36 | } |
| 37 | TEST_F(OatDumpTest, TestOatImageStatic) { |
| 38 | TEST_DISABLED_FOR_NON_STATIC_HOST_BUILDS(); |
| 39 | std::string error_msg; |
| 40 | ASSERT_TRUE(Exec(kStatic, kModeOat, {}, kListAndCode, &error_msg)) << error_msg; |
| 41 | } |
| 42 | #endif |
| 43 | } // namespace art |