Skip to content

Commit

Permalink
[tests] really test if env variables is correctly updated from compil…
Browse files Browse the repository at this point in the history
…er description files
  • Loading branch information
samoht committed Jun 19, 2012
1 parent 2a959a7 commit adbbe19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Makefile
Expand Up @@ -219,8 +219,7 @@ ifeq ($(REPOKIND), git)
else
$(CHECK) -l switch-env-packages P1.2 P2.1 P3.1~weird-version.test P4.3
endif
# include $(OPAM_ROOT)/dummy/build/P4.3/P4.env
# if [ x$(TEST) != "x1" ]; then echo "wrong value for TEST"; exit 1; fi
./test-TEST.sh $(OPAM_ROOT)/dummy/build/P4.3/P4.env "1"

switch:
$(MAKE) fresh
Expand Down
9 changes: 9 additions & 0 deletions tests/test-TEST.sh
@@ -0,0 +1,9 @@
#!/bin/sh

if [ -f $1 ]; then
. $1
fi

if [ x${TEST} != x$2 ]; then
exit 2
fi

0 comments on commit adbbe19

Please sign in to comment.