Skip to content

Instantly share code, notes, and snippets.

@banan314
Created December 11, 2018 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banan314/9cb6aac598aa2f097f4b39330d93a618 to your computer and use it in GitHub Desktop.
Save banan314/9cb6aac598aa2f097f4b39330d93a618 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
rm -f mine/tests/*.out
for f in tests/*.in
do
./pol < $f > mine/$f
# do something on $f
done
cd mine/tests
for file in *.in; do
mv "$file" "$(basename "$file" .in).out"
done
cd ../..
diff -x '*.in' -x '*.mine' tests mine/tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment