Skip to content

Commit e1437dc

Browse files
committed
Avoid errors in parallel tests
1 parent 79cfe18 commit e1437dc

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

tests/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@ TESTS = embed_extract_jpg.sh \
22
embed_extract_ppm.sh \
33
test_seek.sh
44

5+
CLEANFILES = test-with-message.jpg \
6+
test-with-message.pnm \
7+
test-with-message.ppm
8+
59
distclean-local:
610
rm -f out.jpg

tests/embed_extract_jpg.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ echo -e "\nEmbedding a message..."
1010

1111
# Retrieve message
1212
echo -e "\nExtracting a message..."
13-
../src/outguess -k "secret-key-001" -r test-with-message.jpg text.txt
14-
cat text.txt | grep "inside of the image" || { echo ERROR; exit 1; }
13+
../src/outguess -k "secret-key-001" -r test-with-message.jpg text-jpg.txt
14+
cat text-jpg.txt | grep "inside of the image" || { echo ERROR; exit 1; }
1515

1616
# Remove files
17-
rm -f test-with-message.jpg text.txt
17+
rm -f test-with-message.jpg text-jpg.txt

tests/embed_extract_pnm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ echo -e "\nEmbedding a message..."
1010

1111
# Retrieve message
1212
echo -e "\nExtracting a message..."
13-
../src/outguess -k "secret-key-001" -r test-with-message.pnm text.txt
14-
cat text.txt | grep "inside of the image" || { echo ERROR; exit 1; }
13+
../src/outguess -k "secret-key-001" -r test-with-message.pnm text-pnm.txt
14+
cat text-pnm.txt | grep "inside of the image" || { echo ERROR; exit 1; }
1515

1616
# Remove files
17-
rm -f test-with-message.pnm text.txt
17+
rm -f test-with-message.pnm text-pnm.txt

tests/embed_extract_ppm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ echo -e "\nEmbedding a message..."
1010

1111
# Retrieve message
1212
echo -e "\nExtracting a message..."
13-
../src/outguess -k "secret-key-001" -r test-with-message.ppm text.txt
14-
cat text.txt | grep "inside of the image" || { echo ERROR; exit 1; }
13+
../src/outguess -k "secret-key-001" -r test-with-message.ppm text-ppm.txt
14+
cat text-ppm.txt | grep "inside of the image" || { echo ERROR; exit 1; }
1515

1616
# Remove files
17-
rm -f test-with-message.ppm text.txt
17+
rm -f test-with-message.ppm text-ppm.txt

0 commit comments

Comments
 (0)