This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,27 @@
Demonstrate running "dune promote" concurrently with a passive rpc server
$ . ./helpers.sh
$ echo '(lang dune 3.20)' > dune-project
$ echo " $ echo hello" > my_test.t
$ start_dune
The test expectedly fails (see errors at the end of this file)
$ build "(alias my_test)"
Failure
Promotion happens on the running RPC server.
$ dune promote
Success
$ build "(alias my_test)"
Success
$ stop_dune
File "my_test.t", line 1, characters 0-0:
Error: Files _build/default/my_test.t and _build/default/my_test.t.corrected
differ.
Had 1 error, waiting for filesystem changes...
Promoting _build/default/my_test.t.corrected to my_test.t.
Success, waiting for filesystem changes...