mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-22 22:47:12 +03:00
Instead of using the installed global idris for tests,
pass the PATH to the current compiled one to test and use this
This commit is contained in:
parent
05895a55ba
commit
faad05cb11
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ build: dist/setup-config
|
||||
$(CABAL) build $(CABALFLAGS)
|
||||
|
||||
test:
|
||||
make -C test
|
||||
make -C test IDRIS=../dist/build/idris
|
||||
|
||||
relib:
|
||||
make -C lib IDRIS=../dist/build/idris/idris RTS=../dist/build/rts/libidris_rts clean
|
||||
|
@ -1,5 +1,7 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use Cwd;
|
||||
|
||||
my $exitstatus = 0;
|
||||
|
||||
sub runtest {
|
||||
@ -79,6 +81,10 @@ while ($opt=shift(@opts)) {
|
||||
else { push(@idrOpts, $opt); }
|
||||
}
|
||||
|
||||
my $idris = $ENV{IDRIS};
|
||||
my $path = $ENV{PATH};
|
||||
$ENV{PATH}=cwd() . "/" . $idris . ":" . $path;
|
||||
|
||||
foreach $test (@tests) {
|
||||
|
||||
if ($diff == 0 && $show == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user