mirror of
https://github.com/janet-lang/janet
synced 2025-01-09 15:10:27 +00:00
Change test-install
This commit is contained in:
parent
09ab391d13
commit
f12f896020
2
Makefile
2
Makefile
@ -322,7 +322,7 @@ clean:
|
|||||||
-rm -rf build vgcore.* callgrind.*
|
-rm -rf build vgcore.* callgrind.*
|
||||||
|
|
||||||
test-install:
|
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)
|
build/embed_janet.o: build/janet.c $(JANET_HEADERS)
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
@ -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!")
|
|
7
test/install/project.janet
Normal file
7
test/install/project.janet
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
(declare-project
|
||||||
|
:name "testmod")
|
||||||
|
|
||||||
|
(declare-native
|
||||||
|
:name "testmod"
|
||||||
|
:source @["testmod.c"])
|
||||||
|
|
3
test/install/test/test1.janet
Normal file
3
test/install/test/test1.janet
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
(import build/testmod :as testmod)
|
||||||
|
|
||||||
|
(if (not= 5 (testmod/get5)) (error "testmod/get5 failed"))
|
@ -346,7 +346,7 @@
|
|||||||
[&keys meta]
|
[&keys meta]
|
||||||
(setdyn :project meta)
|
(setdyn :project meta)
|
||||||
(try (os/mkdir "build") ([err] nil))
|
(try (os/mkdir "build") ([err] nil))
|
||||||
(phony "build" [] (print "Built."))
|
(phony "build" [])
|
||||||
(phony "install" ["build"] (print "Installed."))
|
(phony "install" ["build"] (print "Installed."))
|
||||||
(phony "uninstall" [] (print "Uninstalled."))
|
(phony "uninstall" [] (print "Uninstalled."))
|
||||||
(phony "clean" [] (rm "build") (print "Deleted build directory."))
|
(phony "clean" [] (rm "build") (print "Deleted build directory."))
|
||||||
|
Loading…
Reference in New Issue
Block a user