Skip to content

Commit d3e7724

Browse files
committed
Test osx command line fixes
1 parent 094c01b commit d3e7724

File tree

1 file changed

+47
-45
lines changed

1 file changed

+47
-45
lines changed

scripts/osx/test_cmdline.sh

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -28,57 +28,59 @@ else
2828
echo "Application is already code-signed and valid"
2929
fi
3030

31-
echo "Test auto path:"
31+
echo "Test: projectGenerator building"
32+
echo "Test 1: test examples templates - auto path to openFrameworks core"
3233
./projectGenerator --recursive -posx ../../examples/templates
34+
echo "Test 1: test examples templates - success"
3335

36+
echo "Test: projectGenerator building"
37+
echo "Test 2: all examples - defined core openFrameworks path ../../"
38+
./projectGenerator --recursive -posx -o../../ ../../examples/ ./projectGenerator
39+
echo "Test 2: all examples - success"
3440

35-
echo "Test all"
36-
./projectGenerator --recursive -posx -o../../ ../../examples/ ./projectGenerator
41+
# echo "test out of folder -o [vs]";
42+
# rm -rf ../../../../../pg2
43+
# mkdir -p ../../../../../pg2
44+
# if ! command -v rsync &> /dev/null
45+
# then
46+
# cp -a ./projectGenerator ../../../../../pg2
47+
# else
48+
# rsync -azp ./projectGenerator ../../../../../pg2
49+
# fi
50+
# cd ../../../../../pg2
51+
# ls -a
52+
# pwd
53+
# ./projectGenerator --recursive -posx -o"./../openFrameworks" ./../openFrameworks/examples/
54+
# errorcode=$?
55+
# if [[ $errorcode -ne 0 ]]; then
56+
# exit $errorcode
57+
# fi
3758

59+
# ./projectGenerator --recursive -posx -o"./../openFrameworks" ./../openFrameworks/examples/
60+
# errorcode=$?
61+
# if [[ $errorcode -ne 0 ]]; then
62+
# exit $errorcode
63+
# fi
3864

39-
echo "test out of folder -o [vs]";
40-
rm -rf ../../../../../pg2
41-
mkdir -p ../../../../../pg2
42-
if ! command -v rsync &> /dev/null
43-
then
44-
cp -a ./projectGenerator ../../../../../pg2
45-
else
46-
rsync -azp ./projectGenerator ../../../../../pg2
47-
fi
48-
cd ../../../../../pg2
49-
ls -a
50-
pwd
51-
./projectGenerator --recursive -posx -o"./../openFrameworks" ./../openFrameworks/examples/
52-
errorcode=$?
53-
if [[ $errorcode -ne 0 ]]; then
54-
exit $errorcode
55-
fi
56-
57-
./projectGenerator --recursive -posx -o"./../openFrameworks" ./../openFrameworks/examples/
58-
errorcode=$?
59-
if [[ $errorcode -ne 0 ]]; then
60-
exit $errorcode
61-
fi
65+
# echo "Test generate new just name"
66+
# ./projectGenerator -o"../openFrameworks" -p"osx" "testingGenerate"
67+
# errorcode=$?
68+
# if [[ $errorcode -ne 0 ]]; then
69+
# exit $errorcode
70+
# fi
71+
# echo "Test generate new / update full path"
72+
# ./projectGenerator -o"../openFrameworks" -p"osx" "../openFrameworks/apps/myApps/testingGenerate"
73+
# errorcode=$?
74+
# if [[ $errorcode -ne 0 ]]; then
75+
# exit $errorcode
76+
# fi
6277

63-
echo "Test generate new just name"
64-
./projectGenerator -o"../openFrameworks" -p"osx" "testingGenerate"
65-
errorcode=$?
66-
if [[ $errorcode -ne 0 ]]; then
67-
exit $errorcode
68-
fi
69-
echo "Test generate new / update full path"
70-
./projectGenerator -o"../openFrameworks" -p"osx" "../openFrameworks/apps/myApps/testingGenerate"
71-
errorcode=$?
72-
if [[ $errorcode -ne 0 ]]; then
73-
exit $errorcode
74-
fi
75-
76-
echo "Test generate full path"
77-
./projectGenerator -o"../openFrameworks" -p"osx" "openFrameworks/apps/myApps/testingGenerate2"
78-
errorcode=$?
79-
if [[ $errorcode -ne 0 ]]; then
80-
exit $errorcode
81-
fi
78+
# echo "Test generate full path"
79+
# ./projectGenerator -o"../openFrameworks" -p"osx" "openFrameworks/apps/myApps/testingGenerate2"
80+
# errorcode=$?
81+
# if [[ $errorcode -ne 0 ]]; then
82+
# exit $errorcode
83+
# fi
8284

8385

8486
echo "Successful projectGenerator tests for [osx]";

0 commit comments

Comments
 (0)