Fix test-install after removing cook.

This commit is contained in:
Calvin Rose 2019-08-28 21:05:34 -05:00
parent 58ffb9d7a5
commit 05695a35c7
3 changed files with 10 additions and 7 deletions

View File

@ -329,8 +329,12 @@ clean:
-rm -rf build vgcore.* callgrind.*
test-install:
cd test/install && rm -rf build .cache .manifests && jpm --verbose build && jpm --verbose test \
&& build/testexec
cd test/install \
&& rm -rf build .cache .manifests \
&& jpm --verbose build \
&& jpm --verbose test \
&& build/testexec \
&& jpm --verbose --modpath=. install https://github.com/janet-lang/json.git
build/embed_janet.o: build/janet.c $(JANET_HEADERS)
$(CC) $(CFLAGS) -c $< -o $@

View File

@ -172,6 +172,10 @@ call jpm clean
@if errorlevel 1 goto :TESTFAIL
call jpm test
@if errorlevel 1 goto :TESTFAIL
call jpm --verbose --modpath=. install https://github.com/janet-lang/json.git
@if errorlevel 1 goto :TESTFAIL
call build\testexec
@if errorlevel 1 goto :TESTFAIL
popd
exit /b 0

View File

@ -1,8 +1,3 @@
(import build/testmod :as testmod)
(if (not= 5 (testmod/get5)) (error "testmod/get5 failed"))
(import cook)
(with-dyns [:modpath (os/cwd)]
(cook/install-git "https://github.com/janet-lang/json.git"))