From b111afa8d8bd26bdafb33b1f5ef9490a5a3d5db2 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Wed, 24 Sep 2014 21:15:25 +0200 Subject: [PATCH] Add bash script to test all Swift scripts. --- SwiftShellTests/Scripts/testall.bash | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 SwiftShellTests/Scripts/testall.bash diff --git a/SwiftShellTests/Scripts/testall.bash b/SwiftShellTests/Scripts/testall.bash new file mode 100755 index 0000000..86475fd --- /dev/null +++ b/SwiftShellTests/Scripts/testall.bash @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# http://stackoverflow.com/questions/90418/exit-shell-script-based-on-process-exit-code +# Exit on any error. +set -e +# Exit on any error in a pipeline. +set -o pipefail + +./callswiftscriptfromswift.swift +#./exitswhenopeningnon-existentfile.swift +./listallexecutablesinpath.swift +./print_arguments.swift 1 2 +./print_environment.swift +ls | ./print_linenumbers.swift +./readfilelinebyline.swift +./stream_out.swift