4 # Usage: run_argv_test.sh <command line arguments to run mal>
6 # Example: run_argv_test.sh python step6_file.py
10 if [ "$1" = "$2" ] ; then
13 echo "FAIL: Expected '$1' but got '$2'"
20 echo "Usage: $0 <command line arguments to run mal>"
26 out
="$( $@ $root/tests/print_argv.mal aaa bbb ccc | tr -d '\r' )"
27 assert_equal
'("aaa" "bbb" "ccc")' "$out"
29 # Note: The 'make' implementation cannot handle arguments with spaces in them,
30 # so for now we skip this test.
32 # out="$( $@ $root/tests/print_argv.mal aaa 'bbb ccc' ddd )"
33 # assert_equal '("aaa" "bbb ccc" "ddd")' "$out"
35 out
="$( $@ $root/tests/print_argv.mal | tr -d '\r' )"
36 assert_equal
'()' "$out"
38 echo 'Passed all *ARGV* tests'