ocaml-gettext/tests/basic-test.sh
2024-06-19 09:26:45 +01:00

20 lines
418 B
Bash
Executable File

#!/bin/bash -
set -e
set -x
# Compile trivial gettext program.
cat <<EOF > gettexttest.ml
module Gettext = Gettext.Program (
struct
let textdomain = "test"
let codeset = None
let dir = None
let dependencies = []
end
) (GettextStub.Native) ;;
open Gettext ;;
print_endline (s_ "Hello world")
EOF
ocamlfind ocamlopt -package gettext,gettext-stub gettexttest.ml -linkpkg -o gettexttest
./gettexttest