Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Nov 28, 2024
1 parent 2531f26 commit b36769f
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:

- run: opam exec -- make test

- run: opam exec -- /bin/bash ./test/runtest.sh
shell: bash

- run: OCAMLBUILD=$(pwd)/ocamlbuild.native opam exec -- make -C bootstrap
shell: bash

Expand Down
12 changes: 1 addition & 11 deletions test/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,7 @@ cd `dirname $0`

export OCB=$PWD/../ocamlbuild.native

myfiglet() {
figlet $@ | sed 's/ *$//'
}

if figlet ""; then
BANNER=myfiglet
else
echo "Install figlet to have a better output, press enter to continue with echo"
read
BANNER=echo
fi
BANNER=echo

HERE=`pwd`

Expand Down
2 changes: 1 addition & 1 deletion test/test11/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOTPS="" # -- command args
BUILD="$OCB -I a -I b aa.byte aa.native -no-skip -classic-display $@"
BUILD="$OCB -I a -I b aa.byte aa.native -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
1 change: 1 addition & 0 deletions test/test2/_tags
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
#########################################################################

"vivi.ml": camlp4o
true: package(camlp-streams)

# , some_useless_tag, \ more_useless_tags
9 changes: 8 additions & 1 deletion test/test2/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
cd `dirname $0`
set -e
set -x
if ocamlfind query camlp4 camlp-streams -qo; then
echo "camlp4 and camlp-streams are installed";
else
echo "Missing dependencies: make sure camlp4 and camlp-streams are installed";
echo "SKIP";
exit 0;
fi
CMDOPTS="-- -help"
BUILD="$OCB toto.byte toto.native -no-skip -classic-display $@"
BUILD="$OCB toto.byte toto.native -use-ocamlfind -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test3/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOTPS="" # -- command args
BUILD="$OCB a.byte a.native proj.docdir/index.html -no-skip -classic-display $@"
BUILD="$OCB a.byte a.native proj.docdir/index.html -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test4/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOTPS="" # -- command args
BUILD="$OCB -I a -I b aa.byte aa.native -no-skip -classic-display $@"
BUILD="$OCB -I a -I b aa.byte aa.native -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test5/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOPTS="" # -- command args
BUILD="$OCB d.byte d.native -no-skip -classic-display $@"
BUILD="$OCB d.byte d.native -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test6/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -x
rm -rf _build
CMDOPTS="" # -- command args
BUILD="$OCB -no-skip main.byte -classic-display $@"
BUILD="$OCB main.byte -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
cp b.mli.v1 b.mli
Expand Down
2 changes: 1 addition & 1 deletion test/test7/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOPTS="" # -- command args
BUILD="$OCB bbcc.cma main.byte bbcc.cmxa main.native -no-skip -classic-display $@"
BUILD="$OCB bbcc.cma main.byte bbcc.cmxa main.native -classic-display $@"
BUILD1="$BUILD $CMDARGS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDARGS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test8/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOPTS="" # -- command args
BUILD="$OCB a.byte a.native a a.opt bin/a bin/a.opt -no-skip -classic-display $@"
BUILD="$OCB a.byte a.native a a.opt bin/a bin/a.opt -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down
2 changes: 1 addition & 1 deletion test/test9/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
set -e
set -x
cd `dirname $0`/../..
ocamlc -I src ocamlbuild_pack.cmo test/test9/testglob.ml -o ./testglob.native
ocamlc -I src -I +unix unix.cma ocamlbuild_pack.cmo test/test9/testglob.ml -o ./testglob.native
./testglob.native
rm testglob.native
2 changes: 1 addition & 1 deletion test/test_virtual/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cd `dirname $0`
set -e
set -x
CMDOPTS="" # -- command args
BUILD="$OCB bar -no-skip -no-links -classic-display $@"
BUILD="$OCB bar -no-links -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
Expand Down

0 comments on commit b36769f

Please sign in to comment.