|
Revision 1643, 0.7 KB
(checked in by pkwi, 6 years ago)
|
|
%k -> %H in date string allows us to do preCVStest before 10AM... ;)
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | autoconf configure.in > configure |
|---|
| 3 | chmod a+x configure |
|---|
| 4 | LocalTime=`date +%Y_%m_%d_%H.%M` |
|---|
| 5 | WorkDir=preCVStest.$LocalTime |
|---|
| 6 | mkdir $WorkDir |
|---|
| 7 | ./configure --prefix $PWD/$WorkDir |
|---|
| 8 | export MCSTAS=$PWD/$WorkDir/lib/mcstas |
|---|
| 9 | export PATH=$PWD/$WorkDir/bin:$PATH |
|---|
| 10 | make |
|---|
| 11 | make install |
|---|
| 12 | make clean |
|---|
| 13 | cd $WorkDir |
|---|
| 14 | echo |
|---|
| 15 | echo Starting mcrun --test |
|---|
| 16 | mcrun --test > $WorkDir.log 2>&1 |
|---|
| 17 | echo mcrun --test done... |
|---|
| 18 | cd - |
|---|
| 19 | echo |
|---|
| 20 | echo 1\) Consult mcrun --test results in $WorkDir |
|---|
| 21 | echo 2\) Do further manual test in the environment below, |
|---|
| 22 | echo depending on changes made. |
|---|
| 23 | echo 3\) When convinced all is working, do your commit |
|---|
| 24 | echo |
|---|
| 25 | echo Entering test environment using /bin/sh |
|---|
| 26 | echo Type exit/logout/\^D to end |
|---|
| 27 | echo |
|---|
| 28 | export PS1="McStas CVS test # " |
|---|
| 29 | /bin/sh -i |
|---|