Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-swift committed Sep 23, 2024
1 parent d536065 commit 1995c55
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,53 @@
RES="`pwd`/docs/testing.md"

function fail_result () {
echo -e '\n```\n' >> $RES
echo "$1" >> $RES
exit 0
}

date &>> $RES

echo "## Embroidermodder Download" > $RES
git clone https://github.com/Embroidermodder/embroidermodder &>> $RES || fail_result 1
cd embroidermodder || fail_result 2
cd embroidermodder

echo "## Embroidermodder Build" >> $RES
echo -e '\n```\n' >> $RES
bash build.sh --linux &>> $RES || fail_result 3
bash build.sh --linux &>> $RES || fail_result 2
echo -e '\n```\n' >> $RES

echo "## Embroidermodder Debug" >> $RES
echo -e '\n```\n' >> $RES
bash build.sh -d &>> $RES || fail_result 4
bash build.sh -d &>> $RES || fail_result 3
echo -e '\n```\n' >> $RES

cd .. || fail_result 5
cd ..

git clone https://github.com/Embroidermodder/libembroidery &>> $RES || fail_result 6
cd libembroidery || fail_result 7
git clone https://github.com/Embroidermodder/libembroidery &>> $RES || fail_result 4
cd libembroidery

echo "## Libembroidery Build" >> $RES
echo -e '\n```\n' >> $RES
bash build.sh -d &>> $RES || fail_result 8
cmake . &>> $RES || fail_result 5
make &>> $RES || fail_result 6
echo -e '\n```\n' >> $RES

cd debug || fail_result 9

echo "## Libembroidery Testing" >> $RES
echo -e '\n```\n' >> $RES
./embroider --test &>> $RES || fail_result 10
./embroider --test &>> $RES || fail_result 7
echo -e '\n```\n' >> $RES

cd .. || fail_result 11
cd .. || fail_result 12
cd ../..

git clone https://github.com/Embroidermodder/EmbroideryMobile || fail_result 13
cd EmbroideryMobile || fail_result 14
git clone https://github.com/Embroidermodder/EmbroideryMobile || fail_result 8
cd EmbroideryMobile

echo "## " >> $RES
echo -e '\n```\n' >> $RES
bash build.sh -d &>> $RES || fail_result 15
bash build.sh -d &>> $RES || fail_result 9
echo -e '\n```\n' >> $RES

cd .. || fail_result 16
cd ..

echo "0" >> $RES

0 comments on commit 1995c55

Please sign in to comment.