N0REP0
### OPAMYES=1
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
build: [[ "test" "-f" "ongoing.txt" ] [ "sh" "-c" "cat ongoing.txt > out" ]]
install: [ ["test" "-f" "out" ] ["touch" "installed"] ]
### <ongoing/ongoing.txt>
versionned
### git -C ./ongoing init -q --initial-branch=master
### git -C ./ongoing config core.autocrlf false
### git -C ./ongoing add -A
### git -C ./ongoing commit -qm "inplace test"
### <ongoing/newfile.txt>
new!
### opam switch create assume-built --empty
### opam pin ./ongoing -n
Package ongoing does not exist, create as a NEW package? [y/n] y
ongoing is now pinned to git+file://${BASEDIR}/ongoing#master (version dev)
### : assume built
### opam install ongoing -v | sed-cmd test | sed-cmd sh | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1:
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [ongoing.dev: git]
-> retrieved ongoing.dev  (no changes)
Processing  2/3: [ongoing: test ongoing.txt]
+ test "-f" "ongoing.txt" (CWD=${BASEDIR}/OPAM/assume-built/.opam-switch/build/ongoing.dev)
Processing  2/3: [ongoing: sh cat ongoing.txt > out]
+ sh "-c" "cat ongoing.txt > out" (CWD=${BASEDIR}/OPAM/assume-built/.opam-switch/build/ongoing.dev)
-> compiled  ongoing.dev
Processing  3/3: [ongoing: test out]
+ test "-f" "out" (CWD=${BASEDIR}/OPAM/assume-built/.opam-switch/build/ongoing.dev)
Processing  3/3: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/OPAM/assume-built/.opam-switch/build/ongoing.dev)
-> installed ongoing.dev
Done.
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing --assume-built -v | sed-cmd test | sed-cmd touch | grep -v "switch import"

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1:
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [ongoing.dev: git]
-> retrieved ongoing.dev  (no changes)
Processing  3/3: [ongoing: test out]
+ test "-f" "out" (CWD=${BASEDIR}/ongoing)
[ERROR] The installation of ongoing failed at "test -f out".




<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - install ongoing dev
+- 
- No changes have been performed
'${OPAM} install ongoing --assume-built -v' failed.
# Return code 31 #
### touch ongoing/out
### opam install ongoing --assume-built -v | sed-cmd test | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1:
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [ongoing.dev: git]
-> retrieved ongoing.dev  (no changes)
Processing  3/3: [ongoing: test out]
+ test "-f" "out" (CWD=${BASEDIR}/ongoing)
Processing  3/3: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/ongoing)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
### rm ./ongoing/installed
### : assume-built & repo package
### <pkg:qux.u>
opam-version:"2.0"
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing qux --assume-built

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
[ongoing.dev] synchronised (no changes)

[WARNING] Package qux is not pinned locally and assume built option is set, skipping
The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ongoing.dev  (no changes)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
### rm ./ongoing/installed
### : assume built & working dir
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
build: [[ "test" "-f" "newfile.txt" ] [ "sh" "-c" "cat newfile.txt > out" ]]
install: [ ["test" "-f" "out2" ] ["touch" "installed"] ]
### rm ongoing/out
### touch ongoing/out2
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing --assume-built --working-dir -v | sed-cmd test | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (git+file://${BASEDIR}/ongoing#master)
[ongoing] Installing new package description from upstream git+file://${BASEDIR}/ongoing#master

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/2: [ongoing: test out2]
+ test "-f" "out2" (CWD=${BASEDIR}/ongoing)
Processing  2/2: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/ongoing)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
### : assume built & opam file variables :
### opam unpin ongoing
Ok, ongoing is no longer pinned to git+file://${BASEDIR}/ongoing#master (version dev)
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam var os=some-os --global
Added '[os "some-os" "Set through 'opam var'"]' to field global-variables in global configuration
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
version: "1.0"
depends: [
  "qux" { with-test }
  "foo" { os != "some-os" }
  "bar" { version != "1.0" }
]
build: [
  [ "test" "-f" "ongoing.txt" ]
  [ "sh" "-c" "cat ongoing.txt > out" ]
]
install: [
  ["test" "-f" "out" ]
  [ "test" "-f" "ongoing.txt" ] { with-test }
  [ "test" "-f" "out2" ] { os != "some-os" }
  [ "test" "-f" "out3" ] { version != "1.0" }
  ["touch" "installed"]
]
### git -C ongoing clean -fdqx
### opam pin ./ongoing -n
Package ongoing does not exist, create as a NEW package? [y/n] y
ongoing is now pinned to git+file://${BASEDIR}/ongoing#master (version 1.0)
### touch ongoing/out
### opam install qux
The following actions will be performed:
=== install 1 package
  - install qux u

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed qux.u
Done.
### opam install ongoing --assume-built --with-test

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
[ongoing.1.0] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing 1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ongoing.1.0  (no changes)
-> installed ongoing.1.0
Done.
### test -f ./ongoing/installed
### : assume built & undefined opam file variables :
### OPAMSTRICT=0
### opam unpin ongoing
Ok, ongoing is no longer pinned to git+file://${BASEDIR}/ongoing#master (version 1.0)
The following actions will be performed:
=== remove 1 package
  - remove ongoing 1.0

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.1.0
Done.
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
depends: [
  "qux"
  "foo" { not-defined }
]
build: [
  [ "test" "-f" "ongoing.txt" ]
  [ "sh" "-c" "cat ongoing.txt > out" ]
]
install: [
  [ "test" "-f" "out" ]
  [ "test" "-f" "out2" ] { not-defined }
  [ "touch" "installed"]
]
### git -C ongoing clean -fdqx
### opam pin ./ongoing -n
Package ongoing does not exist, create as a NEW package? [y/n] y
ongoing is now pinned to git+file://${BASEDIR}/ongoing#master (version dev)
### touch ongoing/out
### opam install ongoing --assume-built --with-test

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
[ongoing.dev] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ongoing.dev  (no changes)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
