Skip to content

Commit

Permalink
Test update
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 10, 2024
1 parent 839acdb commit 439840a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/reftests/env.win32.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
N0REP0
### : root and switches with spaces :
### <pkg:nv.1>
opam-version: "2.0"
flags: compiler
### RT="$BASEDIR/root 2"
### SW="switch w spaces"
### OPAMNOENVNOTICE=0
### opam init -na --bare --bypass-check --disable-sandbox --root "$RT" defaut ./REPO
No configuration file found, using built-in defaults.

<><> opam root file store <><><><><><><><><><><><><><><><><><><><><><><><><><><>

You have specified a root directory for opam containing a space.

Many parts of the OCaml ecosystem do not presently work correctly
when installed to directories containing spaces. You have been warned!

Where should opam store files?
1. Redirect files to a directory in C:\opamroot
2. Redirect files to an alternate directory
> 3. Do not redirect anything and stick with ${BASEDIR}/root 2
4. Abort initialisation

[1/2/3/4] 3

<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[defaut] Initialised
### opam switch create "./$SW" nv --root "$RT"

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["nv"]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed nv.1
Done.
# Run eval $(opam env '--root=${BASEDIR}/root 2' '--switch=${BASEDIR}/switch w spaces') to update the current shell environment
### opam env --root "$RT" --switch "./$SW" | grep "PREFIX" | ';' -> ':'
OPAM_SWITCH_PREFIX='${BASEDIR}/switch w spaces\_opam': export OPAM_SWITCH_PREFIX:
### opam var root --root "$RT"
${BASEDIR}/root 2
### OPAMNOENVNOTICE=1
### : setenv & build env rewriting :
### opam switch create rewriting --empty
### : Test for #4861
Expand Down

0 comments on commit 439840a

Please sign in to comment.