3 if test -f @KERNEL_ROOT_DIR@/bin/salome/appli_gen.py ; then
5 # --- create a SALOME Application environment
7 @KERNEL_ROOT_DIR@/bin/salome/appli_gen.py
8 sed -i s/\"yes\"/\"no\"/ SalomeApp.xml
9 sed -i s/\,study\,cppContainer\,registry\,moduleCatalog// SalomeApp.xml
10 sed -i s/pyContainer/pyContainer\,study\,cppContainer\,registry\,moduleCatalog/ SalomeApp.xml
12 cat > CatalogResources.xml << EOF
13 <!DOCTYPE ResourcesCatalog>
15 <machine hostname="localhost" />
19 # ---------------------------------------------------------------------------
20 # --- first set of test in C++
22 # --- launch in background a SALOME session (servers)
24 ln -fs @top_srcdir@/src/yacsloader/samples .
25 ./runAppli > log1 2>&1
27 # --- wait a little to let the background process define
28 # the CORBA naming service port and host
32 # --- execute the test script in SALOME session environment
34 chmod +x @builddir@/YacsLoaderInSessionTest.sh
35 ./runSession @builddir@/YacsLoaderInSessionTest.sh
38 # ---------------------------------------------------------------------------
39 # --- second set of tests: Python scripts
41 chmod +x @builddir@/YacsLoaderInSessionTest2.sh
42 ./runSession @builddir@/YacsLoaderInSessionTest2.sh
45 # ---------------------------------------------------------------------------
47 kill -9 `cat "/tmp/YACSTEST_PidEcho"`
48 ./runSession killSalome.py
50 echo "exec status YacsLoaderInSessionTest.sh " $ret1
51 echo "exec status YacsLoaderInSessionTest2.sh " $ret2
54 # --- delete all the SALOME Application environment
56 ./bin/salome/appli_clean.sh
60 ln -fs @top_srcdir@/src/yacsloader/samples .
61 chmod +x @builddir@/YacsLoaderInSessionTest.sh
62 @builddir@/YacsLoaderInSessionTest.sh
64 echo "exec status YacsLoaderInSessionTest.sh " $ret
69 then cat /tmp/${USER}/UnitTestsResult
70 else echo "Results are in /tmp/${USER}/UnitTestsResult"