|
| 1 | +// |
| 2 | +// LinuxMain.swift |
| 3 | +// CommandLineKitTests |
| 4 | +// |
| 5 | +// Created by Matthias Zenger on 02/06/2018. |
| 6 | +// Copyright © 2018 Google LLC |
| 7 | +// |
| 8 | +// Redistribution and use in source and binary forms, with or without |
| 9 | +// modification, are permitted provided that the following conditions are met: |
| 10 | +// |
| 11 | +// * Redistributions of source code must retain the above copyright notice, |
| 12 | +// this list of conditions and the following disclaimer. |
| 13 | +// |
| 14 | +// * Redistributions in binary form must reproduce the above copyright notice, |
| 15 | +// this list of conditions and the following disclaimer in the documentation |
| 16 | +// and/or other materials provided with the distribution. |
| 17 | +// |
| 18 | +// * Neither the name of the copyright holder nor the names of its contributors |
| 19 | +// may be used to endorse or promote products derived from this software without |
| 20 | +// specific prior written permission. |
| 21 | +// |
| 22 | +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 23 | +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 24 | +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 25 | +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
| 26 | +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 27 | +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 28 | +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 29 | +// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 | +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 31 | +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | +// |
| 33 | + |
| 34 | +#if os(Linux) |
| 35 | + |
| 36 | +import XCTest |
| 37 | +@testable import CommandLineKitTests |
| 38 | + |
| 39 | +XCTMain( |
| 40 | + [ |
| 41 | + testCase(FlagTests.allTests), |
| 42 | + testCase(LineReaderHistoryTests.allTests), |
| 43 | + testCase(EditStateTests.allTests), |
| 44 | + testCase(AnsiCodesTests.allTests), |
| 45 | + ] |
| 46 | +) |
| 47 | + |
| 48 | +#endif |
| 49 | + |
0 commit comments