Files
swift-mirror/test/Interpreter/shebang-direct.swift
Jordan Rose bdc009e20a [test] Disable shebang test on Linux.
This test creates a shebang (#!) line that may exceed 80 characters, which is
a limit on many systems. Instead, use /usr/bin/env to invoke the right 'swift'.

OS X is more permissive (up to PATH_MAX characters), so continue testing the
direct invocation there.
2016-01-15 10:40:46 -08:00

10 lines
365 B
Swift

// RUN: echo '#'!%swift_driver_plain > %t.shebang.swift
// RUN: cat %S/shebang-env.swift >> %t.shebang.swift
// RUN: chmod u+x %t.shebang.swift
// RUN: %t.shebang.swift | FileCheck -check-prefix=NONE %S/shebang-env.swift
// RUN: %t.shebang.swift a b c | FileCheck -check-prefix=THREE-ARGS %S/shebang-env.swift
// REQUIRES: swift_interpreter
// UNSUPPORTED: linux