ghunit testing in xcode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

ghunit testing in xcode

Mat Stollman
Hey Everyone!

I was wondering if anyone has received an issue with xcode 4.2.1 and
trying to run ghunit tests. For some reason, I can not get it to run
my shell script with the sh command. Here is the ending of my output:

It pulls from our github correctly but this is always the end result.
I did follow

/T/hudson5451708132377497257.sh
+ sh buildAndTest.sh
/var/folders/l4/nl0dbbp101lgm9ys3t0lg9n8ckpc1n/T/
hudson5451708132377497257.sh: line 2: sh: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE

The shell script line in Jenkins looks like this: sh
buildAndTest.sh     .. the buildAndTest.sh is the file I created.

For the record, I followed this " http://www.youtube.com/watch?v=6ycxFcIPhQg
" to build the scripts. I am able to run the scripts locally on my mac
just fine.

Any ideas?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: ghunit testing in xcode

Sami Tikka
What happens if you replace the build step with these commands?

env
which sh

-- Sami

Mat Stollman <[hidden email]> kirjoitti 15.2.2012 kello 22.25:

> Hey Everyone!
>
> I was wondering if anyone has received an issue with xcode 4.2.1 and
> trying to run ghunit tests. For some reason, I can not get it to run
> my shell script with the sh command. Here is the ending of my output:
>
> It pulls from our github correctly but this is always the end result.
> I did follow
>
> /T/hudson5451708132377497257.sh
> + sh buildAndTest.sh
> /var/folders/l4/nl0dbbp101lgm9ys3t0lg9n8ckpc1n/T/
> hudson5451708132377497257.sh: line 2: sh: command not found
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
> The shell script line in Jenkins looks like this: sh
> buildAndTest.sh     .. the buildAndTest.sh is the file I created.
>
> For the record, I followed this " http://www.youtube.com/watch?v=6ycxFcIPhQg
> " to build the scripts. I am able to run the scripts locally on my mac
> just fine.
>
> Any ideas?
Loading...