mirror of
https://github.com/zap-proto/cpp-core.git
synced 2026-10-30 15:06:00 +00:00
CI on the build-system-rebrand commit surfaced two gaps the rebrand agent
couldn't see (no Bazel on its host; it ran configure+make directly, not
super-test.sh):
- src/zap/BUILD.bazel: the zapc cc_library and the compiler cc_test glob never
listed desugar.{c++,h}/desugar-test.c++, so module-loader.c++ failed with
'undeclared inclusion of desugar.h'. Now wired (parity with Makefile.am+CMake).
- super-test.sh and 7 sibling scripts lost their +x bit in the rename churn →
'./super-test.sh: Permission denied' (exit 126). Restored.
27 lines
987 B
Bash
Executable File
27 lines
987 B
Bash
Executable File
#! /usr/bin/env bash
|
|
#
|
|
# Quick script that compiles and runs the samples, then cleans up.
|
|
# Used for release testing.
|
|
|
|
set -exuo pipefail
|
|
|
|
zapc -oc++ addressbook.zap
|
|
c++ -std=c++23 -Wall addressbook.c++ addressbook.zap.c++ \
|
|
$(pkg-config --cflags --libs zap) -o addressbook
|
|
./addressbook write | ./addressbook read
|
|
./addressbook dwrite | ./addressbook dread
|
|
rm addressbook addressbook.zap.c++ addressbook.zap.h
|
|
|
|
zapc -oc++ calculator.zap
|
|
c++ -std=c++23 -Wall calculator-client.c++ calculator.zap.c++ \
|
|
$(pkg-config --cflags --libs zap-rpc) -o calculator-client
|
|
c++ -std=c++23 -Wall calculator-server.c++ calculator.zap.c++ \
|
|
$(pkg-config --cflags --libs zap-rpc) -o calculator-server
|
|
rm -f /tmp/zap-calculator-example-$$
|
|
./calculator-server unix:/tmp/zap-calculator-example-$$ &
|
|
sleep 0.1
|
|
./calculator-client unix:/tmp/zap-calculator-example-$$
|
|
kill %+
|
|
wait %+ || true
|
|
rm calculator-client calculator-server calculator.zap.c++ calculator.zap.h /tmp/zap-calculator-example-$$
|