From 64275e446e442c9a0a860969501158ed93058441 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 4 Jul 2019 11:18:37 +0100 Subject: feat(third_party/bazel): Check in rules_nixpkgs from Tweag --- third_party/bazel/rules_nixpkgs/tests/test_output.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 third_party/bazel/rules_nixpkgs/tests/test_output.sh (limited to 'third_party/bazel/rules_nixpkgs/tests/test_output.sh') diff --git a/third_party/bazel/rules_nixpkgs/tests/test_output.sh b/third_party/bazel/rules_nixpkgs/tests/test_output.sh new file mode 100755 index 000000000000..29f2735cf4ca --- /dev/null +++ b/third_party/bazel/rules_nixpkgs/tests/test_output.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# first param is the expected number of files given by `locations` +expected_length="$1" + +# rest of the arguments are files +shift +no_of_files=$# + +if [ "$no_of_files" -ne "$expected_length" ]; then + echo "Should have received $expected_length files, but got $no_of_files:" + for f in "$@"; do + echo "$f" + done + exit 1 +fi -- cgit 1.4.1