That's weird. What is your default shell that Perl invokes with the "system" command. This works fine with bash-2.05b. Reid. On Sun, 2004-09-05 at 10:01, Vladimir Merzliakov wrote:> > x86 FreeBSD: > > * hasn't run with changes yet > > I manually start script. I use this options (+ -verbose now for testing) > > /home/wanderer/pkg/build/llvm/src/llvm/utils/NightlyTest.pl -parallel -enable-linscan > -noexternals -noremove :pserver:anon at llvm-cvs.cs.uiuc.edu:2401/var/cvs/llvm > /home/wanderer/pkg/build/llvm/night/build > /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD > > Log: > INITIALIZED > CVS Root = :pserver:anon at llvm-cvs.cs.uiuc.edu:2401/var/cvs/llvm-test > BuildDir = /home/wanderer/pkg/build/llvm/night/build > WebDir = /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD > Prefix = > /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD/2004-09-05 > CVSLog = > /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD/2004-09-05-CVS-Log.txt > BuildLog = > /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD/2004-09-05-Build-Log.txt > Changing To: CVS checkout directory > (/home/wanderer/pkg/build/llvm/night/build) > CHECKOUT STAGE > Syntax error: "(" unexpected (expecting ")") > Changing To: CVS Checkout directory > (/home/wanderer/pkg/build/llvm/night/build) > Changing To: llvm source directory (llvm) > Cannot change directory to: llvm source directory (llvm) at > /home/wanderer/pkg/build/llvm/src/llvm/utils/NightlyTest.pl line 133. > > Vladimir > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040905/6dc7dc79/attachment.sig>
> That's weird. What is your default shell that Perl invokes with the > "system" command. This works fine with bash-2.05b.In reality :) i use this script in crontab (and run it manually with added verbose flag): ---8X-------------- #!/bin/sh - # if !([ -d /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD ]) then mkdir /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD ; fi if ([ -d /home/wanderer/pkg/build/llvm/night/build ]) then rm -r /home/wanderer/pkg/build/llvm/night/build ; fi LC_MESSAGES=C export LC_MESSAGES LANG=C export LANG PATH=/sbin:/bin:/usr/sbin:/home/wanderer/pkg/gcc_34/bin:/home/wanderer/pkg/qmtest/bin:/usr/bin:/usr/local/sbin:/usr/local/bin export PATH LLVM_LIB_SEARCH_PATH=/home/wanderer/pkg/llvm_cfe/bytecode-libs export LLVM_LIB_SEARCH_PATH LLVMGCCDIR=/home/wanderer/pkg/llvm_cfe export LLVMGCCDIR LLVM_LIB_SEARCH_PATH=/home/wanderer/pkg/llvm_cfe/bytecode-libs export LLVM_LIB_SEARCH_PATH LD_LIBRARY_PATH=/home/wanderer/pkg/gcc_34/lib export LD_LIBRARY_PATH cd /home/wanderer/pkg/build/llvm/night/ echo @@@@@@@@@@@@@@@ Test run... @@@@@@@@@@@@@@@@@@@@@@@@@@@ /home/wanderer/pkg/build/llvm/src/llvm/utils/NightlyTest.pl -verbose -debug -parallel -enable-linscan -noexternals -noremove :pserver:anon at llvm-cvs.cs.uiuc.edu:2401/var/cvs/llvm /home/wanderer/pkg/build/llvm/night/build /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD echo @@@@@@@@@@@@@@@ Test finished @@@@@@@@@@@@@@@@@@@@@@@@ ---X8--------------- It work fine before (including last crontab nighttest run). Note:I sync with cvs and rebuild llvm before manual test (all chnages except last "Remove configuration of test/Programs/* Makefiles") Vladimir
Actually, I'm talking about the shell that Perl invokes. When you run the NightlyTest.pl script, it uses Perl. The system() function in Perl invokes the "standard" shell to execute the command provided as the argument to system(). In NightlyTest.pl, I have changed the program to check out both the regular llvm CVS module as well as the llvm-test module. This command is what is giving your error. The command is: (time -p ($NICE cvs $CVSOPT -d $CVSRootDir co -APR llvm; cd llvm/projects ; \ $NICE cvs $CVSOPT -d $CVSRootDir co -APR llvm-test ) ) > $CVSLog 2>&1 When your shell interprets this, it is complaining about the second open parenthesis. Bash 2.05b on Linux handles this fine. I was asking what your "default" system shell is on FreeBSD. Probably /bin/sh, right? Perhaps you can: SHELL=/usr/bin/bash ; export SHELL in your script below just before it runs NightlyTest.pl? I'm not sure if that will work or not. Reid. On Sun, 2004-09-05 at 11:02, Vladimir Merzliakov wrote:> > That's weird. What is your default shell that Perl invokes with the > > "system" command. This works fine with bash-2.05b. > > In reality :) i use this script in crontab (and run it manually with added > verbose flag): > > ---8X-------------- > #!/bin/sh - > # > > if !([ -d /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD ]) > then mkdir /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD ; fi > > if ([ -d /home/wanderer/pkg/build/llvm/night/build ]) then rm -r > /home/wanderer/pkg/build/llvm/night/build ; fi > > LC_MESSAGES=C > export LC_MESSAGES > > LANG=C > export LANG > > PATH=/sbin:/bin:/usr/sbin:/home/wanderer/pkg/gcc_34/bin:/home/wanderer/pkg/qmtest/bin:/usr/bin:/usr/local/sbin:/usr/local/bin > export PATH > > LLVM_LIB_SEARCH_PATH=/home/wanderer/pkg/llvm_cfe/bytecode-libs > export LLVM_LIB_SEARCH_PATH > > LLVMGCCDIR=/home/wanderer/pkg/llvm_cfe > export LLVMGCCDIR > > LLVM_LIB_SEARCH_PATH=/home/wanderer/pkg/llvm_cfe/bytecode-libs > export LLVM_LIB_SEARCH_PATH > > LD_LIBRARY_PATH=/home/wanderer/pkg/gcc_34/lib > export LD_LIBRARY_PATH > > cd /home/wanderer/pkg/build/llvm/night/ > > echo @@@@@@@@@@@@@@@ Test run... @@@@@@@@@@@@@@@@@@@@@@@@@@@ > /home/wanderer/pkg/build/llvm/src/llvm/utils/NightlyTest.pl -verbose -debug > -parallel -enable-linscan -noexternals -noremove > :pserver:anon at llvm-cvs.cs.uiuc.edu:2401/var/cvs/llvm > /home/wanderer/pkg/build/llvm/night/build > /home/wanderer/pkg/build/llvm/night/testresults-X86-FreeBSD > echo @@@@@@@@@@@@@@@ Test finished @@@@@@@@@@@@@@@@@@@@@@@@ > ---X8--------------- > > It work fine before (including last crontab nighttest run). > Note:I sync with cvs and rebuild llvm before manual test (all chnages except > last "Remove configuration of test/Programs/* Makefiles") > > Vladimir > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040905/b6415de7/attachment.sig>