3 # Runs all tests in this directory.
8 # Create temporary directory.
11 # Run the test file in sh and zsh and get its output.
12 sh $file > $file.out.sh 2>&1
13 zsh $file > $file.out.zsh 2>&1
15 # Check if the output matches the expected one. If not abort with exit
17 diff -u $file.out $file.out.sh || exit 1
18 diff -u $file.out $file.out.zsh || exit 1
20 # Remove temporary directory.
24 # Remove all temporary files.