Skip to content

Commit

Permalink
improve windows test script
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabtieu committed Aug 31, 2021
1 parent d6dfc73 commit 9eafe10
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/wintest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
# This should be run using Git Bash on Windows by executing ./wintest.sh in the tests directory
# Alternatively, you can test manually however you like.

# Prechecks
if [[ $(ls | grep wintest.sh | wc -c) -eq 0 ]]; then
echo "Make sure you run wintest.sh in the tests directory."
echo "**STOPPING**"
exit 1
fi
ls /tmp/CTFOJ 2>/dev/null
if [[ $? -eq 0 ]]; then
echo "/tmp/CTFOJ directory exists! Delete it for this test to run."
echo "**STOPPING**"
exit 1
fi

# Checkout repo
echo 'Checking out working directory into /tmp/CTFOJ...'
cp -r .. /tmp/CTFOJ
Expand Down

0 comments on commit 9eafe10

Please sign in to comment.