Commit 9ab0d3b9 authored by Stephane Glondu's avatar Stephane Glondu

tests/sandbox -> demo/demo

parent b30e6fc7
......@@ -5,8 +5,8 @@ all:
ocamlbuild all.otarget
check: all
ocamlbuild tests/sandbox.byte
@_build/tests/sandbox.byte
ocamlbuild demo/demo.byte
@_build/demo/demo.byte
clean:
ocamlbuild -clean
......
......@@ -162,7 +162,7 @@ Server administrator's guide
### Overview of the web server
A sample web server can be run with the `tests/run-server.sh` script.
A sample web server can be run with the `demo/run-server.sh` script.
Here is an excerpt of the sample configuration file:
......
<**/*.{ml,mli,byte,native,odoc}>: debug, annot, thread, package(zarith), package(calendar), package(uuidm), package(cryptokit), package(atdgen), package(yojson)
<tests/**/*.{ml,mli,byte,native,odoc}>: package(lwt.unix), syntax(camlp4o), package(lwt.syntax)
<demo/**/*.{ml,mli,byte,native,odoc}>: package(lwt.unix), syntax(camlp4o), package(lwt.syntax)
<src/web/*.{ml,mli,byte,native,odoc}>: package(eliom.server), syntax(camlp4o), package(lwt.syntax)
<src/bin/*>: binary
<stuff/*>: binary
......@@ -155,7 +155,7 @@ let save_to_disk () =
e_public_key = { g; p; q; y }
} in
let ballots = Array.of_list (M.fold_ballots (fun x xs () -> x::xs) [] ()) in
let dir = Printf.sprintf "tests/data/%s" (Uuidm.to_string election.e_uuid) in
let dir = Printf.sprintf "demo/data/%s" (Uuidm.to_string election.e_uuid) in
Unix.mkdir dir 0o755;
let open Serializable_j in
let number = Serializable_builtin_j.write_number in
......
......@@ -33,7 +33,7 @@
<enable-dummy/>
<admin hash="97b878ee6f0b3fdec58875e7825e720a0cc0f973d73e415458b5544938d09fe6"/><!-- Ooj8jubi -->
<log file="_RUNDIR_/log/security.log"/>
<data dir="tests/data"/>
<data dir="demo/data"/>
</eliom>
</host>
......
......@@ -18,6 +18,6 @@ sed \
-e "s@_TMPDIR_@$BELENIOS_TMPDIR@g" \
-e "s@_RUNDIR_@$BELENIOS_RUNDIR@g" \
-e "s@_SRCDIR_@$PWD@g" \
tests/ocsigenserver.conf.in > $BELENIOS_RUNDIR/etc/ocsigenserver.conf
demo/ocsigenserver.conf.in > $BELENIOS_RUNDIR/etc/ocsigenserver.conf
ocsigenserver -c $BELENIOS_RUNDIR/etc/ocsigenserver.conf "$@"
......@@ -18,7 +18,7 @@ let () = dispatch & function
Pathname.define_context "src/web" ["src/lib"];
Pathname.define_context "src/bin" ["src/lib"];
Pathname.define_context "tests" ["src/lib"];
Pathname.define_context "demo" ["src/lib"];
Pathname.define_context "stuff" ["src/lib"];
Pathname.define_context "." ["src/lib"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment