Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
08a3fbc9
Commit
08a3fbc9
authored
Feb 09, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs Integration] Add check for output.
parent
e12b74c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
10 deletions
+49
-10
execution_output.txt
spec/integration/installation/after/execution_output.txt
+38
-0
integration_2_spec.rb
spec/integration_2_spec.rb
+11
-10
No files found.
spec/integration/installation/after/execution_output.txt
0 → 100644
View file @
08a3fbc9
ruby ROOT/bin/pod install --no-update --no-doc --verbose --no-color
Resolving dependencies of `./Podfile'
Resolving dependencies for target `default' (iOS 6.0)
- Reachability (= 3.1.0)
Downloading dependencies
-> Installing Reachability (3.1.0)
$ /usr/bin/git config core.bare
true
> Cloning git repo
$ /usr/bin/git rev-list --max-count=1 v3.1.0
f7176f4798d068d233dca5223ae4bd9c8059e830
$ /usr/bin/git init
Initialized empty Git repository in ROOT/tmp/Pods/Reachability/.git/
$ /usr/bin/git remote add origin 'CACHES_DIR/Git/48f11286750afa2e2eb80564e288f42eed7cbab6'
$ /usr/bin/git fetch origin tags/v3.1.0
$ /usr/bin/git reset --hard FETCH_HEAD
HEAD is now at f7176f4 updated podspec
$ /usr/bin/git checkout -b activated-pod-commit
> Using existing documentation
Generating support files
- Running pre install hooks
- Generating project
- Installing targets
- Generating xcconfig file at `./Pods/Pods.xcconfig'
- Generating prefix header at `./Pods/Pods-prefix.pch'
- Generating copy resources script at `./Pods/Pods-resources.sh'
- Running post install hooks
- Writing Xcode project file to `./Pods/Pods.xcodeproj'
- Writing lockfile in `./Podfile.lock'
[!] From now on use `SampleApp.xcworkspace'.
Integrating `libPods.a' into target `SampleApp' of Xcode project `./SampleApp.xcodeproj'.
spec/integration_2_spec.rb
View file @
08a3fbc9
# ---------------------------------- #
# ----------------------------------
--
#
#
CocoaPods Integration tests take 2
#
#
CocoaPods Integration tests take 2
#
# ---------------------------------- #
# ----------------------------------
--
#
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
# 1. For each test there is a folder with a `before` and `after` subfolders.
# 1. For each test there is a folder with a `before` and `after` subfolders.
# 2. The contents of the before folder are copied to the `TMP_DIR` folder and
# 2. The contents of the before folder are copied to the `TMP_DIR` folder and
# then the given arguments are passed to the `POD_BINARY`.
# then the given arguments are passed to the `POD_BINARY`.
# 3. After the pod command completes the execution the each file in the
`after`
# 3. After the pod command completes the execution the each file in the
#
subfolder is compared to be to the contents of the temporary directory.
#
`after` subfolder is compared to be to the contents of the temporary
#
If the contents of the file do not match an error is registered. Xcode
#
directory. If the contents of the file do not match an error is
# projects are compared in an UUID agnostic way.
#
registered. Xcode
projects are compared in an UUID agnostic way.
#
#
# Notes:
# Notes:
#
#
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
# requirement (`it` call).
# requirement (`it` call).
require
'pathname'
require
'pathname'
ROOT
=
Pathname
.
new
(
File
.
expand_path
(
'../../'
,
__FILE__
))
ROOT
=
Pathname
.
new
(
File
.
expand_path
(
'../../'
,
__FILE__
))
TMP_DIR
=
ROOT
+
'tmp'
TMP_DIR
=
ROOT
+
'tmp'
POD_BINARY
=
"ruby "
+
ROOT
.
to_s
+
'/bin/pod'
unless
defined?
POD_BINARY
POD_BINARY
=
"ruby "
+
ROOT
.
to_s
+
'/bin/pod'
unless
defined?
POD_BINARY
$:
.
unshift
((
ROOT
+
'spec'
).
to_s
)
$:
.
unshift
((
ROOT
+
'spec'
).
to_s
)
...
@@ -55,6 +55,7 @@ require 'Xcodeproj'
...
@@ -55,6 +55,7 @@ require 'Xcodeproj'
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# @!group Description implementation
# @!group Description implementation
def
pod_check
(
command
,
folder
)
def
pod_check
(
command
,
folder
)
...
@@ -122,7 +123,7 @@ def check_with_folder(folder)
...
@@ -122,7 +123,7 @@ def check_with_folder(folder)
case
expected
case
expected
when
%r[/xcuserdata/]
when
%r[/xcuserdata/]
# skip
# skip
when
%r[
\
P
odfile
\.
lock$]
when
%r[Podfile
\.
lock$]
compare_lockfile
(
expected
,
produced
,
relative_path
)
compare_lockfile
(
expected
,
produced
,
relative_path
)
when
%r[
\.
pbxproj$]
when
%r[
\.
pbxproj$]
compare_xcodeproj
(
expected
,
produced
,
relative_path
)
compare_xcodeproj
(
expected
,
produced
,
relative_path
)
...
...
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