1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-21 12:43:15 +00:00

Change test-install

This commit is contained in:
Calvin Rose 2019-05-28 12:59:21 -04:00
parent 09ab391d13
commit f12f896020
5 changed files with 12 additions and 13 deletions

View File

@ -322,7 +322,7 @@ clean:
-rm -rf build vgcore.* callgrind.*
test-install:
cd test/install && rm -rf build && janet build && janet build
cd test/install && rm -rf build && jpm build && jpm test && jpm install && jpm uninstall
build/embed_janet.o: build/janet.c $(JANET_HEADERS)
$(CC) $(CFLAGS) -c $< -o $@

View File

@ -1,11 +0,0 @@
(import cook)
(cook/make-native
:name "testmod"
:source @["testmod.c"])
(import build/testmod :as testmod)
(if (not= 5 (testmod/get5)) (error "testmod/get5 failed"))
(print "OK!")

View File

@ -0,0 +1,7 @@
(declare-project
:name "testmod")
(declare-native
:name "testmod"
:source @["testmod.c"])

View File

@ -0,0 +1,3 @@
(import build/testmod :as testmod)
(if (not= 5 (testmod/get5)) (error "testmod/get5 failed"))

View File

@ -346,7 +346,7 @@
[&keys meta]
(setdyn :project meta)
(try (os/mkdir "build") ([err] nil))
(phony "build" [] (print "Built."))
(phony "build" [])
(phony "install" ["build"] (print "Installed."))
(phony "uninstall" [] (print "Uninstalled."))
(phony "clean" [] (rm "build") (print "Deleted build directory."))