Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
fd611b4f
Commit
fd611b4f
authored
Dec 25, 2018
by
Alexander David Hellwig
Browse files
Fix linux build: fix sh files
parent
a5860ca3
Changes
4
Hide whitespace changes
Inline
Side-by-side
compileCPPTests.sh
View file @
fd611b4f
...
...
@@ -20,9 +20,9 @@
# *******************************************************************************
#
# exit with code on error
set
-e
cd
native
sh variables.sh
sh compileTestsArmadilloBackendOpenBLAS.sh %PROJECT_ROOT%%1 %PROJECT_ROOT%%2
exit
\ No newline at end of file
source
variables.sh
source
compileTestsArmadilloBackendOpenBLAS.sh
"
${
PROJECT_ROOT
}
/
$1
"
"
${
PROJECT_ROOT
}
/
$2
"
\ No newline at end of file
executeStreamTest.sh
View file @
fd611b4f
...
...
@@ -20,8 +20,10 @@
# *******************************************************************************
#
# exit with code on error
set
-e
cd
native
sh variables.sh
cd
%PROJECT_ROOT%%1
sh TestsForCurrentModel.exe
\ No newline at end of file
source
variables.sh
cd
"
${
PROJECT_ROOT
}
/
${
1
}
"
./TestsForCurrentModel
\ No newline at end of file
native/compileTestsArmadilloBackendOpenBLAS.sh
View file @
fd611b4f
...
...
@@ -20,19 +20,21 @@
# *******************************************************************************
#
# exit with code on error
set
-e
s
h
variables.sh
s
et
STREAM_TESTING
=
%
PROJECT_ROOT
%
/target/generated-sources-cpp/streamtest
s
et
AUTOPILOT_TESTS
=
%
STREAM_TESTING
%
/target/generated-sources-cpp/streamtest/autopilot
s
et
STREAM_TEST_EXEC_DIR
=
%
STREAM_TESTING
%
/exec
s
ource
variables.sh
e
xpor
t
STREAM_TESTING
=
"
${
PROJECT_ROOT
}
/target/generated-sources-cpp/streamtest
"
e
xpor
t
AUTOPILOT_TESTS
=
"
${
STREAM_TESTING
}
/target/generated-sources-cpp/streamtest/autopilot
"
e
xpor
t
STREAM_TEST_EXEC_DIR
=
"
${
STREAM_TESTING
}
/exec
"
g++
-std
=
c++11
^
-I
"
%
JAVA_HOME
%
/include_linux"
^
-I
"
%
JAVA_HOME
%
/include_linux/linux"
^
-I
"
%
ARMADILLO_HOME
%
/include"
^
-L
"
%
HOME
%
/lib/linux"
^
-o
"
%2
/TestsForCurrentModel
.exe
"
^
"
%
ARMADILLO_HOME
%
/include/catch_tests_main.
o
"
^
"
%1
/test/tests_main.cpp"
^
-include
%
ARMADILLO_HOME
%
/include/armadillo.h
^
-DARMA_DONT_USE_WRAPPER
-l
gdi32
-lopenblas
-llibarpack-2
g++
-std
=
c++11
\
-I
"
${
JAVA_HOME
}
/include_linux"
\
-I
"
${
JAVA_HOME
}
/include_linux/linux"
\
-I
"
${
ARMADILLO_HOME
}
/include"
\
-L
"
${
HOME
}
/lib/linux"
\
-o
"
${
2
}
/TestsForCurrentModel"
\
"
${
ARMADILLO_HOME
}
/include/catch_tests_main.
cpp.ghc
"
\
"
${
1
}
/test/tests_main.cpp"
\
-include
"
${
ARMADILLO_HOME
}
/include/armadillo.h
"
\
-DARMA_DONT_USE_WRAPPER
-l
openblas
\ No newline at end of file
native/variables.sh
View file @
fd611b4f
...
...
@@ -21,36 +21,36 @@
#
pushd
%~dp0
pushd
`
pwd
`
>
/dev/null
cd
..
s
et
PROJECT_ROOT
=
%CD%
s
et
HOME
=
%
PROJECT_ROOT
%
/native
popd
s
et
SIMULATION_URL
=
http://localhost:8080/
s
et
JAVA_HOME
=
%
HOME
%
/jdk
s
et
TOMCAT_HOME
=
%
HOME
%
/apache-tomcat-9.0.5
s
et
MINGW_HOME
=
%
HOME
%
/mingw64
s
et
OCTAVE_HOME
=
%
HOME
%
/octave-4.2.1
s
et
ARMADILLO_HOME
=
%
HOME
%
/armadillo
s
et
CPP_DIR
=
%
HOME
%
/cpp
s
et
DLL_DIR
=
%
HOME
%
/dll
s
et
LIB_DIR
=
%
HOME
%
/lib
s
et
EXTERNAL_LIBS
=
%
HOME
%
/externallibs
s
et
PATH
=
%
EXTERNAL_LIBS
%
;
%
LIB_DIR
%
;
%
MINGW_HOME
%
/bin
;
%
DLL_DIR
%
;
%
JAVA_HOME
%
/bin
;
%
OCTAVE_HOME
%
/bin
;
%
PATH
%
s
et
SVG_HOME
=
%
HOME
%
/visualisation
s
et
REPORTING_HOME
=
%
HOME
%
/reporting
s
et
CHROME
=
%
HOME
%
/chrome/GoogleChromePortable.exe
s
et
TEST_EXEC_DIR
=
%
HOME
%
/exec
REM
se
t
CLUSTERER_CPP_DIR
=
%
HOME
%
/clusterer-cpp
s
et
CLUSTERER_EXEC_DIR
=
%
HOME
%
/exec
s
et
VERIFICATION_HOME
=
%
HOME
%
/viewverification
s
et
NFPVERIFICATION_HOME
=
%
HOME
%
/nfpverification
s
et
DISTR_SIM
=
%
HOME
%
/distributed-simulator
s
et
PSQL
=
%
DISTR_SIM
%
/PostgreSQLPortable
s
et
SFS
=
%
DISTR_SIM
%
/SmartFoxServer_2X/SFS2X
s
et
RMI
=
%
DISTR_SIM
%
/RMIModelServer
s
et
RMI_PATH
=
%
EXTERNAL_LIBS
%
;
%
LIB_DIR
%
;
%
MINGW_HOME
%
/bin
;
%
DLL_DIR
%
;
%
JAVA_HOME
%
/bin
;
%
OCTAVE_HOME
%
/bin
;
s
et
WASM_HOME
=
%
HOME
%
/emam2wasm
s
et
PACMAN_HOME
=
%
HOME
%
/pacman
s
et
SUPERMARIO_HOME
=
%
HOME
%
/supermario
s
et
CNCVERIFICATION_HOME
=
%
HOME
%
/cncverification
e
xpor
t
PROJECT_ROOT
=
"
`
pwd
`
"
e
xpor
t
HOME
=
"
${
PROJECT_ROOT
}
/native
"
popd
>
/dev/null
e
xpor
t
SIMULATION_URL
=
"
http://localhost:8080/
"
e
xpor
t
JAVA_HOME
=
"
${
HOME
}
/jdk
"
e
xpor
t
TOMCAT_HOME
=
"
${
HOME
}
/apache-tomcat-9.0.5
"
e
xpor
t
MINGW_HOME
=
"
${
HOME
}
/mingw64
"
e
xpor
t
OCTAVE_HOME
=
"
${
HOME
}
/octave-4.2.1
"
e
xpor
t
ARMADILLO_HOME
=
"
${
HOME
}
/armadillo
_linux"
e
xpor
t
CPP_DIR
=
"
${
HOME
}
/cpp
"
e
xpor
t
DLL_DIR
=
"
${
HOME
}
/dll
"
e
xpor
t
LIB_DIR
=
"
${
HOME
}
/lib
"
e
xpor
t
EXTERNAL_LIBS
=
"
${
HOME
}
/externallibs
"
e
xpor
t
PATH
=
"
${
EXTERNAL_LIBS
}
:
${
LIB_DIR
}
:
${
MINGW_HOME
}
/bin
:
${
DLL_DIR
}
:
${
JAVA_HOME
}
/bin
:
${
OCTAVE_HOME
}
/bin
:
${
PATH
}
"
e
xpor
t
SVG_HOME
=
"
${
HOME
}
/visualisation
"
e
xpor
t
REPORTING_HOME
=
"
${
HOME
}
/reporting
"
e
xpor
t
CHROME
=
"
${
HOME
}
/chrome/GoogleChromePortable.exe
"
e
xpor
t
TEST_EXEC_DIR
=
"
${
HOME
}
/exec
"
# expor
t CLUSTERER_CPP_DIR=
"${
HOME
}
/clusterer-cpp
"
e
xpor
t
CLUSTERER_EXEC_DIR
=
"
${
HOME
}
/exec
"
e
xpor
t
VERIFICATION_HOME
=
"
${
HOME
}
/viewverification
"
e
xpor
t
NFPVERIFICATION_HOME
=
"
${
HOME
}
/nfpverification
"
e
xpor
t
DISTR_SIM
=
"
${
HOME
}
/distributed-simulator
"
e
xpor
t
PSQL
=
"
${
DISTR_SIM
}
/PostgreSQLPortable
"
e
xpor
t
SFS
=
"
${
DISTR_SIM
}
/SmartFoxServer_2X/SFS2X
"
e
xpor
t
RMI
=
"
${
DISTR_SIM
}
/RMIModelServer
"
e
xpor
t
RMI_PATH
=
"
${
EXTERNAL_LIBS
}
:
${
LIB_DIR
}
:
${
MINGW_HOME
}
/bin
:
${
DLL_DIR
}
:
${
JAVA_HOME
}
/bin
:
${
OCTAVE_HOME
}
/bin
:"
e
xpor
t
WASM_HOME
=
"
${
HOME
}
/emam2wasm
"
e
xpor
t
PACMAN_HOME
=
"
${
HOME
}
/pacman
"
e
xpor
t
SUPERMARIO_HOME
=
"
${
HOME
}
/supermario
"
e
xpor
t
CNCVERIFICATION_HOME
=
"
${
HOME
}
/cncverification
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment