X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Frun.sh;h=89b84f2b46808f44776d414e34dc1d192255d45f;hb=ec22bd63fe3e0d9b36918023bfe5b90a25bef3db;hp=805b450e1410f67ef7f48800b5b8aa6b1a39177f;hpb=84f932c810dae9ba0dd948e3a90c2f90d1f4e24a;p=config%2Fdotfiles.git diff --git a/tests/run.sh b/tests/run.sh index 805b450..89b84f2 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -5,6 +5,9 @@ # Get all test files. for file in *.test; do + # Create temporary directory. + mkdir -p tmp + # Run the test file in sh and zsh and get its output. sh $file > $file.out.sh 2>&1 zsh $file > $file.out.zsh 2>&1 @@ -13,9 +16,11 @@ for file in *.test; do # code 1. diff -u -N $file.out $file.out.sh || exit 1 diff -u -N $file.out $file.out.zsh || exit 1 + + # Remove temporary directory. + rm -rf tmp done # Remove all temporary files. -rm -rf tmp rm *.out.sh rm *.out.zsh