aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-04-28 12:53:56 +0200
committerLoïc Hoguin <[email protected]>2022-04-28 12:53:56 +0200
commit498cf54e46946d82294a7cac31042ab0e336803d (patch)
treecc37f0971029ecb8487d00357f183764c54ebe96 /test
parent6f9ee4c52066cdbec7c809363649ab30fda22db0 (diff)
downloaderlang.mk-498cf54e46946d82294a7cac31042ab0e336803d.tar.gz
erlang.mk-498cf54e46946d82294a7cac31042ab0e336803d.tar.bz2
erlang.mk-498cf54e46946d82294a7cac31042ab0e336803d.zip
Remove erlang_protobuffs tests, only gpb works now
Diffstat (limited to 'test')
-rw-r--r--test/plugin_protobuffs.mk34
1 files changed, 1 insertions, 33 deletions
diff --git a/test/plugin_protobuffs.mk b/test/plugin_protobuffs.mk
index f5814e8..873875e 100644
--- a/test/plugin_protobuffs.mk
+++ b/test/plugin_protobuffs.mk
@@ -15,38 +15,6 @@ protobuffs-compile: init
$t cp ../erlang.mk $(APP)/
$t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
- $i "Add protobuffs to the list of dependencies"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = protobuffs\n"}' $(APP)/Makefile
-
- $i "Download two proto files"
- $t mkdir $(APP)/src/proto/
- $t curl -s -o $(APP)/src/proto/empty.proto $(PROTOBUFFS_URL)/proto/empty.proto
- $t curl -s -o $(APP)/src/proto/simple.proto $(PROTOBUFFS_URL)/proto/simple.proto
-
- $i "Build the application"
- $t $(MAKE) -C $(APP) $v
-
- $i "Check that an Erlang module was generated and compiled"
- $t test -f $(APP)/src/empty_pb.erl
- $t test -f $(APP)/src/simple_pb.erl
- $t test -f $(APP)/include/empty_pb.hrl
- $t test -f $(APP)/include/simple_pb.hrl
- $t test -f $(APP)/ebin/empty_pb.beam
- $t test -f $(APP)/ebin/simple_pb.beam
-
- $i "Check that the generated modules are included in .app file"
- $t $(ERL) -pa $(APP)/ebin/ -eval " \
- ok = application:load($(APP)), \
- {ok, [empty_pb, simple_pb]} = application:get_key($(APP), modules), \
- halt()"
-
-protobuffs-compile-with-gpb: init
-
- $i "Bootstrap a new OTP library named $(APP)"
- $t mkdir $(APP)/
- $t cp ../erlang.mk $(APP)/
- $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
-
$i "Add gpb to the list of dependencies"
$t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = gpb\n"}' $(APP)/Makefile
@@ -111,7 +79,7 @@ protobuffs-makefile-change: init
$t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
$i "Add protobuffs to the list of dependencies"
- $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = protobuffs\n"}' $(APP)/Makefile
+ $t perl -ni.bak -e 'print;if ($$.==1) {print "BUILD_DEPS = gpb\n"}' $(APP)/Makefile
$i "Download two proto files"
$t mkdir $(APP)/src/proto/