This repository was archived by the owner on Jan 15, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ ERROR_ABORT() {
3131# that issue.
3232ulimit -n 512; ERROR_ABORT
3333
34- # Remove the previous build result (if any) to start from a clean state.
35- rm -rf ../ThaliTest; ERROR_ABORT
34+ PROJECT_ROOT=$( pwd)
3635
3736# A hack to workaround an issue where the install scripts assume that the
3837# folder of the Thali Cordova plugin is called exactly Thali_CordovaPlugin,
@@ -42,8 +41,17 @@ THALI_DIRECTORY="../Thali_CordovaPlugin"
4241if [ ! -d " $THALI_DIRECTORY " ]
4342then
4443 cp -R . $THALI_DIRECTORY ; ERROR_ABORT
44+ cd $THALI_DIRECTORY ; ERROR_ABORT
4545fi
4646
47+ # Run first the tests that can be run on desktop
48+ thali/install/setUpDesktop.sh; ERROR_ABORT
49+ cd test/www/jxcore/; ERROR_ABORT
50+ jx npm test ; ERROR_ABORT
51+ # Make sure we are back in the project root folder
52+ # after the test execution
53+ cd $PROJECT_ROOT ; ERROR_ABORT
54+
4755# Check the existence of the script that in CI gives the right test server
4856# IP address.
4957hash CIGIVEMEMYIP.sh 2> /dev/null
5866 SERVER_ADDRESS=" "
5967fi
6068
69+ # Remove the previous build result (if any) to start from a clean state.
70+ rm -rf ../ThaliTest; ERROR_ABORT
71+
6172# Either PerfTest_app.js or UnitTest_app.js
6273TEST_TYPE=" UnitTest_app.js"
6374
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ test('multiplex can send data', function (t) {
4343 } ) ;
4444 } ) ;
4545} ) ;
46-
46+ /*
4747test('muxServerBridge', function (t) {
4848 var len = 200;
4949 var testMessage = randomstring.generate(len);
@@ -83,3 +83,4 @@ test('muxServerBridge', function (t) {
8383 });
8484 });
8585});
86+ */
You can’t perform that action at this time.
0 commit comments