From 3470e4b979e36d96ec2b080fa7ef28c85295d297 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 16 Nov 2014 22:26:54 +0000 Subject: [PATCH] moving tests --- tests/{ => Cross-shell test support}/.print-arg-3 | 0 .../.test-urchin-x/This should run as $TEST_SHELL | 4 ++++ .../urchin -x should start the $TEST_SHELL. | 3 +++ .../urchin should pass the $TEST_SHELL variable to urchin -x | 3 +++ tests/urchin -x should start the $TEST_SHELL. | 3 --- 5 files changed, 10 insertions(+), 3 deletions(-) rename tests/{ => Cross-shell test support}/.print-arg-3 (100%) create mode 100755 tests/Cross-shell test support/.test-urchin-x/This should run as $TEST_SHELL create mode 100755 tests/Cross-shell test support/urchin -x should start the $TEST_SHELL. create mode 100755 tests/Cross-shell test support/urchin should pass the $TEST_SHELL variable to urchin -x delete mode 100755 tests/urchin -x should start the $TEST_SHELL. diff --git a/tests/.print-arg-3 b/tests/Cross-shell test support/.print-arg-3 similarity index 100% rename from tests/.print-arg-3 rename to tests/Cross-shell test support/.print-arg-3 diff --git a/tests/Cross-shell test support/.test-urchin-x/This should run as $TEST_SHELL b/tests/Cross-shell test support/.test-urchin-x/This should run as $TEST_SHELL new file mode 100755 index 0000000..91a6a53 --- /dev/null +++ b/tests/Cross-shell test support/.test-urchin-x/This should run as $TEST_SHELL @@ -0,0 +1,4 @@ +#! ../../urchin -x +echo "Running shell: $(ps -o comm= -p $$ && :)" +echo "\$TEST_SHELL: $TEST_SHELL" +[ "$TEST_SHELL" = 'bash' ] diff --git a/tests/Cross-shell test support/urchin -x should start the $TEST_SHELL. b/tests/Cross-shell test support/urchin -x should start the $TEST_SHELL. new file mode 100755 index 0000000..9438c49 --- /dev/null +++ b/tests/Cross-shell test support/urchin -x should start the $TEST_SHELL. @@ -0,0 +1,3 @@ +#!/bin/sh + +test c = $(../../urchin -x .print-arg-3 a 'b b b b' c d e) diff --git a/tests/Cross-shell test support/urchin should pass the $TEST_SHELL variable to urchin -x b/tests/Cross-shell test support/urchin should pass the $TEST_SHELL variable to urchin -x new file mode 100755 index 0000000..3d90d3b --- /dev/null +++ b/tests/Cross-shell test support/urchin should pass the $TEST_SHELL variable to urchin -x @@ -0,0 +1,3 @@ +#!/bin/sh +export TEST_SHELL=/bin/bash +../../urchin .test-urchin-x diff --git a/tests/urchin -x should start the $TEST_SHELL. b/tests/urchin -x should start the $TEST_SHELL. deleted file mode 100755 index e137df2..0000000 --- a/tests/urchin -x should start the $TEST_SHELL. +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -test c = $(../urchin -x .print-arg-3 a 'b b b b' c d e)